From 955cbb6649cabb09958627551747d6c317efc421 Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 14 Jul 2026 15:44:29 +0000 Subject: [PATCH] Releasing version 3.92.0 --- CHANGELOG.md | 21 + bmc-accessgovernancecp/pom.xml | 4 +- bmc-addons/bmc-adk/pom.xml | 2 +- bmc-addons/bmc-aispeech-realtime/pom.xml | 6 +- .../pom.xml | 6 +- .../pom.xml | 6 +- .../bmc-apache-connector-provider/pom.xml | 4 +- bmc-addons/bmc-oke-workload-identity/pom.xml | 10 +- .../bmc-resteasy-client-configurator/pom.xml | 4 +- .../bmc-sasl-oke-workload-identity/pom.xml | 6 +- bmc-addons/bmc-sasl/pom.xml | 4 +- bmc-addons/bmc-sse-support-jersey3/pom.xml | 8 +- bmc-addons/bmc-sse-support/pom.xml | 8 +- bmc-addons/pom.xml | 2 +- bmc-adm/pom.xml | 4 +- bmc-aidataplatform/pom.xml | 4 +- .../bmc/aidataplatform/AiDataPlatform.java | 16 + .../aidataplatform/AiDataPlatformAsync.java | 15 + .../AiDataPlatformAsyncClient.java | 36 + .../aidataplatform/AiDataPlatformClient.java | 33 + .../aidataplatform/model/AiDataPlatform.java | 88 + .../model/AiDataPlatformSummary.java | 40 + .../model/CreateAiDataPlatformDetails.java | 224 ++ .../model/EnableAiFeatureDetails.java | 259 +++ .../aidataplatform/model/OperationType.java | 5 + .../requests/EnableAiFeatureRequest.java | 375 +++ .../responses/EnableAiFeatureResponse.java | 189 ++ .../reflect-config.json | 20 + bmc-aidocument/pom.xml | 4 +- bmc-ailanguage/pom.xml | 4 +- bmc-aispeech/pom.xml | 4 +- bmc-aivision/pom.xml | 4 +- bmc-analytics/pom.xml | 4 +- bmc-announcementsservice/pom.xml | 4 +- bmc-apiaccesscontrol/pom.xml | 4 +- bmc-apigateway/pom.xml | 4 +- bmc-apiplatform/pom.xml | 4 +- bmc-apmconfig/pom.xml | 4 +- bmc-apmcontrolplane/pom.xml | 4 +- bmc-apmsynthetics/pom.xml | 4 +- bmc-apmtraces/pom.xml | 4 +- bmc-appmgmtcontrol/pom.xml | 4 +- bmc-artifacts/pom.xml | 4 +- bmc-audit/pom.xml | 4 +- bmc-autoscaling/pom.xml | 4 +- bmc-bastion/pom.xml | 4 +- bmc-batch/pom.xml | 4 +- bmc-bds/pom.xml | 4 +- bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 380 +-- 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 +- .../oracle/bmc/http/internal/HeaderUtils.java | 135 ++ .../bmc/http/internal/LogHeadersFilter.java | 4 +- .../signing/internal/RequestSignerImpl.java | 3 +- .../bmc/http/internal/HeaderUtilsTest.java | 124 + bmc-computecloudatcustomer/pom.xml | 4 +- bmc-computeinstanceagent/pom.xml | 4 +- bmc-containerengine/pom.xml | 4 +- bmc-containerinstances/pom.xml | 4 +- .../ContainerFsGroupChangePolicyType.java | 53 + .../model/ContainerInstance.java | 72 +- .../ContainerInstanceSecurityContext.java | 124 + .../model/ContainerInstanceSummary.java | 34 +- .../model/ContainerOciFssVolume.java | 264 +++ .../model/ContainerVolume.java | 5 +- .../model/ContainerVolumeType.java | 1 + .../model/CreateContainerInstanceDetails.java | 35 +- ...ntainerInstanceSecurityContextDetails.java | 79 + .../CreateContainerOciFssVolumeDetails.java | 264 +++ .../model/CreateContainerVolumeDetails.java | 3 + ...ntainerInstanceSecurityContextDetails.java | 227 ++ .../model/CreateOciFssExportDetails.java | 115 + .../model/CreateOciFssExportIdDetails.java | 135 ++ .../CreateOciFssMountCommandDetails.java | 145 ++ .../model/CreateOciFssMountOptionDetails.java | 180 ++ .../model/CreateOciFssMountTargetDetails.java | 116 + .../CreateOciFssMountTargetIdDetails.java | 135 ++ .../model/CreateOciFssSecurityDetails.java | 138 ++ .../model/CreateOciFssSysSecurityDetails.java | 112 + ...LinuxContainerInstanceSecurityContext.java | 225 ++ .../model/OciFssExport.java | 125 + .../model/OciFssExportId.java | 134 ++ .../model/OciFssMountCommand.java | 143 ++ .../model/OciFssMountOption.java | 179 ++ .../model/OciFssMountTarget.java | 128 + .../model/OciFssMountTargetId.java | 135 ++ .../model/OciFssSecurity.java | 148 ++ .../model/OciFssSysSecurity.java | 111 + .../reflect-config.json | 300 +++ bmc-containerregistry/pom.xml | 4 +- bmc-core/pom.xml | 6 +- .../oracle/bmc/core/ComputeManagement.java | 2 +- .../bmc/core/ComputeManagementAsync.java | 2 +- .../oracle/bmc/core/model/ComputeCluster.java | 110 +- ...puteClusterLogicalPlacementConstraint.java | 59 + ...puteClusterPlacementConstraintDetails.java | 345 +++ .../model/CreateComputeClusterDetails.java | 56 +- .../model/CreateGmcConfigurationDetails.java | 193 ++ .../CreateInstanceConfigurationBase.java | 7 +- .../core/model/CreateInstancePoolDetails.java | 20 +- .../bmc/core/model/InstanceConfiguration.java | 142 +- .../InstanceConfigurationGmcConfigDetail.java | 475 ++++ ...figurationGpuMemoryClusterScaleConfig.java | 212 ++ .../oracle/bmc/core/model/InstancePool.java | 84 + .../bmc/core/model/InstancePoolSummary.java | 38 + .../model/PlacementConstraintDetails.java | 3 + .../model/UpdateComputeClusterDetails.java | 62 +- .../core/model/UpdateInstancePoolDetails.java | 12 +- .../oci-java-sdk-core/reflect-config.json | 74 + bmc-costad/pom.xml | 4 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- bmc-databasemanagement/pom.xml | 4 +- bmc-databasemigration/pom.xml | 4 +- bmc-databasetools/pom.xml | 4 +- bmc-databasetoolsruntime/pom.xml | 4 +- bmc-datacatalog/pom.xml | 4 +- bmc-datacc/pom.xml | 21 + .../java/com/oracle/bmc/datacc/Baseinfra.java | 775 ++++++ .../com/oracle/bmc/datacc/BaseinfraAsync.java | 748 ++++++ .../bmc/datacc/BaseinfraAsyncClient.java | 1712 ++++++++++++++ .../oracle/bmc/datacc/BaseinfraClient.java | 1675 +++++++++++++ .../bmc/datacc/BaseinfraPaginators.java | 994 ++++++++ .../oracle/bmc/datacc/BaseinfraWaiters.java | 612 +++++ .../bmc/datacc/model/AcfsCapacityDetails.java | 183 ++ .../oracle/bmc/datacc/model/ActionType.java | 59 + .../model/ActivateInfrastructureDetails.java | 142 ++ .../bmc/datacc/model/BasePatchingMode.java | 53 + ...hangeInfrastructureCompartmentDetails.java | 145 ++ ...ngeVmClusterNetworkCompartmentDetails.java | 146 ++ .../ChangeVmInstanceCompartmentDetails.java | 145 ++ .../datacc/model/ComputeCapacityDetails.java | 429 ++++ .../model/CreateInfrastructureDetails.java | 1231 ++++++++++ .../model/CreateVmClusterNetworkDetails.java | 636 +++++ .../datacc/model/CreateVmInstanceDetails.java | 1202 ++++++++++ .../model/DiskGroupCapacityDetails.java | 275 +++ ...ateRecommendedVmClusterNetworkDetails.java | 561 +++++ .../datacc/model/InfoVmNetworkDetails.java | 367 +++ .../bmc/datacc/model/Infrastructure.java | 2069 +++++++++++++++++ .../model/InfrastructureCollection.java | 133 ++ .../datacc/model/InfrastructureContact.java | 313 +++ .../model/InfrastructureLifecycleState.java | 65 + .../model/InfrastructureScaleOption.java | 142 ++ .../datacc/model/InfrastructureServer.java | 449 ++++ .../InfrastructureServerLifecycleState.java | 65 + .../datacc/model/InfrastructureSummary.java | 1820 +++++++++++++++ .../bmc/datacc/model/InfrastructureType.java | 40 + .../datacc/model/MaintenanceExecution.java | 1096 +++++++++ .../model/MaintenanceExecutionCollection.java | 133 ++ .../model/MaintenanceExecutionSummary.java | 1096 +++++++++ .../datacc/model/MaintenancePreference.java | 53 + .../bmc/datacc/model/MaintenanceRun.java | 1440 ++++++++++++ .../model/MaintenanceRunCollection.java | 133 ++ .../model/MaintenanceRunLifecycleState.java | 62 + .../datacc/model/MaintenanceRunSummary.java | 1441 ++++++++++++ .../datacc/model/MaintenanceSubtypeEnum.java | 62 + .../bmc/datacc/model/MaintenanceTypeEnum.java | 53 + .../bmc/datacc/model/MaintenanceWindow.java | 704 ++++++ .../model/NetworkBondingInterfaceEnum.java | 57 + .../bmc/datacc/model/NetworkBondingMode.java | 53 + .../oracle/bmc/datacc/model/NodeDetails.java | 237 ++ .../bmc/datacc/model/OperationStatus.java | 58 + .../bmc/datacc/model/OperationType.java | 89 + .../bmc/datacc/model/PatchingModeEnum.java | 53 + .../bmc/datacc/model/PatchingStatusEnum.java | 57 + .../RescheduleMaintenanceRunDetails.java | 172 ++ .../ScaleInfrastructureStorageDetails.java | 141 ++ .../datacc/model/ScaleVmInstanceDetails.java | 172 ++ .../oracle/bmc/datacc/model/ScanDetails.java | 167 ++ .../oracle/bmc/datacc/model/ShapeEnum.java | 54 + .../oracle/bmc/datacc/model/SortOrder.java | 40 + .../datacc/model/StorageCapacityDetails.java | 371 +++ .../datacc/model/StorageDiskRedundancy.java | 57 + .../oracle/bmc/datacc/model/StorageType.java | 41 + .../bmc/datacc/model/SystemModelEnum.java | 54 + .../model/SystemStorageCapacityDetails.java | 159 ++ .../datacc/model/TargetResourceTypeEnum.java | 52 + .../com/oracle/bmc/datacc/model/TypeEnum.java | 40 + .../model/UpdateInfrastructureDetails.java | 1183 ++++++++++ .../model/UpdateMaintenanceRunDetails.java | 344 +++ .../model/UpdateVmClusterNetworkDetails.java | 464 ++++ .../datacc/model/UpdateVmInstanceDetails.java | 312 +++ .../model/ValidateInfrastructureDetails.java | 142 ++ .../bmc/datacc/model/VmClusterNetwork.java | 1029 ++++++++ .../model/VmClusterNetworkCollection.java | 133 ++ .../model/VmClusterNetworkLifecycleState.java | 60 + .../datacc/model/VmClusterNetworkSummary.java | 1030 ++++++++ .../datacc/model/VmClusterNetworkType.java | 53 + .../oracle/bmc/datacc/model/VmInstance.java | 1402 +++++++++++ .../datacc/model/VmInstanceCollection.java | 133 ++ .../model/VmInstanceLifecycleState.java | 57 + .../bmc/datacc/model/VmInstanceSummary.java | 906 ++++++++ .../datacc/model/VmNetworkConsumerType.java | 53 + .../bmc/datacc/model/VmNetworkDetails.java | 366 +++ .../oracle/bmc/datacc/model/WorkRequest.java | 664 ++++++ .../datacc/model/WorkRequestCollection.java | 133 ++ .../bmc/datacc/model/WorkRequestError.java | 211 ++ .../model/WorkRequestErrorCollection.java | 133 ++ .../bmc/datacc/model/WorkRequestLogEntry.java | 169 ++ .../model/WorkRequestLogEntryCollection.java | 133 ++ .../bmc/datacc/model/WorkRequestResource.java | 266 +++ .../ActivateInfrastructureRequest.java | 365 +++ ...hangeInfrastructureCompartmentRequest.java | 371 +++ ...ngeVmClusterNetworkCompartmentRequest.java | 377 +++ .../ChangeVmInstanceCompartmentRequest.java | 365 +++ .../requests/CreateInfrastructureRequest.java | 280 +++ .../CreateVmClusterNetworkRequest.java | 281 +++ .../requests/CreateVmInstanceRequest.java | 274 +++ .../requests/DeleteInfrastructureRequest.java | 298 +++ .../DeleteVmClusterNetworkRequest.java | 253 ++ .../requests/DeleteVmInstanceRequest.java | 244 ++ ...wnloadInfrastructureConfigFileRequest.java | 207 ++ ...InfrastructureValidationScriptRequest.java | 209 ++ ...ateRecommendedVmClusterNetworkRequest.java | 337 +++ .../requests/GetInfrastructureRequest.java | 202 ++ .../GetInfrastructureScaleOptionRequest.java | 204 ++ .../GetMaintenanceExecutionRequest.java | 199 ++ .../requests/GetMaintenanceRunRequest.java | 192 ++ .../requests/GetVmClusterNetworkRequest.java | 204 ++ .../datacc/requests/GetVmInstanceRequest.java | 200 ++ .../requests/GetWorkRequestRequest.java | 202 ++ .../requests/ListInfrastructuresRequest.java | 479 ++++ .../ListMaintenanceExecutionsRequest.java | 717 ++++++ .../requests/ListMaintenanceRunsRequest.java | 659 ++++++ .../ListVmClusterNetworksRequest.java | 611 +++++ .../requests/ListVmInstancesRequest.java | 555 +++++ .../ListWorkRequestErrorsRequest.java | 298 +++ .../requests/ListWorkRequestLogsRequest.java | 295 +++ .../requests/ListWorkRequestsRequest.java | 313 +++ .../requests/MigrateVmInstanceRequest.java | 298 +++ .../RescheduleMaintenanceRunRequest.java | 356 +++ .../requests/RestartVmInstanceRequest.java | 298 +++ .../ScaleInfrastructureStorageRequest.java | 367 +++ .../requests/ScaleVmInstanceRequest.java | 357 +++ .../requests/StartVmInstanceRequest.java | 298 +++ .../requests/StopVmInstanceRequest.java | 298 +++ .../requests/UpdateInfrastructureRequest.java | 313 +++ .../requests/UpdateMaintenanceRunRequest.java | 303 +++ .../UpdateVmClusterNetworkRequest.java | 316 +++ .../requests/UpdateVmInstanceRequest.java | 306 +++ .../ValidateInfrastructureRequest.java | 365 +++ .../ValidateVmClusterNetworkRequest.java | 305 +++ .../ActivateInfrastructureResponse.java | 293 +++ ...angeInfrastructureCompartmentResponse.java | 186 ++ ...geVmClusterNetworkCompartmentResponse.java | 188 ++ .../ChangeVmInstanceCompartmentResponse.java | 186 ++ .../CreateInfrastructureResponse.java | 292 +++ .../CreateVmClusterNetworkResponse.java | 294 +++ .../responses/CreateVmInstanceResponse.java | 290 +++ .../DeleteInfrastructureResponse.java | 185 ++ .../DeleteVmClusterNetworkResponse.java | 186 ++ .../responses/DeleteVmInstanceResponse.java | 185 ++ ...nloadInfrastructureConfigFileResponse.java | 292 +++ ...nfrastructureValidationScriptResponse.java | 293 +++ ...teRecommendedVmClusterNetworkResponse.java | 304 +++ .../responses/GetInfrastructureResponse.java | 243 ++ .../GetInfrastructureScaleOptionResponse.java | 182 ++ .../GetMaintenanceExecutionResponse.java | 252 ++ .../responses/GetMaintenanceRunResponse.java | 243 ++ .../GetVmClusterNetworkResponse.java | 244 ++ .../responses/GetVmInstanceResponse.java | 241 ++ .../responses/GetWorkRequestResponse.java | 249 ++ .../ListInfrastructuresResponse.java | 230 ++ .../ListMaintenanceExecutionsResponse.java | 237 ++ .../ListMaintenanceRunsResponse.java | 230 ++ .../ListVmClusterNetworksResponse.java | 231 ++ .../responses/ListVmInstancesResponse.java | 225 ++ .../ListWorkRequestErrorsResponse.java | 231 ++ .../ListWorkRequestLogsResponse.java | 235 ++ .../responses/ListWorkRequestsResponse.java | 226 ++ .../responses/MigrateVmInstanceResponse.java | 185 ++ .../RescheduleMaintenanceRunResponse.java | 293 +++ .../responses/RestartVmInstanceResponse.java | 185 ++ .../ScaleInfrastructureStorageResponse.java | 219 ++ .../responses/ScaleVmInstanceResponse.java | 185 ++ .../responses/StartVmInstanceResponse.java | 185 ++ .../responses/StopVmInstanceResponse.java | 185 ++ .../UpdateInfrastructureResponse.java | 292 +++ .../UpdateMaintenanceRunResponse.java | 292 +++ .../UpdateVmClusterNetworkResponse.java | 294 +++ .../responses/UpdateVmInstanceResponse.java | 290 +++ .../ValidateInfrastructureResponse.java | 293 +++ .../ValidateVmClusterNetworkResponse.java | 186 ++ .../oci-java-sdk-datacc/reflect-config.json | 884 +++++++ .../com/oracle/bmc/datacc/client.properties | 9 + 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 +- .../com/oracle/bmc/datasafe/DataSafe.java | 38 +- .../oracle/bmc/datasafe/DataSafeAsync.java | 39 +- .../bmc/datasafe/DataSafeAsyncClient.java | 53 + .../oracle/bmc/datasafe/DataSafeClient.java | 50 + .../bmc/datasafe/DataSafePaginators.java | 136 ++ .../model/AssociatedResourceSummary.java | 1 + .../bmc/datasafe/model/AuditTrailStatus.java | 4 +- .../bmc/datasafe/model/AuditTrailSummary.java | 16 +- .../bmc/datasafe/model/ColumnsInfo.java | 1 + .../CreateDataSafePrivateEndpointDetails.java | 65 +- ...teTargetAlertPolicyAssociationDetails.java | 54 +- .../model/DataSafePrivateEndpoint.java | 65 +- .../model/DataSafePrivateEndpointSummary.java | 65 +- ...wnloadSecurityAssessmentReportDetails.java | 82 +- .../datasafe/model/GenerateReportDetails.java | 60 +- ...nerateSecurityAssessmentReportDetails.java | 82 +- .../oracle/bmc/datasafe/model/Include.java | 4 +- .../com/oracle/bmc/datasafe/model/Report.java | 78 + .../bmc/datasafe/model/ReportDefinition.java | 56 + .../datasafe/model/ScheduleReportDetails.java | 60 +- .../model/TargetAlertPolicyAssociation.java | 94 +- .../TargetAlertPolicyAssociationSummary.java | 48 +- ...rgetAlertPolicyUnassociatedCollection.java | 135 ++ .../TargetAlertPolicyUnassociatedSummary.java | 391 ++++ .../UpdateDataSafePrivateEndpointDetails.java | 65 +- .../bmc/datasafe/model/WorkRequest.java | 1 + .../datasafe/model/WorkRequestSummary.java | 1 + .../datasafe/requests/ListChecksRequest.java | 1 + .../requests/ListFindingsRequest.java | 104 +- ...tTargetAlertPolicyAssociationsRequest.java | 41 +- ...AlertPolicyUnassociatedMembersRequest.java | 414 ++++ .../datasafe/requests/ListUsersRequest.java | 33 +- ...lertPolicyUnassociatedMembersResponse.java | 290 +++ .../oci-java-sdk-datasafe/reflect-config.json | 34 + bmc-datascience/pom.xml | 4 +- bmc-dblm/pom.xml | 4 +- bmc-dbmulticloud/pom.xml | 4 +- bmc-delegateaccesscontrol/pom.xml | 4 +- bmc-demandsignal/pom.xml | 4 +- bmc-desktops/pom.xml | 4 +- bmc-devops/pom.xml | 4 +- bmc-dif/pom.xml | 4 +- bmc-disasterrecovery/pom.xml | 4 +- bmc-distributeddatabase/pom.xml | 4 +- bmc-dns/pom.xml | 6 +- bmc-email/pom.xml | 4 +- bmc-emaildataplane/pom.xml | 4 +- bmc-emwarehouse/pom.xml | 4 +- bmc-encryption/pom.xml | 10 +- bmc-enforcer-rules/pom.xml | 2 +- bmc-events/pom.xml | 4 +- bmc-examples/pom.xml | 10 +- bmc-filestorage/pom.xml | 4 +- 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 +- bmc-gdp/pom.xml | 4 +- bmc-generativeai/pom.xml | 4 +- .../oracle/bmc/generativeai/GenerativeAi.java | 108 + .../bmc/generativeai/GenerativeAiAsync.java | 105 + .../generativeai/GenerativeAiAsyncClient.java | 243 ++ .../bmc/generativeai/GenerativeAiClient.java | 223 ++ .../generativeai/GenerativeAiPaginators.java | 125 + .../bmc/generativeai/GenerativeAiWaiters.java | 114 + .../bmc/generativeai/model/Artifact.java | 44 +- .../model/CreateArtifactDetails.java | 33 +- .../CreateHostedApplicationBaseDetails.java | 497 ++++ .../model/CreateHostedApplicationDetails.java | 60 +- .../CreateHostedApplicationIamDetails.java | 497 ++++ .../model/CreateHostedDeploymentDetails.java | 11 +- .../CreateSingleDockerArtifactDetails.java | 19 +- .../generativeai/model/HostedApplication.java | 60 +- .../model/HostedApplicationBase.java | 801 +++++++ .../model/HostedApplicationIam.java | 809 +++++++ .../model/HostedApplicationSummary.java | 26 +- .../generativeai/model/HostedDeployment.java | 9 +- .../model/HostedDeploymentSummary.java | 8 +- .../model/SingleDockerArtifact.java | 16 +- .../UpdateHostedApplicationBaseDetails.java | 373 +++ .../model/UpdateHostedApplicationDetails.java | 60 +- .../UpdateHostedApplicationIamDetails.java | 373 +++ ...ostedApplicationIamCompartmentRequest.java | 393 ++++ .../CreateHostedApplicationIamRequest.java | 298 +++ .../DeleteHostedApplicationIamRequest.java | 268 +++ .../GetHostedApplicationIamRequest.java | 223 ++ .../ListHostedApplicationsIamRequest.java | 512 ++++ .../ListHostedApplicationsRequest.java | 12 +- .../ListHostedDeploymentsRequest.java | 8 +- .../UpdateHostedApplicationIamRequest.java | 334 +++ ...stedApplicationIamCompartmentResponse.java | 140 ++ .../CreateHostedApplicationIamResponse.java | 266 +++ .../DeleteHostedApplicationIamResponse.java | 190 ++ .../GetHostedApplicationIamResponse.java | 214 ++ .../ListHostedApplicationsIamResponse.java | 237 ++ .../UpdateHostedApplicationIamResponse.java | 190 ++ .../reflect-config.json | 96 + bmc-generativeaiagent/pom.xml | 4 +- bmc-generativeaiagentruntime/pom.xml | 4 +- bmc-generativeaidata/pom.xml | 4 +- bmc-generativeaiinference/pom.xml | 4 +- bmc-genericartifactscontent/pom.xml | 4 +- bmc-goldengate/pom.xml | 4 +- bmc-governancerulescontrolplane/pom.xml | 4 +- bmc-healthchecks/pom.xml | 4 +- bmc-identity/pom.xml | 4 +- bmc-identitydataplane/pom.xml | 4 +- bmc-identitydomains/pom.xml | 4 +- bmc-integration/pom.xml | 4 +- bmc-iot/pom.xml | 4 +- bmc-jms/pom.xml | 4 +- bmc-jmsjavadownloads/pom.xml | 4 +- bmc-jmsutils/pom.xml | 4 +- bmc-keymanagement/pom.xml | 4 +- bmc-licensemanager/pom.xml | 4 +- bmc-limits/pom.xml | 4 +- bmc-limitsincrease/pom.xml | 4 +- bmc-loadbalancer/pom.xml | 4 +- bmc-lockbox/pom.xml | 4 +- bmc-loganalytics/pom.xml | 4 +- bmc-logging/pom.xml | 4 +- bmc-loggingingestion/pom.xml | 4 +- bmc-loggingsearch/pom.xml | 4 +- bmc-lustrefilestorage/pom.xml | 4 +- bmc-managedkafka/pom.xml | 4 +- bmc-managementagent/pom.xml | 4 +- bmc-managementdashboard/pom.xml | 4 +- bmc-marketplace/pom.xml | 4 +- bmc-marketplaceprivateoffer/pom.xml | 4 +- bmc-marketplacepublisher/pom.xml | 4 +- bmc-mediaservices/pom.xml | 4 +- bmc-mngdmac/pom.xml | 4 +- bmc-modeldeployment/pom.xml | 4 +- bmc-monitoring/pom.xml | 4 +- bmc-multicloud/pom.xml | 4 +- bmc-mysql/pom.xml | 4 +- bmc-networkfirewall/pom.xml | 4 +- bmc-networkloadbalancer/pom.xml | 4 +- bmc-nosql/pom.xml | 4 +- .../bmc-objectstorage-combined/pom.xml | 6 +- .../bmc-objectstorage-extensions/pom.xml | 8 +- .../bmc-objectstorage-generated/pom.xml | 4 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-ocicontrolcenter/pom.xml | 4 +- bmc-ocvp/pom.xml | 4 +- bmc-oda/pom.xml | 4 +- .../CreateOdaPrivateEndpointDetails.java | 65 +- .../bmc/oda/model/OdaPrivateEndpoint.java | 59 + .../oda/model/OdaPrivateEndpointSummary.java | 65 +- .../bmc/oda/model/ParameterDefinition.java | 1 + .../UpdateOdaPrivateEndpointDetails.java | 65 +- 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-osmanagementhub/pom.xml | 4 +- bmc-ospgateway/pom.xml | 4 +- bmc-osubbillingschedule/pom.xml | 4 +- bmc-osuborganizationsubscription/pom.xml | 4 +- bmc-osubsubscription/pom.xml | 4 +- bmc-osubusage/pom.xml | 4 +- .../bmc-jersey-examples/pom.xml | 8 +- .../bmc-jersey3-examples/pom.xml | 8 +- .../native-maven-example/pom.xml | 6 +- bmc-other-examples/pom.xml | 2 +- bmc-psa/pom.xml | 4 +- bmc-psql/pom.xml | 4 +- bmc-queue/pom.xml | 4 +- bmc-recovery/pom.xml | 4 +- bmc-redis/pom.xml | 4 +- bmc-resourceanalytics/pom.xml | 4 +- bmc-resourcemanager/pom.xml | 4 +- bmc-resourcescheduler/pom.xml | 4 +- bmc-resourcesearch/pom.xml | 4 +- bmc-rover/pom.xml | 4 +- bmc-sch/pom.xml | 4 +- bmc-secrets/pom.xml | 4 +- bmc-securityattribute/pom.xml | 4 +- bmc-self/pom.xml | 4 +- bmc-servicecatalog/pom.xml | 4 +- bmc-servicemanagerproxy/pom.xml | 4 +- bmc-shaded/bmc-shaded-full/pom.xml | 2 +- bmc-shaded/pom.xml | 2 +- bmc-stackmonitoring/pom.xml | 4 +- bmc-streaming/pom.xml | 4 +- bmc-tenantmanagercontrolplane/pom.xml | 4 +- bmc-threatintelligence/pom.xml | 4 +- bmc-usage/pom.xml | 4 +- bmc-usageapi/pom.xml | 4 +- bmc-vault/pom.xml | 6 +- bmc-vbsinst/pom.xml | 4 +- bmc-visualbuilder/pom.xml | 4 +- bmc-vnmonitoring/pom.xml | 4 +- bmc-vulnerabilityscanning/pom.xml | 4 +- bmc-waa/pom.xml | 4 +- bmc-waas/pom.xml | 4 +- bmc-waf/pom.xml | 4 +- bmc-wlms/pom.xml | 4 +- bmc-workrequests/pom.xml | 4 +- bmc-zpr/pom.xml | 4 +- pom.xml | 5 +- 510 files changed, 77601 insertions(+), 886 deletions(-) create mode 100644 bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/EnableAiFeatureDetails.java create mode 100644 bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/requests/EnableAiFeatureRequest.java create mode 100644 bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/responses/EnableAiFeatureResponse.java create mode 100644 bmc-common/src/test/java/com/oracle/bmc/http/internal/HeaderUtilsTest.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerFsGroupChangePolicyType.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSecurityContext.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerOciFssVolume.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceSecurityContextDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerOciFssVolumeDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateLinuxContainerInstanceSecurityContextDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportIdDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountCommandDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountOptionDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetIdDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSecurityDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSysSecurityDetails.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/LinuxContainerInstanceSecurityContext.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExport.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExportId.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountCommand.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountOption.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTarget.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTargetId.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSecurity.java create mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSysSecurity.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterLogicalPlacementConstraint.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterPlacementConstraintDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/CreateGmcConfigurationDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGmcConfigDetail.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGpuMemoryClusterScaleConfig.java create mode 100644 bmc-datacc/pom.xml create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/Baseinfra.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsync.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsyncClient.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraClient.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraPaginators.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraWaiters.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/AcfsCapacityDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActionType.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActivateInfrastructureDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/BasePatchingMode.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeInfrastructureCompartmentDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmClusterNetworkCompartmentDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmInstanceCompartmentDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ComputeCapacityDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateInfrastructureDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmClusterNetworkDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmInstanceDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/DiskGroupCapacityDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/GenerateRecommendedVmClusterNetworkDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfoVmNetworkDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/Infrastructure.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureCollection.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureContact.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureLifecycleState.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureScaleOption.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServer.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServerLifecycleState.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureSummary.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureType.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecution.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionCollection.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionSummary.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenancePreference.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRun.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunCollection.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunLifecycleState.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunSummary.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceSubtypeEnum.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceTypeEnum.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceWindow.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingInterfaceEnum.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingMode.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NodeDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationStatus.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationType.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingModeEnum.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingStatusEnum.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/RescheduleMaintenanceRunDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleInfrastructureStorageDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleVmInstanceDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScanDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ShapeEnum.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SortOrder.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageCapacityDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageDiskRedundancy.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageType.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemModelEnum.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemStorageCapacityDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TargetResourceTypeEnum.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TypeEnum.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateInfrastructureDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateMaintenanceRunDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmClusterNetworkDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmInstanceDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ValidateInfrastructureDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetwork.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkCollection.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkLifecycleState.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkSummary.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkType.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstance.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceCollection.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceLifecycleState.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceSummary.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkConsumerType.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkDetails.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestCollection.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestError.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestErrorCollection.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntry.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntryCollection.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestResource.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ActivateInfrastructureRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeInfrastructureCompartmentRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmClusterNetworkCompartmentRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmInstanceCompartmentRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateInfrastructureRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmClusterNetworkRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmInstanceRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteInfrastructureRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmClusterNetworkRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmInstanceRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureConfigFileRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureValidationScriptRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GenerateRecommendedVmClusterNetworkRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureScaleOptionRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceExecutionRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceRunRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmClusterNetworkRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmInstanceRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetWorkRequestRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListInfrastructuresRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceExecutionsRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceRunsRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmClusterNetworksRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmInstancesRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestErrorsRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestLogsRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestsRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/MigrateVmInstanceRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RescheduleMaintenanceRunRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RestartVmInstanceRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleInfrastructureStorageRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleVmInstanceRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StartVmInstanceRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StopVmInstanceRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateInfrastructureRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateMaintenanceRunRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmClusterNetworkRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmInstanceRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateInfrastructureRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateVmClusterNetworkRequest.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ActivateInfrastructureResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeInfrastructureCompartmentResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmClusterNetworkCompartmentResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmInstanceCompartmentResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateInfrastructureResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmClusterNetworkResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmInstanceResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteInfrastructureResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmClusterNetworkResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmInstanceResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureConfigFileResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureValidationScriptResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GenerateRecommendedVmClusterNetworkResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureScaleOptionResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceExecutionResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceRunResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmClusterNetworkResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmInstanceResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetWorkRequestResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListInfrastructuresResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceExecutionsResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceRunsResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmClusterNetworksResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmInstancesResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestErrorsResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestLogsResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestsResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/MigrateVmInstanceResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RescheduleMaintenanceRunResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RestartVmInstanceResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleInfrastructureStorageResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleVmInstanceResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StartVmInstanceResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StopVmInstanceResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateInfrastructureResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateMaintenanceRunResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmClusterNetworkResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmInstanceResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateInfrastructureResponse.java create mode 100644 bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateVmClusterNetworkResponse.java create mode 100644 bmc-datacc/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datacc/reflect-config.json create mode 100644 bmc-datacc/src/main/resources/com/oracle/bmc/datacc/client.properties create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyUnassociatedMembersRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTargetAlertPolicyUnassociatedMembersResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationBaseDetails.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationIamDetails.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeHostedApplicationIamCompartmentRequest.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateHostedApplicationIamRequest.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteHostedApplicationIamRequest.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetHostedApplicationIamRequest.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsIamRequest.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateHostedApplicationIamRequest.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeHostedApplicationIamCompartmentResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateHostedApplicationIamResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteHostedApplicationIamResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetHostedApplicationIamResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListHostedApplicationsIamResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateHostedApplicationIamResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index f8b906e1ead..a6deea35db6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.92.0 - 2026-07-14 +### Added +- Support for the Oracle Data Infrastructure Cloud@Customer service +- Support for AI Agents features in the AI Data Platform service +- Support for Hosted Application IAM resources in the Generative AI service +- Support for File Storage Service (FSS) volumes in the Container Instances service +- Support for Linux file system group security contexts for volumes in the Container Instances service +- Support for Zero Trust Packet Routing (ZPR) security attributes on private endpoints in the Digital Assistant service +- Support for placement constraints on compute clusters in the Compute service +- Support for GPU memory cluster configurations in instance pools in the Compute service +- Support for target database groups in target alert policy associations in the Data Safe service +- Support for pagination when generating and scheduling reports in the Data Safe service +- Support for refreshing audit policies in the Data Safe service +- Support for single report generation for target database group security assessments in the Data Safe service +- Support for Zero Trust Packet Routing (ZPR) security attributes on private endpoints in the Data Safe service +- Support for IPv6 endpoints in the OS Management Hub service   + +### Breaking Changes +- The return type of method `public com.oracle.bmc.generativeai.model.HostedApplication$LifecycleState getLifecycleState()` has been changed to `com.oracle.bmc.generativeai.model.HostedApplicationBase$LifecycleState` in the model `com.oracle.bmc.generativeai.model.HostedApplicationSummary` in the Generative AI service +- The return type of method `public com.oracle.bmc.generativeai.model.HostedApplication$LifecycleState getLifecycleState()` has been changed to `com.oracle.bmc.generativeai.model.HostedApplicationBase$LifecycleState` in the request class `com.oracle.bmc.generativeai.requests.ListHostedApplicationsRequest` in the Generative AI service + ## 3.91.1 - 2026-06-07 ### Added - Support for DAC hardware shapes for self-hosted models in the Generative AI service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 009a31c742b..3ec75436ca5 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-addons/bmc-adk/pom.xml b/bmc-addons/bmc-adk/pom.xml index d92baa639bd..9cfbb134c33 100644 --- a/bmc-addons/bmc-adk/pom.xml +++ b/bmc-addons/bmc-adk/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.91.1 + 3.92.0 oci-java-sdk-addons-adk diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index d11475d64d1..678f7229b35 100644 --- a/bmc-addons/bmc-aispeech-realtime/pom.xml +++ b/bmc-addons/bmc-aispeech-realtime/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.91.1 + 3.92.0 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.91.1 + 3.92.0 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 9c020876b2a..f6941466099 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.91.1 + 3.92.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.91.1 + 3.92.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.91.1 + 3.92.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 e813dc91c21..22322f51cdd 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.91.1 + 3.92.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.91.1 + 3.92.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.91.1 + 3.92.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 980982e88aa..e63e037a3e5 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.91.1 + 3.92.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 77e29ef454b..9c45487bfec 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.91.1 + 3.92.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.91.1 + 3.92.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.91.1 + 3.92.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.91.1 + 3.92.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 487097a4c2f..39a99dd0d7f 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.91.1 + 3.92.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.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 983e7317326..73641455341 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.91.1 + 3.92.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.91.1 + 3.92.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.91.1 + 3.92.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 1489845435b..d71b1707b7f 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.91.1 + 3.92.0 ../pom.xml @@ -61,7 +61,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index bd696691eb9..ad628ff5b1b 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.91.1 + 3.92.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.91.1 + 3.92.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.91.1 + 3.92.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 1991df0d2d8..fc52296a887 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.91.1 + 3.92.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.91.1 + 3.92.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.91.1 + 3.92.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 50ecdfa1ce2..ee78425737f 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 9fab15ae54b..4973bcd4934 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 5814e18b948..02636d5832a 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatform.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatform.java index 30ee9e94b71..469c56fed18 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatform.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatform.java @@ -130,6 +130,22 @@ ChangeAiDataPlatformCompartmentResponse changeAiDataPlatformCompartment( */ DeleteAiDataPlatformResponse deleteAiDataPlatform(DeleteAiDataPlatformRequest request); + /** + * The AiDataPlatform will be enabled with AI features + * + * @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 EnableAiFeature + * API. + */ + EnableAiFeatureResponse enableAiFeature(EnableAiFeatureRequest request); + /** * Gets information about a AiDataPlatform. * diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsync.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsync.java index 477d9c92121..2194336f2e8 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsync.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsync.java @@ -127,6 +127,21 @@ java.util.concurrent.Future deleteAiDataPlatform( DeleteAiDataPlatformRequest, DeleteAiDataPlatformResponse> handler); + /** + * The AiDataPlatform will be enabled with AI features + * + * @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 enableAiFeature( + EnableAiFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Gets information about a AiDataPlatform. * diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsyncClient.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsyncClient.java index 58099941a72..507a39a901b 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsyncClient.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsyncClient.java @@ -236,6 +236,42 @@ public java.util.concurrent.Future deleteAiDataPla .callAsync(handler); } + @Override + public java.util.concurrent.Future enableAiFeature( + EnableAiFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableAiFeatureRequest, EnableAiFeatureResponse> + handler) { + + Validate.notBlank(request.getAiDataPlatformId(), "aiDataPlatformId must not be blank"); + Objects.requireNonNull( + request.getEnableAiFeatureDetails(), "enableAiFeatureDetails is required"); + + return clientCall(request, EnableAiFeatureResponse::builder) + .logger(LOG, "enableAiFeature") + .serviceDetails( + "AiDataPlatform", + "EnableAiFeature", + "https://docs.oracle.com/iaas/api/#/en/ai-data-platform/20240831/AiDataPlatform/EnableAiFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableAiFeatureRequest::builder) + .basePath("/20240831") + .appendPathParam("aiDataPlatforms") + .appendPathParam(request.getAiDataPlatformId()) + .appendPathParam("actions") + .appendPathParam("enableAiFeature") + .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", EnableAiFeatureResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", EnableAiFeatureResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getAiDataPlatform( GetAiDataPlatformRequest request, diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformClient.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformClient.java index 0805f4432f8..7342bfd152f 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformClient.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformClient.java @@ -250,6 +250,39 @@ public DeleteAiDataPlatformResponse deleteAiDataPlatform(DeleteAiDataPlatformReq .callSync(); } + @Override + public EnableAiFeatureResponse enableAiFeature(EnableAiFeatureRequest request) { + + Validate.notBlank(request.getAiDataPlatformId(), "aiDataPlatformId must not be blank"); + Objects.requireNonNull( + request.getEnableAiFeatureDetails(), "enableAiFeatureDetails is required"); + + return clientCall(request, EnableAiFeatureResponse::builder) + .logger(LOG, "enableAiFeature") + .serviceDetails( + "AiDataPlatform", + "EnableAiFeature", + "https://docs.oracle.com/iaas/api/#/en/ai-data-platform/20240831/AiDataPlatform/EnableAiFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableAiFeatureRequest::builder) + .basePath("/20240831") + .appendPathParam("aiDataPlatforms") + .appendPathParam(request.getAiDataPlatformId()) + .appendPathParam("actions") + .appendPathParam("enableAiFeature") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", EnableAiFeatureResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", EnableAiFeatureResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetAiDataPlatformResponse getAiDataPlatform(GetAiDataPlatformRequest request) { diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatform.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatform.java index 9c2a6181928..be53aa43653 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatform.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatform.java @@ -40,6 +40,7 @@ public final class AiDataPlatform "aliasKey", "webSocketEndpoint", "lifecycleState", + "aiFeatureStatus", "lifecycleDetails", "freeformTags", "definedTags", @@ -56,6 +57,7 @@ public AiDataPlatform( String aliasKey, String webSocketEndpoint, LifecycleState lifecycleState, + AiFeatureStatus aiFeatureStatus, String lifecycleDetails, java.util.Map freeformTags, java.util.Map> definedTags, @@ -71,6 +73,7 @@ public AiDataPlatform( this.aliasKey = aliasKey; this.webSocketEndpoint = webSocketEndpoint; this.lifecycleState = lifecycleState; + this.aiFeatureStatus = aiFeatureStatus; this.lifecycleDetails = lifecycleDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -257,6 +260,21 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** The current aiFeatureStatus of the AiDataPlatform. */ + @com.fasterxml.jackson.annotation.JsonProperty("aiFeatureStatus") + private AiFeatureStatus aiFeatureStatus; + + /** + * The current aiFeatureStatus of the AiDataPlatform. + * + * @param aiFeatureStatus the value to set + * @return this builder + */ + public Builder aiFeatureStatus(AiFeatureStatus aiFeatureStatus) { + this.aiFeatureStatus = aiFeatureStatus; + this.__explicitlySet__.add("aiFeatureStatus"); + return this; + } /** * A message that describes the current state of the AiDataPlatform in more detail. For * example, can be used to provide actionable information for a resource in the Failed @@ -367,6 +385,7 @@ public AiDataPlatform build() { this.aliasKey, this.webSocketEndpoint, this.lifecycleState, + this.aiFeatureStatus, this.lifecycleDetails, this.freeformTags, this.definedTags, @@ -409,6 +428,9 @@ public Builder copy(AiDataPlatform model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("aiFeatureStatus")) { + this.aiFeatureStatus(model.getAiFeatureStatus()); + } if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } @@ -642,6 +664,67 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** The current aiFeatureStatus of the AiDataPlatform. */ + public enum AiFeatureStatus implements com.oracle.bmc.http.internal.BmcEnum { + Disabled("DISABLED"), + Enabling("ENABLING"), + Ready("READY"), + 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(AiFeatureStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AiFeatureStatus v : AiFeatureStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AiFeatureStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AiFeatureStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AiFeatureStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current aiFeatureStatus of the AiDataPlatform. */ + @com.fasterxml.jackson.annotation.JsonProperty("aiFeatureStatus") + private final AiFeatureStatus aiFeatureStatus; + + /** + * The current aiFeatureStatus of the AiDataPlatform. + * + * @return the value + */ + public AiFeatureStatus getAiFeatureStatus() { + return aiFeatureStatus; + } + /** * A message that describes the current state of the AiDataPlatform in more detail. For example, * can be used to provide actionable information for a resource in the Failed state. @@ -749,6 +832,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", aliasKey=").append(String.valueOf(this.aliasKey)); sb.append(", webSocketEndpoint=").append(String.valueOf(this.webSocketEndpoint)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", aiFeatureStatus=").append(String.valueOf(this.aiFeatureStatus)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -777,6 +861,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.aliasKey, other.aliasKey) && java.util.Objects.equals(this.webSocketEndpoint, other.webSocketEndpoint) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.aiFeatureStatus, other.aiFeatureStatus) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -808,6 +893,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.aiFeatureStatus == null ? 43 : this.aiFeatureStatus.hashCode()); result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatformSummary.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatformSummary.java index c1b9b033e44..35d646d24da 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatformSummary.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatformSummary.java @@ -32,6 +32,7 @@ public final class AiDataPlatformSummary "timeCreated", "timeUpdated", "aliasKey", + "aiFeatureStatus", "lifecycleState", "lifecycleDetails", "freeformTags", @@ -47,6 +48,7 @@ public AiDataPlatformSummary( java.util.Date timeCreated, java.util.Date timeUpdated, String aliasKey, + AiDataPlatform.AiFeatureStatus aiFeatureStatus, AiDataPlatform.LifecycleState lifecycleState, String lifecycleDetails, java.util.Map freeformTags, @@ -61,6 +63,7 @@ public AiDataPlatformSummary( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.aliasKey = aliasKey; + this.aiFeatureStatus = aiFeatureStatus; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.freeformTags = freeformTags; @@ -218,6 +221,21 @@ public Builder aliasKey(String aliasKey) { this.__explicitlySet__.add("aliasKey"); return this; } + /** The current aiFeatureStatus of the AiDataPlatform. */ + @com.fasterxml.jackson.annotation.JsonProperty("aiFeatureStatus") + private AiDataPlatform.AiFeatureStatus aiFeatureStatus; + + /** + * The current aiFeatureStatus of the AiDataPlatform. + * + * @param aiFeatureStatus the value to set + * @return this builder + */ + public Builder aiFeatureStatus(AiDataPlatform.AiFeatureStatus aiFeatureStatus) { + this.aiFeatureStatus = aiFeatureStatus; + this.__explicitlySet__.add("aiFeatureStatus"); + return this; + } /** The current state of the AiDataPlatform. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private AiDataPlatform.LifecycleState lifecycleState; @@ -341,6 +359,7 @@ public AiDataPlatformSummary build() { this.timeCreated, this.timeUpdated, this.aliasKey, + this.aiFeatureStatus, this.lifecycleState, this.lifecycleDetails, this.freeformTags, @@ -378,6 +397,9 @@ public Builder copy(AiDataPlatformSummary model) { if (model.wasPropertyExplicitlySet("aliasKey")) { this.aliasKey(model.getAliasKey()); } + if (model.wasPropertyExplicitlySet("aiFeatureStatus")) { + this.aiFeatureStatus(model.getAiFeatureStatus()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -538,6 +560,19 @@ public String getAliasKey() { return aliasKey; } + /** The current aiFeatureStatus of the AiDataPlatform. */ + @com.fasterxml.jackson.annotation.JsonProperty("aiFeatureStatus") + private final AiDataPlatform.AiFeatureStatus aiFeatureStatus; + + /** + * The current aiFeatureStatus of the AiDataPlatform. + * + * @return the value + */ + public AiDataPlatform.AiFeatureStatus getAiFeatureStatus() { + return aiFeatureStatus; + } + /** The current state of the AiDataPlatform. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final AiDataPlatform.LifecycleState lifecycleState; @@ -656,6 +691,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", aliasKey=").append(String.valueOf(this.aliasKey)); + sb.append(", aiFeatureStatus=").append(String.valueOf(this.aiFeatureStatus)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -683,6 +719,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.aliasKey, other.aliasKey) + && java.util.Objects.equals(this.aiFeatureStatus, other.aiFeatureStatus) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -709,6 +746,9 @@ public int 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.aliasKey == null ? 43 : this.aliasKey.hashCode()); + result = + (result * PRIME) + + (this.aiFeatureStatus == null ? 43 : this.aiFeatureStatus.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/CreateAiDataPlatformDetails.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/CreateAiDataPlatformDetails.java index b6dda9106f1..de76c8e5430 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/CreateAiDataPlatformDetails.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/CreateAiDataPlatformDetails.java @@ -23,9 +23,41 @@ public final class CreateAiDataPlatformDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateAiDataPlatformDetails( + String displayName, + String aiDataPlatformType, + Boolean isEnableAiFeature, + String vectorDbId, + String vectorDbAdminCred, + String vectorDbAdminSecretId, + String compartmentId, + String defaultWorkspaceName, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.displayName = displayName; + this.aiDataPlatformType = aiDataPlatformType; + this.isEnableAiFeature = isEnableAiFeature; + this.vectorDbId = vectorDbId; + this.vectorDbAdminCred = vectorDbAdminCred != null ? vectorDbAdminCred.toCharArray() : null; + this.vectorDbAdminSecretId = vectorDbAdminSecretId; + this.compartmentId = compartmentId; + this.defaultWorkspaceName = defaultWorkspaceName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "aiDataPlatformType", + "isEnableAiFeature", + "vectorDbId", + "vectorDbAdminCred", + "vectorDbAdminSecretId", "compartmentId", "defaultWorkspaceName", "freeformTags", @@ -35,6 +67,10 @@ public final class CreateAiDataPlatformDetails public CreateAiDataPlatformDetails( String displayName, String aiDataPlatformType, + Boolean isEnableAiFeature, + String vectorDbId, + char[] vectorDbAdminCred, + String vectorDbAdminSecretId, String compartmentId, String defaultWorkspaceName, java.util.Map freeformTags, @@ -43,6 +79,10 @@ public CreateAiDataPlatformDetails( super(); this.displayName = displayName; this.aiDataPlatformType = aiDataPlatformType; + this.isEnableAiFeature = isEnableAiFeature; + this.vectorDbId = vectorDbId; + this.vectorDbAdminCred = vectorDbAdminCred; + this.vectorDbAdminSecretId = vectorDbAdminSecretId; this.compartmentId = compartmentId; this.defaultWorkspaceName = defaultWorkspaceName; this.freeformTags = freeformTags; @@ -86,6 +126,81 @@ public Builder aiDataPlatformType(String aiDataPlatformType) { this.__explicitlySet__.add("aiDataPlatformType"); return this; } + /** The flag to enable/disable AiFeatures for the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableAiFeature") + private Boolean isEnableAiFeature; + + /** + * The flag to enable/disable AiFeatures for the instance. + * + * @param isEnableAiFeature the value to set + * @return this builder + */ + public Builder isEnableAiFeature(Boolean isEnableAiFeature) { + this.isEnableAiFeature = isEnableAiFeature; + this.__explicitlySet__.add("isEnableAiFeature"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * vector db Lakehouse 26ai. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbId") + private String vectorDbId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * vector db Lakehouse 26ai. + * + * @param vectorDbId the value to set + * @return this builder + */ + public Builder vectorDbId(String vectorDbId) { + this.vectorDbId = vectorDbId; + this.__explicitlySet__.add("vectorDbId"); + return this; + } + /** The Vector DB Lakehouse 26ai ADMIN user password. */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + private char[] vectorDbAdminCred; + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * @param vectorDbAdminCred the value to set + * @return this builder + */ + public Builder vectorDbAdminCred(char[] vectorDbAdminCred) { + this.vectorDbAdminCred = vectorDbAdminCred; + this.__explicitlySet__.add("vectorDbAdminCred"); + return this; + } + + public Builder vectorDbAdminCred(String vectorDbAdminCred) { + this.vectorDbAdminCred = + vectorDbAdminCred != null ? vectorDbAdminCred.toCharArray() : null; + this.__explicitlySet__.add("vectorDbAdminCred"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminSecretId") + private String vectorDbAdminSecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + * @param vectorDbAdminSecretId the value to set + * @return this builder + */ + public Builder vectorDbAdminSecretId(String vectorDbAdminSecretId) { + this.vectorDbAdminSecretId = vectorDbAdminSecretId; + this.__explicitlySet__.add("vectorDbAdminSecretId"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * compartment to create the AiDataPlatform in. @@ -201,6 +316,10 @@ public CreateAiDataPlatformDetails build() { new CreateAiDataPlatformDetails( this.displayName, this.aiDataPlatformType, + this.isEnableAiFeature, + this.vectorDbId, + this.vectorDbAdminCred, + this.vectorDbAdminSecretId, this.compartmentId, this.defaultWorkspaceName, this.freeformTags, @@ -220,6 +339,18 @@ public Builder copy(CreateAiDataPlatformDetails model) { if (model.wasPropertyExplicitlySet("aiDataPlatformType")) { this.aiDataPlatformType(model.getAiDataPlatformType()); } + if (model.wasPropertyExplicitlySet("isEnableAiFeature")) { + this.isEnableAiFeature(model.getIsEnableAiFeature()); + } + if (model.wasPropertyExplicitlySet("vectorDbId")) { + this.vectorDbId(model.getVectorDbId()); + } + if (model.wasPropertyExplicitlySet("vectorDbAdminCred")) { + this.vectorDbAdminCred(model.getVectorDbAdminCred()); + } + if (model.wasPropertyExplicitlySet("vectorDbAdminSecretId")) { + this.vectorDbAdminSecretId(model.getVectorDbAdminSecretId()); + } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -278,6 +409,79 @@ public String getAiDataPlatformType() { return aiDataPlatformType; } + /** The flag to enable/disable AiFeatures for the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableAiFeature") + private final Boolean isEnableAiFeature; + + /** + * The flag to enable/disable AiFeatures for the instance. + * + * @return the value + */ + public Boolean getIsEnableAiFeature() { + return isEnableAiFeature; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * vector db Lakehouse 26ai. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbId") + private final String vectorDbId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * vector db Lakehouse 26ai. + * + * @return the value + */ + public String getVectorDbId() { + return vectorDbId; + } + + /** The Vector DB Lakehouse 26ai ADMIN user password. */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + private final char[] vectorDbAdminCred; + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * @return the value + * @deprecated Use getVectorDbAdminCred__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getVectorDbAdminCred() { + return vectorDbAdminCred != null ? new String(vectorDbAdminCred) : null; + } + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + public char[] getVectorDbAdminCred__AsCharArray() { + return vectorDbAdminCred; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI + * Vault secret holding the vector db Lakehouse 26ai Admin user password. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminSecretId") + private final String vectorDbAdminSecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI + * Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + * @return the value + */ + public String getVectorDbAdminSecretId() { + return vectorDbAdminSecretId; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * compartment to create the AiDataPlatform in. @@ -390,6 +594,10 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", aiDataPlatformType=").append(String.valueOf(this.aiDataPlatformType)); + sb.append(", isEnableAiFeature=").append(String.valueOf(this.isEnableAiFeature)); + sb.append(", vectorDbId=").append(String.valueOf(this.vectorDbId)); + sb.append(", vectorDbAdminCred=").append(""); + sb.append(", vectorDbAdminSecretId=").append(String.valueOf(this.vectorDbAdminSecretId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", defaultWorkspaceName=").append(String.valueOf(this.defaultWorkspaceName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -411,6 +619,10 @@ public boolean equals(Object o) { CreateAiDataPlatformDetails other = (CreateAiDataPlatformDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.aiDataPlatformType, other.aiDataPlatformType) + && java.util.Objects.equals(this.isEnableAiFeature, other.isEnableAiFeature) + && java.util.Objects.equals(this.vectorDbId, other.vectorDbId) + && java.util.Objects.equals(this.vectorDbAdminCred, other.vectorDbAdminCred) + && java.util.Objects.equals(this.vectorDbAdminSecretId, other.vectorDbAdminSecretId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.defaultWorkspaceName, other.defaultWorkspaceName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -429,6 +641,18 @@ public int hashCode() { + (this.aiDataPlatformType == null ? 43 : this.aiDataPlatformType.hashCode()); + result = + (result * PRIME) + + (this.isEnableAiFeature == null ? 43 : this.isEnableAiFeature.hashCode()); + result = (result * PRIME) + (this.vectorDbId == null ? 43 : this.vectorDbId.hashCode()); + result = + (result * PRIME) + + (this.vectorDbAdminCred == null ? 43 : this.vectorDbAdminCred.hashCode()); + result = + (result * PRIME) + + (this.vectorDbAdminSecretId == null + ? 43 + : this.vectorDbAdminSecretId.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/EnableAiFeatureDetails.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/EnableAiFeatureDetails.java new file mode 100644 index 00000000000..16948450a1e --- /dev/null +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/EnableAiFeatureDetails.java @@ -0,0 +1,259 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidataplatform.model; + +/** + * The data to enable Ai Feature for AiDataPlatform.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableAiFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnableAiFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + public EnableAiFeatureDetails( + String vectorDbId, String vectorDbAdminCred, String vectorDbAdminSecretId) { + super(); + this.vectorDbId = vectorDbId; + this.vectorDbAdminCred = vectorDbAdminCred != null ? vectorDbAdminCred.toCharArray() : null; + this.vectorDbAdminSecretId = vectorDbAdminSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"vectorDbId", "vectorDbAdminCred", "vectorDbAdminSecretId"}) + public EnableAiFeatureDetails( + String vectorDbId, char[] vectorDbAdminCred, String vectorDbAdminSecretId) { + super(); + this.vectorDbId = vectorDbId; + this.vectorDbAdminCred = vectorDbAdminCred; + this.vectorDbAdminSecretId = vectorDbAdminSecretId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * vector db Lakehouse 26ai. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbId") + private String vectorDbId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * vector db Lakehouse 26ai. + * + * @param vectorDbId the value to set + * @return this builder + */ + public Builder vectorDbId(String vectorDbId) { + this.vectorDbId = vectorDbId; + this.__explicitlySet__.add("vectorDbId"); + return this; + } + /** The Vector DB Lakehouse 26ai ADMIN user password. */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + private char[] vectorDbAdminCred; + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * @param vectorDbAdminCred the value to set + * @return this builder + */ + public Builder vectorDbAdminCred(char[] vectorDbAdminCred) { + this.vectorDbAdminCred = vectorDbAdminCred; + this.__explicitlySet__.add("vectorDbAdminCred"); + return this; + } + + public Builder vectorDbAdminCred(String vectorDbAdminCred) { + this.vectorDbAdminCred = + vectorDbAdminCred != null ? vectorDbAdminCred.toCharArray() : null; + this.__explicitlySet__.add("vectorDbAdminCred"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminSecretId") + private String vectorDbAdminSecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + * @param vectorDbAdminSecretId the value to set + * @return this builder + */ + public Builder vectorDbAdminSecretId(String vectorDbAdminSecretId) { + this.vectorDbAdminSecretId = vectorDbAdminSecretId; + this.__explicitlySet__.add("vectorDbAdminSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableAiFeatureDetails build() { + EnableAiFeatureDetails model = + new EnableAiFeatureDetails( + this.vectorDbId, this.vectorDbAdminCred, this.vectorDbAdminSecretId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableAiFeatureDetails model) { + if (model.wasPropertyExplicitlySet("vectorDbId")) { + this.vectorDbId(model.getVectorDbId()); + } + if (model.wasPropertyExplicitlySet("vectorDbAdminCred")) { + this.vectorDbAdminCred(model.getVectorDbAdminCred()); + } + if (model.wasPropertyExplicitlySet("vectorDbAdminSecretId")) { + this.vectorDbAdminSecretId(model.getVectorDbAdminSecretId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * vector db Lakehouse 26ai. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbId") + private final String vectorDbId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * vector db Lakehouse 26ai. + * + * @return the value + */ + public String getVectorDbId() { + return vectorDbId; + } + + /** The Vector DB Lakehouse 26ai ADMIN user password. */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + private final char[] vectorDbAdminCred; + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * @return the value + * @deprecated Use getVectorDbAdminCred__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getVectorDbAdminCred() { + return vectorDbAdminCred != null ? new String(vectorDbAdminCred) : null; + } + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + public char[] getVectorDbAdminCred__AsCharArray() { + return vectorDbAdminCred; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI + * Vault secret holding the vector db Lakehouse 26ai Admin user password. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminSecretId") + private final String vectorDbAdminSecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI + * Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + * @return the value + */ + public String getVectorDbAdminSecretId() { + return vectorDbAdminSecretId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnableAiFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("vectorDbId=").append(String.valueOf(this.vectorDbId)); + sb.append(", vectorDbAdminCred=").append(""); + sb.append(", vectorDbAdminSecretId=").append(String.valueOf(this.vectorDbAdminSecretId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableAiFeatureDetails)) { + return false; + } + + EnableAiFeatureDetails other = (EnableAiFeatureDetails) o; + return java.util.Objects.equals(this.vectorDbId, other.vectorDbId) + && java.util.Objects.equals(this.vectorDbAdminCred, other.vectorDbAdminCred) + && java.util.Objects.equals(this.vectorDbAdminSecretId, other.vectorDbAdminSecretId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vectorDbId == null ? 43 : this.vectorDbId.hashCode()); + result = + (result * PRIME) + + (this.vectorDbAdminCred == null ? 43 : this.vectorDbAdminCred.hashCode()); + result = + (result * PRIME) + + (this.vectorDbAdminSecretId == null + ? 43 + : this.vectorDbAdminSecretId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/OperationType.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/OperationType.java index 390726a7e63..cba24ed74d4 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/OperationType.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/OperationType.java @@ -11,6 +11,11 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { UpdateDataLake("UPDATE_DATA_LAKE"), DeleteDataLake("DELETE_DATA_LAKE"), MoveDataLake("MOVE_DATA_LAKE"), + CreateAiDataPlatform("CREATE_AI_DATA_PLATFORM"), + UpdateAiDataPlatform("UPDATE_AI_DATA_PLATFORM"), + DeleteAiDataPlatform("DELETE_AI_DATA_PLATFORM"), + MoveAiDataPlatform("MOVE_AI_DATA_PLATFORM"), + EnableAiFeatures("ENABLE_AI_FEATURES"), CreateWorkspace("CREATE_WORKSPACE"), UpdateWorkspace("UPDATE_WORKSPACE"), DeleteWorkspace("DELETE_WORKSPACE"), diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/requests/EnableAiFeatureRequest.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/requests/EnableAiFeatureRequest.java new file mode 100644 index 00000000000..201146fd2c3 --- /dev/null +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/requests/EnableAiFeatureRequest.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidataplatform.requests; + +import com.oracle.bmc.aidataplatform.model.*; +/** + * Example: Click here to see how to use EnableAiFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240831") +public class EnableAiFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * AiDataPlatform. + */ + private String aiDataPlatformId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * AiDataPlatform. + */ + public String getAiDataPlatformId() { + return aiDataPlatformId; + } + /** The information to be updated. */ + private com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails enableAiFeatureDetails; + + /** The information to be updated. */ + public com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails getEnableAiFeatureDetails() { + return enableAiFeatureDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails getBody$() { + return enableAiFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableAiFeatureRequest, + com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * AiDataPlatform. + */ + private String aiDataPlatformId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * AiDataPlatform. + * + * @param aiDataPlatformId the value to set + * @return this builder instance + */ + public Builder aiDataPlatformId(String aiDataPlatformId) { + this.aiDataPlatformId = aiDataPlatformId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails enableAiFeatureDetails = + null; + + /** + * The information to be updated. + * + * @param enableAiFeatureDetails the value to set + * @return this builder instance + */ + public Builder enableAiFeatureDetails( + com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails enableAiFeatureDetails) { + this.enableAiFeatureDetails = enableAiFeatureDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(EnableAiFeatureRequest o) { + aiDataPlatformId(o.getAiDataPlatformId()); + enableAiFeatureDetails(o.getEnableAiFeatureDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableAiFeatureRequest 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 EnableAiFeatureRequest + */ + public EnableAiFeatureRequest build() { + EnableAiFeatureRequest 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.aidataplatform.model.EnableAiFeatureDetails body) { + enableAiFeatureDetails(body); + return this; + } + + /** + * Build the instance of EnableAiFeatureRequest 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 EnableAiFeatureRequest + */ + public EnableAiFeatureRequest buildWithoutInvocationCallback() { + EnableAiFeatureRequest request = new EnableAiFeatureRequest(); + request.aiDataPlatformId = aiDataPlatformId; + request.enableAiFeatureDetails = enableAiFeatureDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new EnableAiFeatureRequest(aiDataPlatformId, enableAiFeatureDetails, 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() + .aiDataPlatformId(aiDataPlatformId) + .enableAiFeatureDetails(enableAiFeatureDetails) + .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(",aiDataPlatformId=").append(String.valueOf(this.aiDataPlatformId)); + sb.append(",enableAiFeatureDetails=").append(String.valueOf(this.enableAiFeatureDetails)); + 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 EnableAiFeatureRequest)) { + return false; + } + + EnableAiFeatureRequest other = (EnableAiFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.aiDataPlatformId, other.aiDataPlatformId) + && java.util.Objects.equals( + this.enableAiFeatureDetails, other.enableAiFeatureDetails) + && 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.aiDataPlatformId == null ? 43 : this.aiDataPlatformId.hashCode()); + result = + (result * PRIME) + + (this.enableAiFeatureDetails == null + ? 43 + : this.enableAiFeatureDetails.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-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/responses/EnableAiFeatureResponse.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/responses/EnableAiFeatureResponse.java new file mode 100644 index 00000000000..3ed70d1f0ae --- /dev/null +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/responses/EnableAiFeatureResponse.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidataplatform.responses; + +import com.oracle.bmc.aidataplatform.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240831") +public class EnableAiFeatureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private EnableAiFeatureResponse( + 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(EnableAiFeatureResponse 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 EnableAiFeatureResponse build() { + return new EnableAiFeatureResponse( + __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 EnableAiFeatureResponse)) { + return false; + } + + EnableAiFeatureResponse other = (EnableAiFeatureResponse) 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-aidataplatform/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aidataplatform/reflect-config.json b/bmc-aidataplatform/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aidataplatform/reflect-config.json index fd1de03398d..5c2043831ff 100644 --- a/bmc-aidataplatform/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aidataplatform/reflect-config.json +++ b/bmc-aidataplatform/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aidataplatform/reflect-config.json @@ -25,6 +25,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidataplatform.model.AiDataPlatform$AiFeatureStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.aidataplatform.model.AiDataPlatformCollection", @@ -81,6 +87,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.aidataplatform.model.OperationStatus", diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 313d4487919..cdcb31bc8b5 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index c0df976bc73..7c2322258db 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 2a0b2729236..77668831e85 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 113dd0b5602..877b2e1d4b8 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 24f39d4199f..1aba8840de7 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 74fe763d2df..4ffc4b908fe 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index aea4e2f0f2c..dde1b9ca5eb 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index ae194c2eea9..e0f62053c7e 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index 71ae648000b..03b4a893e00 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 6cdcebf44a2..20230a36af9 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 4bbc356c396..7338047806e 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index efc49c9cadb..1124e161275 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 2c0562081d6..7412bccdaac 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 174021b93f2..be25cb26f28 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 0c58abd3a10..6464ee37c58 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 8d143f458a7..869832a38cb 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index da671f708d2..9d4c7888eac 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index efabddcb2b8..0ab3bd6d402 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index b0780a54b49..0e0e6132b17 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 7421f40ddc0..4c76ea2982e 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 2e4dddd915a..ddecb3e8de2 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index cd22222b73f..972637afab2 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.91.1 + 3.92.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,1111 +38,1117 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-dblm - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-wlms - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-addons-adk - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-multicloud - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-iot - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-psa - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-dif - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-batch - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-gdp - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-self - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 3.91.1 + 3.92.0 false com.oracle.oci.sdk oci-java-sdk-costad - 3.91.1 + 3.92.0 + false + + + com.oracle.oci.sdk + oci-java-sdk-datacc + 3.92.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 7a9baafaeba..a291910fd3d 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 6a40d3d0d77..222a4d2884c 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 2ce617f2c38..b3bc957e159 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 276f0497091..08bc36bf820 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 1187869630c..1ffb47e4cdc 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 19f537b265b..22cd1440190 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 12b309e1175..c66ccd0a2be 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index ee900bdd150..75345c7e53d 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 1d59e1e4fc6..f6e63ec703c 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index b1e306fa97f..d647195c23b 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.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 6822249d735..b48594e41d4 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.91.1 + 3.92.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.91.1 + 3.92.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.91.1 + 3.92.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 918b21c24c7..e8b31fe1298 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.91.1 + 3.92.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.91.1 + 3.92.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.91.1 + 3.92.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index a483d83b6f6..748ea239d12 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.91.1 + 3.92.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index 0b99855e248..9c1681c4eb6 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.91.1 + 3.92.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index c84fee1268a..6356f07dd03 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -87,12 +87,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.91.1 + 3.92.0 @@ -137,7 +137,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.91.1 + 3.92.0 test diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/internal/HeaderUtils.java b/bmc-common/src/main/java/com/oracle/bmc/http/internal/HeaderUtils.java index 83e0e7e6d74..47b86727ffd 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/internal/HeaderUtils.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/internal/HeaderUtils.java @@ -9,10 +9,68 @@ import java.lang.reflect.InvocationTargetException; import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; import java.util.Date; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; +import java.util.regex.Pattern; /** Utilities to deal with header values. */ public class HeaderUtils { + public static final String REDACTED_VALUE = "REDACTED"; + + /** Exact header names that are well-known credential carriers. */ + private static final Set SENSITIVE_HEADERS = + Collections.unmodifiableSet( + new HashSet<>( + Arrays.asList( + "authorization", + "proxy-authorization", + "opc-obo-token", + "x-api-key", + "cookie", + "set-cookie", + "security-context", + "password", + "passphrase"))); + + private static final String HEADER_DELIMITER = "-"; + private static final String HEADER_NAME_DELIMITER_REGEX = "[-_]+"; + + /** Pattern rules for wildcard-style header families and credential-like suffixes. */ + private static final List SENSITIVE_HEADER_PATTERNS = + Collections.unmodifiableList( + Arrays.asList( + Pattern.compile("^x-token(?:-|$).*"), + Pattern.compile("^x-authorization(?:-|$).*"), + Pattern.compile("^x-key-.*"), + credentialSuffixPattern("access-token"), + credentialSuffixPattern("refresh-token"), + credentialSuffixPattern("id-token"), + credentialSuffixPattern("security-token"), + credentialSuffixPattern("session-token"), + credentialSuffixPattern("delegation-token"), + credentialSuffixPattern("client-secret"), + credentialSuffixPattern("private-key"))); + + /** + * Matches exact credential names and delimited suffixes, for example "access-token" and + * "idcs-access-token", without matching unrelated names like "tokenization-status". + * + * @param normalizedCredentialName The normalized credential name. + * @return The credential suffix pattern. + */ + private static Pattern credentialSuffixPattern(String normalizedCredentialName) { + return Pattern.compile("(?:^|.*-)" + Pattern.quote(normalizedCredentialName) + "$"); + } + /** * See {@link HTTP/1.1 * documentation}. @@ -75,4 +133,81 @@ public static T toValue(String headerName, String value, Class clazz) { } throw new IllegalArgumentException("Unknown header type: " + clazz); } + + /** + * Checks whether the given header name should be treated as sensitive. + * + * @param headerName The header name. + * @return true if the header is sensitive, false otherwise. + */ + public static boolean isSensitiveHeader(String headerName) { + if (headerName == null) { + return false; + } + String normalizedHeaderName = normalizeHeaderName(headerName); + return isExactSensitiveHeader(normalizedHeaderName) + || matchesSensitiveHeaderPattern(normalizedHeaderName); + } + + /** + * Normalizes common generated-name variants consistently, for example client_secret to + * client-secret. + * + * @param headerName The header name. + * @return The normalized header name. + */ + private static String normalizeHeaderName(String headerName) { + return headerName + .toLowerCase(Locale.ROOT) + .replaceAll(HEADER_NAME_DELIMITER_REGEX, HEADER_DELIMITER); + } + + private static boolean isExactSensitiveHeader(String normalizedHeaderName) { + return SENSITIVE_HEADERS.contains(normalizedHeaderName); + } + + private static boolean matchesSensitiveHeaderPattern(String normalizedHeaderName) { + for (Pattern pattern : SENSITIVE_HEADER_PATTERNS) { + if (pattern.matcher(normalizedHeaderName).matches()) { + return true; + } + } + return false; + } + + /** + * Redacts header values when the header name is sensitive. + * + * @param headerName The header name. + * @param values The header values. + * @return The redacted values if the header is sensitive, otherwise the original values. + */ + public static List sanitizeHeaderValues(String headerName, List values) { + if (!isSensitiveHeader(headerName) || values == null) { + return values; + } + List redactedValues = new ArrayList<>(values.size()); + for (int i = 0; i < values.size(); i++) { + redactedValues.add(REDACTED_VALUE); + } + return redactedValues; + } + + /** + * Redacts sensitive header values in the given header map. + * + * @param headers The header map. + * @return A sanitized header map, or null when the input is null. + */ + public static Map> sanitizeHeaders(Map> headers) { + if (headers == null) { + return null; + } + Map> sanitizedHeaders = new LinkedHashMap<>(); + for (Entry> entry : headers.entrySet()) { + sanitizedHeaders.put( + entry.getKey(), sanitizeHeaderValues(entry.getKey(), entry.getValue())); + } + return sanitizedHeaders; + } } diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/internal/LogHeadersFilter.java b/bmc-common/src/main/java/com/oracle/bmc/http/internal/LogHeadersFilter.java index a00b263d348..037cf590c8f 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/internal/LogHeadersFilter.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/internal/LogHeadersFilter.java @@ -33,9 +33,9 @@ public void intercept(HttpRequest request) { LOG.debug("Sending '{}' request to '{}'", request.method(), request.uri()); Map> headers = request.headers(); for (Entry> entry : headers.entrySet()) { - List value = entry.getValue(); + List value = HeaderUtils.sanitizeHeaderValues(entry.getKey(), entry.getValue()); if (entry.getKey() != null && entry.getKey().equalsIgnoreCase("authorization")) { - value = maskValue(entry.getValue()); + value = maskValue(value); } LOG.debug("Sending header '{}' with value '{}'", entry.getKey(), value); } diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/signing/internal/RequestSignerImpl.java b/bmc-common/src/main/java/com/oracle/bmc/http/signing/internal/RequestSignerImpl.java index a984931aeb8..b8f9efbce5e 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/signing/internal/RequestSignerImpl.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/signing/internal/RequestSignerImpl.java @@ -6,6 +6,7 @@ import com.oracle.bmc.http.client.Serializer; import com.oracle.bmc.http.client.io.DuplicatableInputStream; +import com.oracle.bmc.http.internal.HeaderUtils; import com.oracle.bmc.http.signing.RequestSigner; import com.oracle.bmc.http.signing.RequestSignerException; import com.oracle.bmc.http.signing.SigningStrategy; @@ -290,7 +291,7 @@ static Map> ignoreCaseHeaders( private static String transformHeadersToJsonString(final Map> headers) { try { - return Serializer.getDefault().writeValueAsString(headers); + return Serializer.getDefault().writeValueAsString(HeaderUtils.sanitizeHeaders(headers)); } catch (IOException ex) { LOG.debug("Unable to serialize headers to JSON string", ex); return "UNABLE TO SERIALIZE"; diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/HeaderUtilsTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/HeaderUtilsTest.java new file mode 100644 index 00000000000..c26e87d0b56 --- /dev/null +++ b/bmc-common/src/test/java/com/oracle/bmc/http/internal/HeaderUtilsTest.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.http.internal; + +import org.junit.Test; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertSame; +import static org.junit.Assert.assertTrue; + +public class HeaderUtilsTest { + + @Test + public void isSensitiveHeader_shouldMatchExactHeadersAndPatterns() { + for (String headerName : + Arrays.asList( + "Authorization", + "Proxy-Authorization", + "opc-obo-token", + "X-Api-Key", + "cookie", + "set-cookie", + "security-context", + "password", + "passphrase", + "x-token", + "x-token-value", + "x_authorization", + "x-key-id", + "access_token", + "idcs-access-token", + "refresh-token", + "id_token", + "security-token", + "session_token", + "delegation-token", + "oauth-client-secret", + "private_key")) { + assertTrue( + headerName + " should be treated as sensitive", + HeaderUtils.isSensitiveHeader(headerName)); + } + } + + @Test + public void isSensitiveHeader_shouldNotMatchSafeNames() { + for (String headerName : + Arrays.asList( + "Content-Type", + "opc-request-id", + "opc-retry-token", + "tokenization-status", + "x-keyboard-layout", + "client-secret-version", + "private-key-format", + "x-authorized-by")) { + assertFalse( + headerName + " should not be treated as sensitive", + HeaderUtils.isSensitiveHeader(headerName)); + } + } + + @Test + public void isSensitiveHeader_shouldHandleNullAndEmptyNames() { + assertFalse(HeaderUtils.isSensitiveHeader(null)); + assertFalse(HeaderUtils.isSensitiveHeader("")); + } + + @Test + public void sanitizeHeaderValues_shouldRedactSensitiveValues() { + List redacted = + HeaderUtils.sanitizeHeaderValues("Authorization", Arrays.asList("a", "b")); + + assertEquals( + Arrays.asList(HeaderUtils.REDACTED_VALUE, HeaderUtils.REDACTED_VALUE), redacted); + } + + @Test + public void sanitizeHeaderValues_shouldReturnOriginalValuesForSafeOrNullInput() { + List values = Collections.singletonList("application/json"); + + assertSame(values, HeaderUtils.sanitizeHeaderValues("Content-Type", values)); + assertNull(HeaderUtils.sanitizeHeaderValues("Authorization", null)); + } + + @Test + public void sanitizeHeaders_shouldRedactSensitiveValuesAndPreserveOrder() { + Map> headers = new LinkedHashMap<>(); + headers.put("Authorization", Collections.singletonList("secret")); + headers.put("Content-Type", Collections.singletonList("application/json")); + headers.put("x-key-id", Arrays.asList("key-1", "key-2")); + + Map> sanitizedHeaders = HeaderUtils.sanitizeHeaders(headers); + + assertEquals( + Arrays.asList("Authorization", "Content-Type", "x-key-id"), + new ArrayList<>(sanitizedHeaders.keySet())); + assertEquals( + Collections.singletonList(HeaderUtils.REDACTED_VALUE), + sanitizedHeaders.get("Authorization")); + assertEquals( + Collections.singletonList("application/json"), + sanitizedHeaders.get("Content-Type")); + assertEquals( + Arrays.asList(HeaderUtils.REDACTED_VALUE, HeaderUtils.REDACTED_VALUE), + sanitizedHeaders.get("x-key-id")); + } + + @Test + public void sanitizeHeaders_shouldHandleNullInput() { + assertNull(HeaderUtils.sanitizeHeaders(null)); + } +} diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 0b2645b83aa..f67380690a8 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index c7a8e1a9df9..3de6079f108 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index a1986ba114b..d239292a63d 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index d0c87b1ef79..484cc61991b 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerFsGroupChangePolicyType.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerFsGroupChangePolicyType.java new file mode 100644 index 00000000000..da888b88960 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerFsGroupChangePolicyType.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** Type of a Linux fsGroupChangePolicy. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +public enum ContainerFsGroupChangePolicyType implements com.oracle.bmc.http.internal.BmcEnum { + Always("ALWAYS"), + OnRootMismatch("ON_ROOT_MISMATCH"), + + /** + * 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(ContainerFsGroupChangePolicyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ContainerFsGroupChangePolicyType v : ContainerFsGroupChangePolicyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ContainerFsGroupChangePolicyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ContainerFsGroupChangePolicyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ContainerFsGroupChangePolicyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstance.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstance.java index c8771e397c0..5b1fff89ad0 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstance.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstance.java @@ -30,6 +30,7 @@ public final class ContainerInstance "id", "displayName", "compartmentId", + "tenantId", "freeformTags", "definedTags", "systemTags", @@ -49,12 +50,14 @@ public final class ContainerInstance "dnsConfig", "gracefulShutdownTimeoutInSeconds", "imagePullSecrets", - "containerRestartPolicy" + "containerRestartPolicy", + "securityContext" }) public ContainerInstance( String id, String displayName, String compartmentId, + String tenantId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, @@ -74,11 +77,13 @@ public ContainerInstance( ContainerDnsConfig dnsConfig, Long gracefulShutdownTimeoutInSeconds, java.util.List imagePullSecrets, - ContainerRestartPolicy containerRestartPolicy) { + ContainerRestartPolicy containerRestartPolicy, + ContainerInstanceSecurityContext securityContext) { super(); this.id = id; this.displayName = displayName; this.compartmentId = compartmentId; + this.tenantId = tenantId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -99,6 +104,7 @@ public ContainerInstance( this.gracefulShutdownTimeoutInSeconds = gracefulShutdownTimeoutInSeconds; this.imagePullSecrets = imagePullSecrets; this.containerRestartPolicy = containerRestartPolicy; + this.securityContext = securityContext; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -152,6 +158,21 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } + /** TenantId id of the container instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenantId") + private String tenantId; + + /** + * TenantId id of the container instance. + * + * @param tenantId the value to set + * @return this builder + */ + public Builder tenantId(String tenantId) { + this.tenantId = tenantId; + this.__explicitlySet__.add("tenantId"); + 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"}} @@ -480,6 +501,15 @@ public Builder containerRestartPolicy(ContainerRestartPolicy containerRestartPol return this; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private ContainerInstanceSecurityContext securityContext; + + public Builder securityContext(ContainerInstanceSecurityContext securityContext) { + this.securityContext = securityContext; + this.__explicitlySet__.add("securityContext"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -489,6 +519,7 @@ public ContainerInstance build() { this.id, this.displayName, this.compartmentId, + this.tenantId, this.freeformTags, this.definedTags, this.systemTags, @@ -508,7 +539,8 @@ public ContainerInstance build() { this.dnsConfig, this.gracefulShutdownTimeoutInSeconds, this.imagePullSecrets, - this.containerRestartPolicy); + this.containerRestartPolicy, + this.securityContext); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -526,6 +558,9 @@ public Builder copy(ContainerInstance model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("tenantId")) { + this.tenantId(model.getTenantId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -586,6 +621,9 @@ public Builder copy(ContainerInstance model) { if (model.wasPropertyExplicitlySet("containerRestartPolicy")) { this.containerRestartPolicy(model.getContainerRestartPolicy()); } + if (model.wasPropertyExplicitlySet("securityContext")) { + this.securityContext(model.getSecurityContext()); + } return this; } } @@ -642,6 +680,19 @@ public String getCompartmentId() { return compartmentId; } + /** TenantId id of the container instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenantId") + private final String tenantId; + + /** + * TenantId id of the container instance. + * + * @return the value + */ + public String getTenantId() { + return tenantId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -1026,6 +1077,13 @@ public ContainerRestartPolicy getContainerRestartPolicy() { return containerRestartPolicy; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private final ContainerInstanceSecurityContext securityContext; + + public ContainerInstanceSecurityContext getSecurityContext() { + return securityContext; + } + @Override public String toString() { return this.toString(true); @@ -1044,6 +1102,7 @@ public String toString(boolean includeByteArrayContents) { 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(", tenantId=").append(String.valueOf(this.tenantId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1065,6 +1124,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.gracefulShutdownTimeoutInSeconds)); sb.append(", imagePullSecrets=").append(String.valueOf(this.imagePullSecrets)); sb.append(", containerRestartPolicy=").append(String.valueOf(this.containerRestartPolicy)); + sb.append(", securityContext=").append(String.valueOf(this.securityContext)); sb.append(")"); return sb.toString(); } @@ -1082,6 +1142,7 @@ public boolean equals(Object 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.tenantId, other.tenantId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1105,6 +1166,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.imagePullSecrets, other.imagePullSecrets) && java.util.Objects.equals( this.containerRestartPolicy, other.containerRestartPolicy) + && java.util.Objects.equals(this.securityContext, other.securityContext) && super.equals(other); } @@ -1117,6 +1179,7 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.tenantId == null ? 43 : this.tenantId.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()); @@ -1157,6 +1220,9 @@ public int hashCode() { + (this.containerRestartPolicy == null ? 43 : this.containerRestartPolicy.hashCode()); + result = + (result * PRIME) + + (this.securityContext == null ? 43 : this.securityContext.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSecurityContext.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSecurityContext.java new file mode 100644 index 00000000000..1b25976f7c5 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSecurityContext.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * Security context for all containers in a container instance.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "securityContextType", + defaultImpl = ContainerInstanceSecurityContext.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = LinuxContainerInstanceSecurityContext.class, + name = "LINUX") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ContainerInstanceSecurityContext + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ContainerInstanceSecurityContext() { + 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("ContainerInstanceSecurityContext("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ContainerInstanceSecurityContext)) { + return false; + } + + ContainerInstanceSecurityContext other = (ContainerInstanceSecurityContext) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** The type of security context */ + public enum SecurityContextType implements com.oracle.bmc.http.internal.BmcEnum { + Linux("LINUX"), + + /** + * 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(SecurityContextType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SecurityContextType v : SecurityContextType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SecurityContextType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SecurityContextType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SecurityContextType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSummary.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSummary.java index 6b64cc386d7..7dfc3074afa 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSummary.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSummary.java @@ -41,7 +41,8 @@ public final class ContainerInstanceSummary "containerCount", "gracefulShutdownTimeoutInSeconds", "volumeCount", - "containerRestartPolicy" + "containerRestartPolicy", + "securityContext" }) public ContainerInstanceSummary( String id, @@ -61,7 +62,8 @@ public ContainerInstanceSummary( Integer containerCount, Long gracefulShutdownTimeoutInSeconds, Integer volumeCount, - ContainerInstance.ContainerRestartPolicy containerRestartPolicy) { + ContainerInstance.ContainerRestartPolicy containerRestartPolicy, + ContainerInstanceSecurityContext securityContext) { super(); this.id = id; this.displayName = displayName; @@ -81,6 +83,7 @@ public ContainerInstanceSummary( this.gracefulShutdownTimeoutInSeconds = gracefulShutdownTimeoutInSeconds; this.volumeCount = volumeCount; this.containerRestartPolicy = containerRestartPolicy; + this.securityContext = securityContext; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -382,6 +385,15 @@ public Builder containerRestartPolicy( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private ContainerInstanceSecurityContext securityContext; + + public Builder securityContext(ContainerInstanceSecurityContext securityContext) { + this.securityContext = securityContext; + this.__explicitlySet__.add("securityContext"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -405,7 +417,8 @@ public ContainerInstanceSummary build() { this.containerCount, this.gracefulShutdownTimeoutInSeconds, this.volumeCount, - this.containerRestartPolicy); + this.containerRestartPolicy, + this.securityContext); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -468,6 +481,9 @@ public Builder copy(ContainerInstanceSummary model) { if (model.wasPropertyExplicitlySet("containerRestartPolicy")) { this.containerRestartPolicy(model.getContainerRestartPolicy()); } + if (model.wasPropertyExplicitlySet("securityContext")) { + this.securityContext(model.getSecurityContext()); + } return this; } } @@ -739,6 +755,13 @@ public ContainerInstance.ContainerRestartPolicy getContainerRestartPolicy() { return containerRestartPolicy; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private final ContainerInstanceSecurityContext securityContext; + + public ContainerInstanceSecurityContext getSecurityContext() { + return securityContext; + } + @Override public String toString() { return this.toString(true); @@ -773,6 +796,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.gracefulShutdownTimeoutInSeconds)); sb.append(", volumeCount=").append(String.valueOf(this.volumeCount)); sb.append(", containerRestartPolicy=").append(String.valueOf(this.containerRestartPolicy)); + sb.append(", securityContext=").append(String.valueOf(this.securityContext)); sb.append(")"); return sb.toString(); } @@ -808,6 +832,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.volumeCount, other.volumeCount) && java.util.Objects.equals( this.containerRestartPolicy, other.containerRestartPolicy) + && java.util.Objects.equals(this.securityContext, other.securityContext) && super.equals(other); } @@ -853,6 +878,9 @@ public int hashCode() { + (this.containerRestartPolicy == null ? 43 : this.containerRestartPolicy.hashCode()); + result = + (result * PRIME) + + (this.securityContext == null ? 43 : this.securityContext.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerOciFssVolume.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerOciFssVolume.java new file mode 100644 index 00000000000..6a901027b78 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerOciFssVolume.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) File System that can be mounted to Containers within a + * Container Instance. Check + * https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/FileSystem for more 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ContainerOciFssVolume.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "volumeType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ContainerOciFssVolume extends ContainerVolume { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountTarget") + private OciFssMountTarget mountTarget; + + public Builder mountTarget(OciFssMountTarget mountTarget) { + this.mountTarget = mountTarget; + this.__explicitlySet__.add("mountTarget"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("export") + private OciFssExport export; + + public Builder export(OciFssExport export) { + this.export = export; + this.__explicitlySet__.add("export"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("security") + private OciFssSecurity security; + + public Builder security(OciFssSecurity security) { + this.security = security; + this.__explicitlySet__.add("security"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountCommand") + private OciFssMountCommand mountCommand; + + public Builder mountCommand(OciFssMountCommand mountCommand) { + this.mountCommand = mountCommand; + this.__explicitlySet__.add("mountCommand"); + return this; + } + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one + * subnets. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one + * subnets. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ContainerOciFssVolume build() { + ContainerOciFssVolume model = + new ContainerOciFssVolume( + this.name, + this.mountTarget, + this.export, + this.security, + this.mountCommand, + this.subnetId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ContainerOciFssVolume model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("mountTarget")) { + this.mountTarget(model.getMountTarget()); + } + if (model.wasPropertyExplicitlySet("export")) { + this.export(model.getExport()); + } + if (model.wasPropertyExplicitlySet("security")) { + this.security(model.getSecurity()); + } + if (model.wasPropertyExplicitlySet("mountCommand")) { + this.mountCommand(model.getMountCommand()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ContainerOciFssVolume( + String name, + OciFssMountTarget mountTarget, + OciFssExport export, + OciFssSecurity security, + OciFssMountCommand mountCommand, + String subnetId) { + super(name); + this.mountTarget = mountTarget; + this.export = export; + this.security = security; + this.mountCommand = mountCommand; + this.subnetId = subnetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountTarget") + private final OciFssMountTarget mountTarget; + + public OciFssMountTarget getMountTarget() { + return mountTarget; + } + + @com.fasterxml.jackson.annotation.JsonProperty("export") + private final OciFssExport export; + + public OciFssExport getExport() { + return export; + } + + @com.fasterxml.jackson.annotation.JsonProperty("security") + private final OciFssSecurity security; + + public OciFssSecurity getSecurity() { + return security; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountCommand") + private final OciFssMountCommand mountCommand; + + public OciFssMountCommand getMountCommand() { + return mountCommand; + } + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ContainerOciFssVolume("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", mountTarget=").append(String.valueOf(this.mountTarget)); + sb.append(", export=").append(String.valueOf(this.export)); + sb.append(", security=").append(String.valueOf(this.security)); + sb.append(", mountCommand=").append(String.valueOf(this.mountCommand)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ContainerOciFssVolume)) { + return false; + } + + ContainerOciFssVolume other = (ContainerOciFssVolume) o; + return java.util.Objects.equals(this.mountTarget, other.mountTarget) + && java.util.Objects.equals(this.export, other.export) + && java.util.Objects.equals(this.security, other.security) + && java.util.Objects.equals(this.mountCommand, other.mountCommand) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.mountTarget == null ? 43 : this.mountTarget.hashCode()); + result = (result * PRIME) + (this.export == null ? 43 : this.export.hashCode()); + result = (result * PRIME) + (this.security == null ? 43 : this.security.hashCode()); + result = (result * PRIME) + (this.mountCommand == null ? 43 : this.mountCommand.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolume.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolume.java index cea4638542c..285a49ca2ad 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolume.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolume.java @@ -28,7 +28,10 @@ name = "EMPTYDIR"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ContainerConfigFileVolume.class, - name = "CONFIGFILE") + name = "CONFIGFILE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ContainerOciFssVolume.class, + name = "OCI_FSS_FILE_SYSTEM") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolumeType.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolumeType.java index 383730cfe18..6c4eca500ae 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolumeType.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolumeType.java @@ -9,6 +9,7 @@ public enum ContainerVolumeType implements com.oracle.bmc.http.internal.BmcEnum { Emptydir("EMPTYDIR"), Configfile("CONFIGFILE"), + OciFssFileSystem("OCI_FSS_FILE_SYSTEM"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceDetails.java index 1d52fec89e9..4063a031a78 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceDetails.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceDetails.java @@ -38,7 +38,8 @@ public final class CreateContainerInstanceDetails "imagePullSecrets", "containerRestartPolicy", "freeformTags", - "definedTags" + "definedTags", + "securityContext" }) public CreateContainerInstanceDetails( String displayName, @@ -55,7 +56,8 @@ public CreateContainerInstanceDetails( java.util.List imagePullSecrets, ContainerInstance.ContainerRestartPolicy containerRestartPolicy, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + CreateContainerInstanceSecurityContextDetails securityContext) { super(); this.displayName = displayName; this.compartmentId = compartmentId; @@ -72,6 +74,7 @@ public CreateContainerInstanceDetails( this.containerRestartPolicy = containerRestartPolicy; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityContext = securityContext; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -323,6 +326,16 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private CreateContainerInstanceSecurityContextDetails securityContext; + + public Builder securityContext( + CreateContainerInstanceSecurityContextDetails securityContext) { + this.securityContext = securityContext; + this.__explicitlySet__.add("securityContext"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -343,7 +356,8 @@ public CreateContainerInstanceDetails build() { this.imagePullSecrets, this.containerRestartPolicy, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityContext); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -397,6 +411,9 @@ public Builder copy(CreateContainerInstanceDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityContext")) { + this.securityContext(model.getSecurityContext()); + } return this; } } @@ -623,6 +640,13 @@ public java.util.Map> getDefinedTags() { return definedTags; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private final CreateContainerInstanceSecurityContextDetails securityContext; + + public CreateContainerInstanceSecurityContextDetails getSecurityContext() { + return securityContext; + } + @Override public String toString() { return this.toString(true); @@ -654,6 +678,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", containerRestartPolicy=").append(String.valueOf(this.containerRestartPolicy)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityContext=").append(String.valueOf(this.securityContext)); sb.append(")"); return sb.toString(); } @@ -686,6 +711,7 @@ public boolean equals(Object o) { this.containerRestartPolicy, other.containerRestartPolicy) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityContext, other.securityContext) && super.equals(other); } @@ -724,6 +750,9 @@ public int hashCode() { : this.containerRestartPolicy.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.securityContext == null ? 43 : this.securityContext.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceSecurityContextDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceSecurityContextDetails.java new file mode 100644 index 00000000000..081bd846069 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceSecurityContextDetails.java @@ -0,0 +1,79 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * Security context for all containers in a container instance.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "securityContextType", + defaultImpl = CreateContainerInstanceSecurityContextDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateLinuxContainerInstanceSecurityContextDetails.class, + name = "LINUX") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateContainerInstanceSecurityContextDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateContainerInstanceSecurityContextDetails() { + 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("CreateContainerInstanceSecurityContextDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateContainerInstanceSecurityContextDetails)) { + return false; + } + + CreateContainerInstanceSecurityContextDetails other = + (CreateContainerInstanceSecurityContextDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerOciFssVolumeDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerOciFssVolumeDetails.java new file mode 100644 index 00000000000..88102fa5c94 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerOciFssVolumeDetails.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) File System that can be mounted to Containers within a + * Container Instance. Check + * https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/FileSystem for more 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateContainerOciFssVolumeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "volumeType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateContainerOciFssVolumeDetails extends CreateContainerVolumeDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountTarget") + private CreateOciFssMountTargetDetails mountTarget; + + public Builder mountTarget(CreateOciFssMountTargetDetails mountTarget) { + this.mountTarget = mountTarget; + this.__explicitlySet__.add("mountTarget"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("export") + private CreateOciFssExportDetails export; + + public Builder export(CreateOciFssExportDetails export) { + this.export = export; + this.__explicitlySet__.add("export"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("security") + private CreateOciFssSecurityDetails security; + + public Builder security(CreateOciFssSecurityDetails security) { + this.security = security; + this.__explicitlySet__.add("security"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountCommand") + private CreateOciFssMountCommandDetails mountCommand; + + public Builder mountCommand(CreateOciFssMountCommandDetails mountCommand) { + this.mountCommand = mountCommand; + this.__explicitlySet__.add("mountCommand"); + return this; + } + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one + * subnets. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one + * subnets. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateContainerOciFssVolumeDetails build() { + CreateContainerOciFssVolumeDetails model = + new CreateContainerOciFssVolumeDetails( + this.name, + this.mountTarget, + this.export, + this.security, + this.mountCommand, + this.subnetId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateContainerOciFssVolumeDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("mountTarget")) { + this.mountTarget(model.getMountTarget()); + } + if (model.wasPropertyExplicitlySet("export")) { + this.export(model.getExport()); + } + if (model.wasPropertyExplicitlySet("security")) { + this.security(model.getSecurity()); + } + if (model.wasPropertyExplicitlySet("mountCommand")) { + this.mountCommand(model.getMountCommand()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateContainerOciFssVolumeDetails( + String name, + CreateOciFssMountTargetDetails mountTarget, + CreateOciFssExportDetails export, + CreateOciFssSecurityDetails security, + CreateOciFssMountCommandDetails mountCommand, + String subnetId) { + super(name); + this.mountTarget = mountTarget; + this.export = export; + this.security = security; + this.mountCommand = mountCommand; + this.subnetId = subnetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountTarget") + private final CreateOciFssMountTargetDetails mountTarget; + + public CreateOciFssMountTargetDetails getMountTarget() { + return mountTarget; + } + + @com.fasterxml.jackson.annotation.JsonProperty("export") + private final CreateOciFssExportDetails export; + + public CreateOciFssExportDetails getExport() { + return export; + } + + @com.fasterxml.jackson.annotation.JsonProperty("security") + private final CreateOciFssSecurityDetails security; + + public CreateOciFssSecurityDetails getSecurity() { + return security; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountCommand") + private final CreateOciFssMountCommandDetails mountCommand; + + public CreateOciFssMountCommandDetails getMountCommand() { + return mountCommand; + } + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateContainerOciFssVolumeDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", mountTarget=").append(String.valueOf(this.mountTarget)); + sb.append(", export=").append(String.valueOf(this.export)); + sb.append(", security=").append(String.valueOf(this.security)); + sb.append(", mountCommand=").append(String.valueOf(this.mountCommand)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateContainerOciFssVolumeDetails)) { + return false; + } + + CreateContainerOciFssVolumeDetails other = (CreateContainerOciFssVolumeDetails) o; + return java.util.Objects.equals(this.mountTarget, other.mountTarget) + && java.util.Objects.equals(this.export, other.export) + && java.util.Objects.equals(this.security, other.security) + && java.util.Objects.equals(this.mountCommand, other.mountCommand) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.mountTarget == null ? 43 : this.mountTarget.hashCode()); + result = (result * PRIME) + (this.export == null ? 43 : this.export.hashCode()); + result = (result * PRIME) + (this.security == null ? 43 : this.security.hashCode()); + result = (result * PRIME) + (this.mountCommand == null ? 43 : this.mountCommand.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerVolumeDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerVolumeDetails.java index 22169b4c96c..6376974e10d 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerVolumeDetails.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerVolumeDetails.java @@ -23,6 +23,9 @@ property = "volumeType", defaultImpl = CreateContainerVolumeDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateContainerOciFssVolumeDetails.class, + name = "OCI_FSS_FILE_SYSTEM"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateContainerConfigFileVolumeDetails.class, name = "CONFIGFILE"), diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateLinuxContainerInstanceSecurityContextDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateLinuxContainerInstanceSecurityContextDetails.java new file mode 100644 index 00000000000..31ca3b33925 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateLinuxContainerInstanceSecurityContextDetails.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * Security context for all containers in a Linux container instance.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateLinuxContainerInstanceSecurityContextDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "securityContextType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateLinuxContainerInstanceSecurityContextDetails + extends CreateContainerInstanceSecurityContextDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A special supplemental group that applies to all containers in the container instance. + * Some volume types allow the container instance to change ownership of the volume. The + * owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by + * the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container + * instance will not modify the ownership and permissions of volumes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroup") + private Integer fsGroup; + + /** + * A special supplemental group that applies to all containers in the container instance. + * Some volume types allow the container instance to change ownership of the volume. The + * owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by + * the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container + * instance will not modify the ownership and permissions of volumes. + * + * @param fsGroup the value to set + * @return this builder + */ + public Builder fsGroup(Integer fsGroup) { + this.fsGroup = fsGroup; + this.__explicitlySet__.add("fsGroup"); + return this; + } + /** + * Defines behavior of changing ownership and permission of the volume before being exposed + * inside the containers. This only applies to volumes which support fsGroup ownership and + * permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes + * permissions and ownership if the permission and ownership of the root directory does not + * match the expected permissions and ownership of the volume. This can improve container + * instance start times. ALWAYS changes permission and ownership of the volume when it is + * mounted. If unset, ALWAYS is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroupChangePolicy") + private ContainerFsGroupChangePolicyType fsGroupChangePolicy; + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed + * inside the containers. This only applies to volumes which support fsGroup ownership and + * permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes + * permissions and ownership if the permission and ownership of the root directory does not + * match the expected permissions and ownership of the volume. This can improve container + * instance start times. ALWAYS changes permission and ownership of the volume when it is + * mounted. If unset, ALWAYS is used. + * + * @param fsGroupChangePolicy the value to set + * @return this builder + */ + public Builder fsGroupChangePolicy(ContainerFsGroupChangePolicyType fsGroupChangePolicy) { + this.fsGroupChangePolicy = fsGroupChangePolicy; + this.__explicitlySet__.add("fsGroupChangePolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateLinuxContainerInstanceSecurityContextDetails build() { + CreateLinuxContainerInstanceSecurityContextDetails model = + new CreateLinuxContainerInstanceSecurityContextDetails( + this.fsGroup, this.fsGroupChangePolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateLinuxContainerInstanceSecurityContextDetails model) { + if (model.wasPropertyExplicitlySet("fsGroup")) { + this.fsGroup(model.getFsGroup()); + } + if (model.wasPropertyExplicitlySet("fsGroupChangePolicy")) { + this.fsGroupChangePolicy(model.getFsGroupChangePolicy()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateLinuxContainerInstanceSecurityContextDetails( + Integer fsGroup, ContainerFsGroupChangePolicyType fsGroupChangePolicy) { + super(); + this.fsGroup = fsGroup; + this.fsGroupChangePolicy = fsGroupChangePolicy; + } + + /** + * A special supplemental group that applies to all containers in the container instance. Some + * volume types allow the container instance to change ownership of the volume. The owning GID + * will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and + * the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify + * the ownership and permissions of volumes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroup") + private final Integer fsGroup; + + /** + * A special supplemental group that applies to all containers in the container instance. Some + * volume types allow the container instance to change ownership of the volume. The owning GID + * will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and + * the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify + * the ownership and permissions of volumes. + * + * @return the value + */ + public Integer getFsGroup() { + return fsGroup; + } + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed + * inside the containers. This only applies to volumes which support fsGroup ownership and + * permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes + * permissions and ownership if the permission and ownership of the root directory does not + * match the expected permissions and ownership of the volume. This can improve container + * instance start times. ALWAYS changes permission and ownership of the volume when it is + * mounted. If unset, ALWAYS is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroupChangePolicy") + private final ContainerFsGroupChangePolicyType fsGroupChangePolicy; + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed + * inside the containers. This only applies to volumes which support fsGroup ownership and + * permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes + * permissions and ownership if the permission and ownership of the root directory does not + * match the expected permissions and ownership of the volume. This can improve container + * instance start times. ALWAYS changes permission and ownership of the volume when it is + * mounted. If unset, ALWAYS is used. + * + * @return the value + */ + public ContainerFsGroupChangePolicyType getFsGroupChangePolicy() { + return fsGroupChangePolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateLinuxContainerInstanceSecurityContextDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", fsGroup=").append(String.valueOf(this.fsGroup)); + sb.append(", fsGroupChangePolicy=").append(String.valueOf(this.fsGroupChangePolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateLinuxContainerInstanceSecurityContextDetails)) { + return false; + } + + CreateLinuxContainerInstanceSecurityContextDetails other = + (CreateLinuxContainerInstanceSecurityContextDetails) o; + return java.util.Objects.equals(this.fsGroup, other.fsGroup) + && java.util.Objects.equals(this.fsGroupChangePolicy, other.fsGroupChangePolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fsGroup == null ? 43 : this.fsGroup.hashCode()); + result = + (result * PRIME) + + (this.fsGroupChangePolicy == null + ? 43 + : this.fsGroupChangePolicy.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportDetails.java new file mode 100644 index 00000000000..f53391609d9 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportDetails.java @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) Export. Check + * https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/Export/ for more 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssExportType", + defaultImpl = CreateOciFssExportDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOciFssExportIdDetails.class, + name = "OCID") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateOciFssExportDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateOciFssExportDetails() { + 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("CreateOciFssExportDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssExportDetails)) { + return false; + } + + CreateOciFssExportDetails other = (CreateOciFssExportDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Determines the mode for supplying the OCI File Storage Service (FSS) Export details. The + * value must be an OCID unless your tenancy is allowed to use PATH as a value. + */ + public enum OciFssExportType implements com.oracle.bmc.http.internal.BmcEnum { + Ocid("OCID"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OciFssExportType v : OciFssExportType.values()) { + map.put(v.getValue(), v); + } + } + + OciFssExportType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OciFssExportType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid OciFssExportType: " + key); + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportIdDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportIdDetails.java new file mode 100644 index 00000000000..2b5b78fa78f --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportIdDetails.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * The OCID of the OCI File Storage Service (FSS) Export. The user must have read permission for + * export-sets.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciFssExportIdDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssExportType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOciFssExportIdDetails extends CreateOciFssExportDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the OCI File Storage Service (FSS) Export. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Export. + * + * @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 CreateOciFssExportIdDetails build() { + CreateOciFssExportIdDetails model = new CreateOciFssExportIdDetails(this.id); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciFssExportIdDetails model) { + 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); + } + + @Deprecated + public CreateOciFssExportIdDetails(String id) { + super(); + this.id = id; + } + + /** The OCID of the OCI File Storage Service (FSS) Export. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Export. + * + * @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("CreateOciFssExportIdDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + 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 CreateOciFssExportIdDetails)) { + return false; + } + + CreateOciFssExportIdDetails other = (CreateOciFssExportIdDetails) o; + return java.util.Objects.equals(this.id, other.id) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountCommandDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountCommandDetails.java new file mode 100644 index 00000000000..2ac4c97b151 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountCommandDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * Specifications for the mount command to mount the OCI File Storage Service (FSS) File System to + * Containers.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciFssMountCommandDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOciFssMountCommandDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"mountOptions"}) + public CreateOciFssMountCommandDetails( + java.util.List mountOptions) { + super(); + this.mountOptions = mountOptions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of mount options to be used in the mount command. The order of this array will be + * maintained while preparing the mount command. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mountOptions") + private java.util.List mountOptions; + + /** + * List of mount options to be used in the mount command. The order of this array will be + * maintained while preparing the mount command. + * + * @param mountOptions the value to set + * @return this builder + */ + public Builder mountOptions(java.util.List mountOptions) { + this.mountOptions = mountOptions; + this.__explicitlySet__.add("mountOptions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOciFssMountCommandDetails build() { + CreateOciFssMountCommandDetails model = + new CreateOciFssMountCommandDetails(this.mountOptions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciFssMountCommandDetails model) { + if (model.wasPropertyExplicitlySet("mountOptions")) { + this.mountOptions(model.getMountOptions()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of mount options to be used in the mount command. The order of this array will be + * maintained while preparing the mount command. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mountOptions") + private final java.util.List mountOptions; + + /** + * List of mount options to be used in the mount command. The order of this array will be + * maintained while preparing the mount command. + * + * @return the value + */ + public java.util.List getMountOptions() { + return mountOptions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssMountCommandDetails("); + sb.append("super=").append(super.toString()); + sb.append("mountOptions=").append(String.valueOf(this.mountOptions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssMountCommandDetails)) { + return false; + } + + CreateOciFssMountCommandDetails other = (CreateOciFssMountCommandDetails) o; + return java.util.Objects.equals(this.mountOptions, other.mountOptions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mountOptions == null ? 43 : this.mountOptions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountOptionDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountOptionDetails.java new file mode 100644 index 00000000000..3aa8c5c1567 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountOptionDetails.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * A mount option to be used in the mount command while mounting the OCI File Storage Service (FSS) + * File System to Containers. The mount option will look like option=value in the mount command. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciFssMountOptionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOciFssMountOptionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"option", "value"}) + public CreateOciFssMountOptionDetails(String option, String value) { + super(); + this.option = option; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs + * (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + */ + @com.fasterxml.jackson.annotation.JsonProperty("option") + private String option; + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs + * (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + * + * @param option the value to set + * @return this builder + */ + public Builder option(String option) { + this.option = option; + this.__explicitlySet__.add("option"); + return this; + } + /** The value of the mount option. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * The value of the mount option. + * + * @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 CreateOciFssMountOptionDetails build() { + CreateOciFssMountOptionDetails model = + new CreateOciFssMountOptionDetails(this.option, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciFssMountOptionDetails model) { + if (model.wasPropertyExplicitlySet("option")) { + this.option(model.getOption()); + } + 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); + } + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs + * (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + */ + @com.fasterxml.jackson.annotation.JsonProperty("option") + private final String option; + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs + * (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + * + * @return the value + */ + public String getOption() { + return option; + } + + /** The value of the mount option. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The value of the mount option. + * + * @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("CreateOciFssMountOptionDetails("); + sb.append("super=").append(super.toString()); + sb.append("option=").append(String.valueOf(this.option)); + 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 CreateOciFssMountOptionDetails)) { + return false; + } + + CreateOciFssMountOptionDetails other = (CreateOciFssMountOptionDetails) o; + return java.util.Objects.equals(this.option, other.option) + && 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.option == null ? 43 : this.option.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetDetails.java new file mode 100644 index 00000000000..6ff09050d4d --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetDetails.java @@ -0,0 +1,116 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) Mount Target. Check + * https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/MountTarget for more 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssMountTargetType", + defaultImpl = CreateOciFssMountTargetDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOciFssMountTargetIdDetails.class, + name = "OCID") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateOciFssMountTargetDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateOciFssMountTargetDetails() { + 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("CreateOciFssMountTargetDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssMountTargetDetails)) { + return false; + } + + CreateOciFssMountTargetDetails other = (CreateOciFssMountTargetDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Determines the mode for supplying the OCI File Storage Service (FSS) Mount target details. + * The value must be an OCID unless your tenancy is allowed to use HOST as a value. + */ + public enum OciFssMountTargetType implements com.oracle.bmc.http.internal.BmcEnum { + Ocid("OCID"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OciFssMountTargetType v : OciFssMountTargetType.values()) { + map.put(v.getValue(), v); + } + } + + OciFssMountTargetType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OciFssMountTargetType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid OciFssMountTargetType: " + key); + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetIdDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetIdDetails.java new file mode 100644 index 00000000000..21cba86c140 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetIdDetails.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * The OCID of the OCI File Storage Service (FSS) Mount Target. The user must have read permission + * for mount-targets.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciFssMountTargetIdDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssMountTargetType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOciFssMountTargetIdDetails extends CreateOciFssMountTargetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the OCI File Storage Service (FSS) Mount Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + * + * @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 CreateOciFssMountTargetIdDetails build() { + CreateOciFssMountTargetIdDetails model = new CreateOciFssMountTargetIdDetails(this.id); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciFssMountTargetIdDetails model) { + 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); + } + + @Deprecated + public CreateOciFssMountTargetIdDetails(String id) { + super(); + this.id = id; + } + + /** The OCID of the OCI File Storage Service (FSS) Mount Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + * + * @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("CreateOciFssMountTargetIdDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + 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 CreateOciFssMountTargetIdDetails)) { + return false; + } + + CreateOciFssMountTargetIdDetails other = (CreateOciFssMountTargetIdDetails) o; + return java.util.Objects.equals(this.id, other.id) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSecurityDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSecurityDetails.java new file mode 100644 index 00000000000..1bd7efb1208 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSecurityDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * Security options for OCI FSS File System.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "auth", + defaultImpl = CreateOciFssSecurityDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOciFssSysSecurityDetails.class, + name = "SYS") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateOciFssSecurityDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEncryptedInTransit"}) + protected CreateOciFssSecurityDetails(Boolean isEncryptedInTransit) { + super(); + this.isEncryptedInTransit = isEncryptedInTransit; + } + + /** + * Determines whether in-transit encryption needs to be enables. Check + * https://docs.oracle.com/en-us/iaas/Content/File/Tasks/intransitencryption.htm#Using_Intransit_Encryption + * for more details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEncryptedInTransit") + private final Boolean isEncryptedInTransit; + + /** + * Determines whether in-transit encryption needs to be enables. Check + * https://docs.oracle.com/en-us/iaas/Content/File/Tasks/intransitencryption.htm#Using_Intransit_Encryption + * for more details. + * + * @return the value + */ + public Boolean getIsEncryptedInTransit() { + return isEncryptedInTransit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssSecurityDetails("); + sb.append("super=").append(super.toString()); + sb.append("isEncryptedInTransit=").append(String.valueOf(this.isEncryptedInTransit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssSecurityDetails)) { + return false; + } + + CreateOciFssSecurityDetails other = (CreateOciFssSecurityDetails) o; + return java.util.Objects.equals(this.isEncryptedInTransit, other.isEncryptedInTransit) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isEncryptedInTransit == null + ? 43 + : this.isEncryptedInTransit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** NFS authentication type to be used. Currently, only auth type SYS is supported. */ + public enum Auth implements com.oracle.bmc.http.internal.BmcEnum { + Sys("SYS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Auth v : Auth.values()) { + map.put(v.getValue(), v); + } + } + + Auth(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Auth create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Auth: " + key); + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSysSecurityDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSysSecurityDetails.java new file mode 100644 index 00000000000..aa1238b36c7 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSysSecurityDetails.java @@ -0,0 +1,112 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * SYS security options for OCI FSS File System.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciFssSysSecurityDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "auth") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOciFssSysSecurityDetails extends CreateOciFssSecurityDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("isEncryptedInTransit") + private Boolean isEncryptedInTransit; + + public Builder isEncryptedInTransit(Boolean isEncryptedInTransit) { + this.isEncryptedInTransit = isEncryptedInTransit; + this.__explicitlySet__.add("isEncryptedInTransit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOciFssSysSecurityDetails build() { + CreateOciFssSysSecurityDetails model = + new CreateOciFssSysSecurityDetails(this.isEncryptedInTransit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciFssSysSecurityDetails model) { + if (model.wasPropertyExplicitlySet("isEncryptedInTransit")) { + this.isEncryptedInTransit(model.getIsEncryptedInTransit()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOciFssSysSecurityDetails(Boolean isEncryptedInTransit) { + super(isEncryptedInTransit); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssSysSecurityDetails("); + 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 CreateOciFssSysSecurityDetails)) { + return false; + } + + CreateOciFssSysSecurityDetails other = (CreateOciFssSysSecurityDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/LinuxContainerInstanceSecurityContext.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/LinuxContainerInstanceSecurityContext.java new file mode 100644 index 00000000000..62b6b86352a --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/LinuxContainerInstanceSecurityContext.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * Security context for all containers in a container instance.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LinuxContainerInstanceSecurityContext.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "securityContextType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LinuxContainerInstanceSecurityContext extends ContainerInstanceSecurityContext { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A special supplemental group that applies to all containers in the container instance. + * Some volume types allow the container instance to change ownership of the volume. The + * owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by + * the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container + * instance will not modify the ownership and permissions of volumes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroup") + private Integer fsGroup; + + /** + * A special supplemental group that applies to all containers in the container instance. + * Some volume types allow the container instance to change ownership of the volume. The + * owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by + * the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container + * instance will not modify the ownership and permissions of volumes. + * + * @param fsGroup the value to set + * @return this builder + */ + public Builder fsGroup(Integer fsGroup) { + this.fsGroup = fsGroup; + this.__explicitlySet__.add("fsGroup"); + return this; + } + /** + * Defines behavior of changing ownership and permission of the volume before being exposed + * inside the containers. This only applies to volumes which support fsGroup ownership and + * permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes + * permissions and ownership if the permission and ownership of the root directory does not + * match the expected permissions and ownership of the volume. This can improve container + * instance start times. ALWAYS changes permission and ownership of the volume when it is + * mounted. If unset, ALWAYS is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroupChangePolicy") + private ContainerFsGroupChangePolicyType fsGroupChangePolicy; + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed + * inside the containers. This only applies to volumes which support fsGroup ownership and + * permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes + * permissions and ownership if the permission and ownership of the root directory does not + * match the expected permissions and ownership of the volume. This can improve container + * instance start times. ALWAYS changes permission and ownership of the volume when it is + * mounted. If unset, ALWAYS is used. + * + * @param fsGroupChangePolicy the value to set + * @return this builder + */ + public Builder fsGroupChangePolicy(ContainerFsGroupChangePolicyType fsGroupChangePolicy) { + this.fsGroupChangePolicy = fsGroupChangePolicy; + this.__explicitlySet__.add("fsGroupChangePolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LinuxContainerInstanceSecurityContext build() { + LinuxContainerInstanceSecurityContext model = + new LinuxContainerInstanceSecurityContext( + this.fsGroup, this.fsGroupChangePolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LinuxContainerInstanceSecurityContext model) { + if (model.wasPropertyExplicitlySet("fsGroup")) { + this.fsGroup(model.getFsGroup()); + } + if (model.wasPropertyExplicitlySet("fsGroupChangePolicy")) { + this.fsGroupChangePolicy(model.getFsGroupChangePolicy()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public LinuxContainerInstanceSecurityContext( + Integer fsGroup, ContainerFsGroupChangePolicyType fsGroupChangePolicy) { + super(); + this.fsGroup = fsGroup; + this.fsGroupChangePolicy = fsGroupChangePolicy; + } + + /** + * A special supplemental group that applies to all containers in the container instance. Some + * volume types allow the container instance to change ownership of the volume. The owning GID + * will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and + * the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify + * the ownership and permissions of volumes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroup") + private final Integer fsGroup; + + /** + * A special supplemental group that applies to all containers in the container instance. Some + * volume types allow the container instance to change ownership of the volume. The owning GID + * will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and + * the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify + * the ownership and permissions of volumes. + * + * @return the value + */ + public Integer getFsGroup() { + return fsGroup; + } + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed + * inside the containers. This only applies to volumes which support fsGroup ownership and + * permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes + * permissions and ownership if the permission and ownership of the root directory does not + * match the expected permissions and ownership of the volume. This can improve container + * instance start times. ALWAYS changes permission and ownership of the volume when it is + * mounted. If unset, ALWAYS is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroupChangePolicy") + private final ContainerFsGroupChangePolicyType fsGroupChangePolicy; + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed + * inside the containers. This only applies to volumes which support fsGroup ownership and + * permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes + * permissions and ownership if the permission and ownership of the root directory does not + * match the expected permissions and ownership of the volume. This can improve container + * instance start times. ALWAYS changes permission and ownership of the volume when it is + * mounted. If unset, ALWAYS is used. + * + * @return the value + */ + public ContainerFsGroupChangePolicyType getFsGroupChangePolicy() { + return fsGroupChangePolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LinuxContainerInstanceSecurityContext("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", fsGroup=").append(String.valueOf(this.fsGroup)); + sb.append(", fsGroupChangePolicy=").append(String.valueOf(this.fsGroupChangePolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LinuxContainerInstanceSecurityContext)) { + return false; + } + + LinuxContainerInstanceSecurityContext other = (LinuxContainerInstanceSecurityContext) o; + return java.util.Objects.equals(this.fsGroup, other.fsGroup) + && java.util.Objects.equals(this.fsGroupChangePolicy, other.fsGroupChangePolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fsGroup == null ? 43 : this.fsGroup.hashCode()); + result = + (result * PRIME) + + (this.fsGroupChangePolicy == null + ? 43 + : this.fsGroupChangePolicy.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExport.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExport.java new file mode 100644 index 00000000000..006adca88cd --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExport.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) Export. Check + * https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/Export/ for more 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssExportType", + defaultImpl = OciFssExport.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = OciFssExportId.class, name = "OCID") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class OciFssExport extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected OciFssExport() { + 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("OciFssExport("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssExport)) { + return false; + } + + OciFssExport other = (OciFssExport) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Determines the mode for supplying the OCI File Storage Service (FSS) Export details. The + * value must be an OCID unless your tenancy is allowed to use PATH as a value. + */ + public enum OciFssExportType implements com.oracle.bmc.http.internal.BmcEnum { + Ocid("OCID"), + + /** + * 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(OciFssExportType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OciFssExportType v : OciFssExportType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OciFssExportType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OciFssExportType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OciFssExportType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExportId.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExportId.java new file mode 100644 index 00000000000..5b9202823da --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExportId.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * The OCID of the OCI File Storage Service (FSS) Export. The user must have read permission for + * export-sets.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OciFssExportId.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssExportType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OciFssExportId extends OciFssExport { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the OCI File Storage Service (FSS) Export. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Export. + * + * @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 OciFssExportId build() { + OciFssExportId model = new OciFssExportId(this.id); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciFssExportId model) { + 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); + } + + @Deprecated + public OciFssExportId(String id) { + super(); + this.id = id; + } + + /** The OCID of the OCI File Storage Service (FSS) Export. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Export. + * + * @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("OciFssExportId("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + 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 OciFssExportId)) { + return false; + } + + OciFssExportId other = (OciFssExportId) o; + return java.util.Objects.equals(this.id, other.id) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountCommand.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountCommand.java new file mode 100644 index 00000000000..3154b35d66e --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountCommand.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * Specifications for the mount command to mount the OCI File Storage Service (FSS) File System to + * Containers.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciFssMountCommand.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OciFssMountCommand + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"mountOptions"}) + public OciFssMountCommand(java.util.List mountOptions) { + super(); + this.mountOptions = mountOptions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of mount options to be used in the mount command. The order of this array will be + * maintained while preparing the mount command. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mountOptions") + private java.util.List mountOptions; + + /** + * List of mount options to be used in the mount command. The order of this array will be + * maintained while preparing the mount command. + * + * @param mountOptions the value to set + * @return this builder + */ + public Builder mountOptions(java.util.List mountOptions) { + this.mountOptions = mountOptions; + this.__explicitlySet__.add("mountOptions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciFssMountCommand build() { + OciFssMountCommand model = new OciFssMountCommand(this.mountOptions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciFssMountCommand model) { + if (model.wasPropertyExplicitlySet("mountOptions")) { + this.mountOptions(model.getMountOptions()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of mount options to be used in the mount command. The order of this array will be + * maintained while preparing the mount command. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mountOptions") + private final java.util.List mountOptions; + + /** + * List of mount options to be used in the mount command. The order of this array will be + * maintained while preparing the mount command. + * + * @return the value + */ + public java.util.List getMountOptions() { + return mountOptions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssMountCommand("); + sb.append("super=").append(super.toString()); + sb.append("mountOptions=").append(String.valueOf(this.mountOptions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssMountCommand)) { + return false; + } + + OciFssMountCommand other = (OciFssMountCommand) o; + return java.util.Objects.equals(this.mountOptions, other.mountOptions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mountOptions == null ? 43 : this.mountOptions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountOption.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountOption.java new file mode 100644 index 00000000000..0d5780601ac --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountOption.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * A mount option to be used in the mount command while mounting the OCI File Storage Service (FSS) + * File System to Containers. The mount option will look like option=value in the mount command. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciFssMountOption.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OciFssMountOption + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"option", "value"}) + public OciFssMountOption(String option, String value) { + super(); + this.option = option; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs + * (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + */ + @com.fasterxml.jackson.annotation.JsonProperty("option") + private String option; + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs + * (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + * + * @param option the value to set + * @return this builder + */ + public Builder option(String option) { + this.option = option; + this.__explicitlySet__.add("option"); + return this; + } + /** The value of the mount option. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * The value of the mount option. + * + * @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 OciFssMountOption build() { + OciFssMountOption model = new OciFssMountOption(this.option, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciFssMountOption model) { + if (model.wasPropertyExplicitlySet("option")) { + this.option(model.getOption()); + } + 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); + } + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs + * (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + */ + @com.fasterxml.jackson.annotation.JsonProperty("option") + private final String option; + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs + * (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + * + * @return the value + */ + public String getOption() { + return option; + } + + /** The value of the mount option. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The value of the mount option. + * + * @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("OciFssMountOption("); + sb.append("super=").append(super.toString()); + sb.append("option=").append(String.valueOf(this.option)); + 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 OciFssMountOption)) { + return false; + } + + OciFssMountOption other = (OciFssMountOption) o; + return java.util.Objects.equals(this.option, other.option) + && 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.option == null ? 43 : this.option.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTarget.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTarget.java new file mode 100644 index 00000000000..62f9a3628e4 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTarget.java @@ -0,0 +1,128 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) Mount Target. Check + * https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/MountTarget for more 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssMountTargetType", + defaultImpl = OciFssMountTarget.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OciFssMountTargetId.class, + name = "OCID") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class OciFssMountTarget extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected OciFssMountTarget() { + 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("OciFssMountTarget("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssMountTarget)) { + return false; + } + + OciFssMountTarget other = (OciFssMountTarget) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Determines the mode for supplying the OCI File Storage Service (FSS) Mount target details. + * The value must be an OCID unless your tenancy is allowed to use HOST as a value. + */ + public enum OciFssMountTargetType implements com.oracle.bmc.http.internal.BmcEnum { + Ocid("OCID"), + + /** + * 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(OciFssMountTargetType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OciFssMountTargetType v : OciFssMountTargetType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OciFssMountTargetType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OciFssMountTargetType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OciFssMountTargetType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTargetId.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTargetId.java new file mode 100644 index 00000000000..e0e054250e3 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTargetId.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * The OCID of the OCI File Storage Service (FSS) Mount Target. The user must have read permission + * for mount-targets.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciFssMountTargetId.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssMountTargetType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OciFssMountTargetId extends OciFssMountTarget { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the OCI File Storage Service (FSS) Mount Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + * + * @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 OciFssMountTargetId build() { + OciFssMountTargetId model = new OciFssMountTargetId(this.id); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciFssMountTargetId model) { + 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); + } + + @Deprecated + public OciFssMountTargetId(String id) { + super(); + this.id = id; + } + + /** The OCID of the OCI File Storage Service (FSS) Mount Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + * + * @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("OciFssMountTargetId("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + 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 OciFssMountTargetId)) { + return false; + } + + OciFssMountTargetId other = (OciFssMountTargetId) o; + return java.util.Objects.equals(this.id, other.id) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSecurity.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSecurity.java new file mode 100644 index 00000000000..bbe401de0e1 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSecurity.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * Security options for OCI FSS File System.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "auth", + defaultImpl = OciFssSecurity.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OciFssSysSecurity.class, + name = "SYS") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class OciFssSecurity extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEncryptedInTransit"}) + protected OciFssSecurity(Boolean isEncryptedInTransit) { + super(); + this.isEncryptedInTransit = isEncryptedInTransit; + } + + /** + * Determines whether in-transit encryption needs to be enables. Check + * https://docs.oracle.com/en-us/iaas/Content/File/Tasks/intransitencryption.htm#Using_Intransit_Encryption + * for more details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEncryptedInTransit") + private final Boolean isEncryptedInTransit; + + /** + * Determines whether in-transit encryption needs to be enables. Check + * https://docs.oracle.com/en-us/iaas/Content/File/Tasks/intransitencryption.htm#Using_Intransit_Encryption + * for more details. + * + * @return the value + */ + public Boolean getIsEncryptedInTransit() { + return isEncryptedInTransit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssSecurity("); + sb.append("super=").append(super.toString()); + sb.append("isEncryptedInTransit=").append(String.valueOf(this.isEncryptedInTransit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssSecurity)) { + return false; + } + + OciFssSecurity other = (OciFssSecurity) o; + return java.util.Objects.equals(this.isEncryptedInTransit, other.isEncryptedInTransit) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isEncryptedInTransit == null + ? 43 + : this.isEncryptedInTransit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** NFS authentication type to be used. Currently, only auth type SYS is supported. */ + public enum Auth implements com.oracle.bmc.http.internal.BmcEnum { + Sys("SYS"), + + /** + * 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(Auth.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Auth v : Auth.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Auth(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Auth create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Auth', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSysSecurity.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSysSecurity.java new file mode 100644 index 00000000000..bcf671eeaef --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSysSecurity.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.containerinstances.model; + +/** + * SYS security options for OCI FSS File System.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciFssSysSecurity.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "auth") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OciFssSysSecurity extends OciFssSecurity { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("isEncryptedInTransit") + private Boolean isEncryptedInTransit; + + public Builder isEncryptedInTransit(Boolean isEncryptedInTransit) { + this.isEncryptedInTransit = isEncryptedInTransit; + this.__explicitlySet__.add("isEncryptedInTransit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciFssSysSecurity build() { + OciFssSysSecurity model = new OciFssSysSecurity(this.isEncryptedInTransit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciFssSysSecurity model) { + if (model.wasPropertyExplicitlySet("isEncryptedInTransit")) { + this.isEncryptedInTransit(model.getIsEncryptedInTransit()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OciFssSysSecurity(Boolean isEncryptedInTransit) { + super(isEncryptedInTransit); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssSysSecurity("); + 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 OciFssSysSecurity)) { + return false; + } + + OciFssSysSecurity other = (OciFssSysSecurity) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-containerinstances/reflect-config.json b/bmc-containerinstances/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-containerinstances/reflect-config.json index 0265164fafb..7dde872f99d 100644 --- a/bmc-containerinstances/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-containerinstances/reflect-config.json +++ b/bmc-containerinstances/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-containerinstances/reflect-config.json @@ -155,6 +155,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.ContainerFsGroupChangePolicyType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.ContainerHealthCheck", @@ -248,6 +254,19 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.ContainerInstanceSecurityContext", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.ContainerInstanceSecurityContext$SecurityContextType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.ContainerInstanceShapeCollection", @@ -304,6 +323,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.ContainerOciFssVolume", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.ContainerOciFssVolume$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.ContainerResourceConfig", @@ -478,6 +511,13 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateContainerInstanceSecurityContextDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.CreateContainerInstanceShapeConfigDetails", @@ -492,6 +532,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateContainerOciFssVolumeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateContainerOciFssVolumeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.CreateContainerResourceConfigDetails", @@ -554,6 +608,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateLinuxContainerInstanceSecurityContextDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateLinuxContainerInstanceSecurityContextDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.CreateLinuxSecurityContextDetails", @@ -568,6 +636,115 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssExportDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssExportDetails$OciFssExportType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssExportIdDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssExportIdDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssMountCommandDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssMountCommandDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssMountOptionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssMountOptionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssMountTargetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssMountTargetDetails$OciFssMountTargetType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssMountTargetIdDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssMountTargetIdDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssSecurityDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssSecurityDetails$Auth", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssSysSecurityDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.CreateOciFssSysSecurityDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.CreateSecurityContextDetails", @@ -630,6 +807,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.LinuxContainerInstanceSecurityContext", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.LinuxContainerInstanceSecurityContext$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.LinuxSecurityContext", @@ -644,6 +835,115 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssExport", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssExport$OciFssExportType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssExportId", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssExportId$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssMountCommand", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssMountCommand$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssMountOption", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssMountOption$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssMountTarget", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssMountTarget$OciFssMountTargetType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssMountTargetId", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssMountTargetId$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssSecurity", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssSecurity$Auth", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssSysSecurity", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.containerinstances.model.OciFssSysSecurity$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.OperationStatus", diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index f7c26b2b307..3a9f2b3e7ce 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 295408dd8d3..1985dd32c6d 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.91.1 + 3.92.0 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java index db65312b897..4d9ab389272 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java @@ -228,7 +228,7 @@ ChangeInstancePoolCompartmentResponse changeInstancePoolCompartment( /** * Creates an instance configuration. An instance configuration is a template that defines the - * settings to use when creating Compute instances. + * settings to use when creating Compute instances or GPU Memory Clusters. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java index 46e03962b75..9bbe96bfdc9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java @@ -228,7 +228,7 @@ java.util.concurrent.Future createClusterNetwork( /** * Creates an instance configuration. An instance configuration is a template that defines the - * settings to use when creating Compute instances. + * settings to use when creating Compute instances or GPU Memory Clusters. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java index 94a428cd4cf..68a6197aba9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java @@ -6,20 +6,13 @@ /** * The data for creating a [compute - * cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute - * cluster is an empty remote direct memory access (RDMA) network group + * cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). * - *

After the compute cluster is created, you can use the compute cluster's OCID with the {@link - * #launchInstance(LaunchInstanceRequest) launchInstance} operation to create instances in the - * compute cluster. The instances must be created in the same compartment and availability domain as - * the cluster. + *

After the compute cluster is created, you can use the compute cluster's OCID to create + * Instance, GPU Memory Cluster or Instance Pool resources within the compute cluster. These + * resources must be created in the same compartment and availability domain as the cluster. * - *

Use compute clusters when you want to manage instances in the cluster individually in the RDMA - * network group. - * - *

For details about creating a cluster network that uses instance pools to manage groups of - * identical instances, see {@link #createClusterNetworkDetails(CreateClusterNetworkDetailsRequest) - * createClusterNetworkDetails}.
+ *

Use {@code COMPUTE_CLUSTER} type when using placementConstraintDetails.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -42,9 +35,11 @@ public final class ComputeCluster "displayName", "definedTags", "freeformTags", + "placementConstraintDetails", "id", "lifecycleState", - "timeCreated" + "timeCreated", + "timeUpdated" }) public ComputeCluster( String availabilityDomain, @@ -52,18 +47,22 @@ public ComputeCluster( String displayName, java.util.Map> definedTags, java.util.Map freeformTags, + PlacementConstraintDetails placementConstraintDetails, String id, LifecycleState lifecycleState, - java.util.Date timeCreated) { + java.util.Date timeCreated, + java.util.Date timeUpdated) { super(); this.availabilityDomain = availabilityDomain; this.compartmentId = compartmentId; this.displayName = displayName; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.placementConstraintDetails = placementConstraintDetails; this.id = id; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -178,6 +177,16 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private PlacementConstraintDetails placementConstraintDetails; + + public Builder placementConstraintDetails( + PlacementConstraintDetails placementConstraintDetails) { + this.placementConstraintDetails = placementConstraintDetails; + this.__explicitlySet__.add("placementConstraintDetails"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * compute cluster. @@ -235,6 +244,29 @@ public Builder timeCreated(java.util.Date timeCreated) { this.__explicitlySet__.add("timeCreated"); return this; } + /** + * The date and time the compute cluster was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -247,9 +279,11 @@ public ComputeCluster build() { this.displayName, this.definedTags, this.freeformTags, + this.placementConstraintDetails, this.id, this.lifecycleState, - this.timeCreated); + this.timeCreated, + this.timeUpdated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -273,6 +307,9 @@ public Builder copy(ComputeCluster model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("placementConstraintDetails")) { + this.placementConstraintDetails(model.getPlacementConstraintDetails()); + } if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -282,6 +319,9 @@ public Builder copy(ComputeCluster model) { if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } return this; } } @@ -394,6 +434,13 @@ public java.util.Map getFreeformTags() { return freeformTags; } + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private final PlacementConstraintDetails placementConstraintDetails; + + public PlacementConstraintDetails getPlacementConstraintDetails() { + return placementConstraintDetails; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * compute cluster. @@ -491,6 +538,27 @@ public java.util.Date getTimeCreated() { return timeCreated; } + /** + * The date and time the compute cluster was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + @Override public String toString() { return this.toString(true); @@ -511,9 +579,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", placementConstraintDetails=") + .append(String.valueOf(this.placementConstraintDetails)); sb.append(", id=").append(String.valueOf(this.id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(")"); return sb.toString(); } @@ -533,9 +604,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals( + this.placementConstraintDetails, other.placementConstraintDetails) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && super.equals(other); } @@ -554,11 +628,17 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.placementConstraintDetails == null + ? 43 + : this.placementConstraintDetails.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterLogicalPlacementConstraint.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterLogicalPlacementConstraint.java new file mode 100644 index 00000000000..6e2eef6b092 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterLogicalPlacementConstraint.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * The logical placement strategy to apply for compute cluster placement. Allowed values are {@code + * SINGLE_TIER}, {@code SINGLE_BLOCK}, and {@code PACKED_DISTRIBUTION_MULTI_BLOCK}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public enum ComputeClusterLogicalPlacementConstraint + implements com.oracle.bmc.http.internal.BmcEnum { + SingleTier("SINGLE_TIER"), + SingleBlock("SINGLE_BLOCK"), + PackedDistributionMultiBlock("PACKED_DISTRIBUTION_MULTI_BLOCK"), + + /** + * 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(ComputeClusterLogicalPlacementConstraint.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeClusterLogicalPlacementConstraint v : + ComputeClusterLogicalPlacementConstraint.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeClusterLogicalPlacementConstraint(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeClusterLogicalPlacementConstraint create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeClusterLogicalPlacementConstraint', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterPlacementConstraintDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterPlacementConstraintDetails.java new file mode 100644 index 00000000000..48a6a618ebb --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterPlacementConstraintDetails.java @@ -0,0 +1,345 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * The details for providing placement constraints for a compute 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 + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = ComputeClusterPlacementConstraintDetails.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 ComputeClusterPlacementConstraintDetails extends PlacementConstraintDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * HPC island for the compute cluster. + * + *

This field cannot be updated after creation of the compute cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("hpcIslandId") + private String hpcIslandId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * HPC island for the compute cluster. + * + *

This field cannot be updated after creation of the compute cluster. + * + * @param hpcIslandId the value to set + * @return this builder + */ + public Builder hpcIslandId(String hpcIslandId) { + this.hpcIslandId = hpcIslandId; + this.__explicitlySet__.add("hpcIslandId"); + return this; + } + /** + * The list of target network block OCIDs to constrain placement. + * + *

If {@code targetNetworkBlockIds} is provided, the {@code hpcIslandId} must be set on + * the compute cluster, and the provided network blocks must belong to that same HPC island. + * + *

The ordering of the array will be preserved. Ensure that all items in the array are + * unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetNetworkBlockIds") + private java.util.List targetNetworkBlockIds; + + /** + * The list of target network block OCIDs to constrain placement. + * + *

If {@code targetNetworkBlockIds} is provided, the {@code hpcIslandId} must be set on + * the compute cluster, and the provided network blocks must belong to that same HPC island. + * + *

The ordering of the array will be preserved. Ensure that all items in the array are + * unique. + * + * @param targetNetworkBlockIds the value to set + * @return this builder + */ + public Builder targetNetworkBlockIds(java.util.List targetNetworkBlockIds) { + this.targetNetworkBlockIds = targetNetworkBlockIds; + this.__explicitlySet__.add("targetNetworkBlockIds"); + return this; + } + /** + * The list of target GPU memory fabric OCIDs to constrain placement. + * + *

If GMFs are passed in, the {@code hpcIslandId} must be set on the compute cluster, and + * the provided GMFs must belong to that same HPC island. + * + *

The ordering of the array will be preserved. Ensure that all items in the array are + * unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetMemoryFabricIds") + private java.util.List targetMemoryFabricIds; + + /** + * The list of target GPU memory fabric OCIDs to constrain placement. + * + *

If GMFs are passed in, the {@code hpcIslandId} must be set on the compute cluster, and + * the provided GMFs must belong to that same HPC island. + * + *

The ordering of the array will be preserved. Ensure that all items in the array are + * unique. + * + * @param targetMemoryFabricIds the value to set + * @return this builder + */ + public Builder targetMemoryFabricIds(java.util.List targetMemoryFabricIds) { + this.targetMemoryFabricIds = targetMemoryFabricIds; + this.__explicitlySet__.add("targetMemoryFabricIds"); + return this; + } + /** + * The logical placement strategy to apply. Allowed values are {@code SINGLE_TIER}, {@code + * SINGLE_BLOCK}, and {@code PACKED_DISTRIBUTION_MULTI_BLOCK}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logicalPlacementConstraint") + private ComputeClusterLogicalPlacementConstraint logicalPlacementConstraint; + + /** + * The logical placement strategy to apply. Allowed values are {@code SINGLE_TIER}, {@code + * SINGLE_BLOCK}, and {@code PACKED_DISTRIBUTION_MULTI_BLOCK}. + * + * @param logicalPlacementConstraint the value to set + * @return this builder + */ + public Builder logicalPlacementConstraint( + ComputeClusterLogicalPlacementConstraint logicalPlacementConstraint) { + this.logicalPlacementConstraint = logicalPlacementConstraint; + this.__explicitlySet__.add("logicalPlacementConstraint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeClusterPlacementConstraintDetails build() { + ComputeClusterPlacementConstraintDetails model = + new ComputeClusterPlacementConstraintDetails( + this.hpcIslandId, + this.targetNetworkBlockIds, + this.targetMemoryFabricIds, + this.logicalPlacementConstraint); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeClusterPlacementConstraintDetails model) { + if (model.wasPropertyExplicitlySet("hpcIslandId")) { + this.hpcIslandId(model.getHpcIslandId()); + } + if (model.wasPropertyExplicitlySet("targetNetworkBlockIds")) { + this.targetNetworkBlockIds(model.getTargetNetworkBlockIds()); + } + if (model.wasPropertyExplicitlySet("targetMemoryFabricIds")) { + this.targetMemoryFabricIds(model.getTargetMemoryFabricIds()); + } + if (model.wasPropertyExplicitlySet("logicalPlacementConstraint")) { + this.logicalPlacementConstraint(model.getLogicalPlacementConstraint()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ComputeClusterPlacementConstraintDetails( + String hpcIslandId, + java.util.List targetNetworkBlockIds, + java.util.List targetMemoryFabricIds, + ComputeClusterLogicalPlacementConstraint logicalPlacementConstraint) { + super(); + this.hpcIslandId = hpcIslandId; + this.targetNetworkBlockIds = targetNetworkBlockIds; + this.targetMemoryFabricIds = targetMemoryFabricIds; + this.logicalPlacementConstraint = logicalPlacementConstraint; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC + * island for the compute cluster. + * + *

This field cannot be updated after creation of the compute cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("hpcIslandId") + private final String hpcIslandId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC + * island for the compute cluster. + * + *

This field cannot be updated after creation of the compute cluster. + * + * @return the value + */ + public String getHpcIslandId() { + return hpcIslandId; + } + + /** + * The list of target network block OCIDs to constrain placement. + * + *

If {@code targetNetworkBlockIds} is provided, the {@code hpcIslandId} must be set on the + * compute cluster, and the provided network blocks must belong to that same HPC island. + * + *

The ordering of the array will be preserved. Ensure that all items in the array are + * unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetNetworkBlockIds") + private final java.util.List targetNetworkBlockIds; + + /** + * The list of target network block OCIDs to constrain placement. + * + *

If {@code targetNetworkBlockIds} is provided, the {@code hpcIslandId} must be set on the + * compute cluster, and the provided network blocks must belong to that same HPC island. + * + *

The ordering of the array will be preserved. Ensure that all items in the array are + * unique. + * + * @return the value + */ + public java.util.List getTargetNetworkBlockIds() { + return targetNetworkBlockIds; + } + + /** + * The list of target GPU memory fabric OCIDs to constrain placement. + * + *

If GMFs are passed in, the {@code hpcIslandId} must be set on the compute cluster, and the + * provided GMFs must belong to that same HPC island. + * + *

The ordering of the array will be preserved. Ensure that all items in the array are + * unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetMemoryFabricIds") + private final java.util.List targetMemoryFabricIds; + + /** + * The list of target GPU memory fabric OCIDs to constrain placement. + * + *

If GMFs are passed in, the {@code hpcIslandId} must be set on the compute cluster, and the + * provided GMFs must belong to that same HPC island. + * + *

The ordering of the array will be preserved. Ensure that all items in the array are + * unique. + * + * @return the value + */ + public java.util.List getTargetMemoryFabricIds() { + return targetMemoryFabricIds; + } + + /** + * The logical placement strategy to apply. Allowed values are {@code SINGLE_TIER}, {@code + * SINGLE_BLOCK}, and {@code PACKED_DISTRIBUTION_MULTI_BLOCK}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logicalPlacementConstraint") + private final ComputeClusterLogicalPlacementConstraint logicalPlacementConstraint; + + /** + * The logical placement strategy to apply. Allowed values are {@code SINGLE_TIER}, {@code + * SINGLE_BLOCK}, and {@code PACKED_DISTRIBUTION_MULTI_BLOCK}. + * + * @return the value + */ + public ComputeClusterLogicalPlacementConstraint getLogicalPlacementConstraint() { + return logicalPlacementConstraint; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComputeClusterPlacementConstraintDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", hpcIslandId=").append(String.valueOf(this.hpcIslandId)); + sb.append(", targetNetworkBlockIds=").append(String.valueOf(this.targetNetworkBlockIds)); + sb.append(", targetMemoryFabricIds=").append(String.valueOf(this.targetMemoryFabricIds)); + sb.append(", logicalPlacementConstraint=") + .append(String.valueOf(this.logicalPlacementConstraint)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComputeClusterPlacementConstraintDetails)) { + return false; + } + + ComputeClusterPlacementConstraintDetails other = + (ComputeClusterPlacementConstraintDetails) o; + return java.util.Objects.equals(this.hpcIslandId, other.hpcIslandId) + && java.util.Objects.equals(this.targetNetworkBlockIds, other.targetNetworkBlockIds) + && java.util.Objects.equals(this.targetMemoryFabricIds, other.targetMemoryFabricIds) + && java.util.Objects.equals( + this.logicalPlacementConstraint, other.logicalPlacementConstraint) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.hpcIslandId == null ? 43 : this.hpcIslandId.hashCode()); + result = + (result * PRIME) + + (this.targetNetworkBlockIds == null + ? 43 + : this.targetNetworkBlockIds.hashCode()); + result = + (result * PRIME) + + (this.targetMemoryFabricIds == null + ? 43 + : this.targetMemoryFabricIds.hashCode()); + result = + (result * PRIME) + + (this.logicalPlacementConstraint == null + ? 43 + : this.logicalPlacementConstraint.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeClusterDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeClusterDetails.java index ccd7bc3dccc..926b2a56e1b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeClusterDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeClusterDetails.java @@ -6,20 +6,13 @@ /** * The data for creating a [compute - * cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute - * cluster is an empty remote direct memory access (RDMA) network group + * cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). * - *

After the compute cluster is created, you can use the compute cluster's OCID with the {@link - * #launchInstance(LaunchInstanceRequest) launchInstance} operation to create instances in the - * compute cluster. The instances must be created in the same compartment and availability domain as - * the cluster. + *

After the compute cluster is created, you can use the compute cluster's OCID to create + * Instance, GPU Memory Cluster or Instance Pool resources within the compute cluster. These + * resources must be created in the same compartment and availability domain as the cluster. * - *

Use compute clusters when you want to manage instances in the cluster individually in the RDMA - * network group. - * - *

For details about creating a cluster network that uses instance pools to manage groups of - * identical instances, see {@link #createClusterNetworkDetails(CreateClusterNetworkDetailsRequest) - * createClusterNetworkDetails}.
+ *

Use {@code COMPUTE_CLUSTER} type when using placementConstraintDetails.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -42,20 +35,23 @@ public final class CreateComputeClusterDetails "compartmentId", "displayName", "definedTags", - "freeformTags" + "freeformTags", + "placementConstraintDetails" }) public CreateComputeClusterDetails( String availabilityDomain, String compartmentId, String displayName, java.util.Map> definedTags, - java.util.Map freeformTags) { + java.util.Map freeformTags, + PlacementConstraintDetails placementConstraintDetails) { super(); this.availabilityDomain = availabilityDomain; this.compartmentId = compartmentId; this.displayName = displayName; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.placementConstraintDetails = placementConstraintDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -171,6 +167,16 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private PlacementConstraintDetails placementConstraintDetails; + + public Builder placementConstraintDetails( + PlacementConstraintDetails placementConstraintDetails) { + this.placementConstraintDetails = placementConstraintDetails; + this.__explicitlySet__.add("placementConstraintDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -181,7 +187,8 @@ public CreateComputeClusterDetails build() { this.compartmentId, this.displayName, this.definedTags, - this.freeformTags); + this.freeformTags, + this.placementConstraintDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -205,6 +212,9 @@ public Builder copy(CreateComputeClusterDetails model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("placementConstraintDetails")) { + this.placementConstraintDetails(model.getPlacementConstraintDetails()); + } return this; } } @@ -317,6 +327,13 @@ public java.util.Map getFreeformTags() { return freeformTags; } + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private final PlacementConstraintDetails placementConstraintDetails; + + public PlacementConstraintDetails getPlacementConstraintDetails() { + return placementConstraintDetails; + } + @Override public String toString() { return this.toString(true); @@ -337,6 +354,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", placementConstraintDetails=") + .append(String.valueOf(this.placementConstraintDetails)); sb.append(")"); return sb.toString(); } @@ -356,6 +375,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals( + this.placementConstraintDetails, other.placementConstraintDetails) && super.equals(other); } @@ -374,6 +395,11 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.placementConstraintDetails == null + ? 43 + : this.placementConstraintDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateGmcConfigurationDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateGmcConfigurationDetails.java new file mode 100644 index 00000000000..049ecc9aedf --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateGmcConfigurationDetails.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * Details for creating an instance configuration for GPU Memory 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 + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = CreateGmcConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateGmcConfigurationDetails extends CreateInstanceConfigurationBase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** The GPU Memory Cluster configuration entries for. */ + @com.fasterxml.jackson.annotation.JsonProperty("gmcConfigs") + private java.util.List gmcConfigs; + + /** + * The GPU Memory Cluster configuration entries for. + * + * @param gmcConfigs the value to set + * @return this builder + */ + public Builder gmcConfigs(java.util.List gmcConfigs) { + this.gmcConfigs = gmcConfigs; + this.__explicitlySet__.add("gmcConfigs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateGmcConfigurationDetails build() { + CreateGmcConfigurationDetails model = + new CreateGmcConfigurationDetails( + this.compartmentId, + this.definedTags, + this.displayName, + this.freeformTags, + this.gmcConfigs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateGmcConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("gmcConfigs")) { + this.gmcConfigs(model.getGmcConfigs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateGmcConfigurationDetails( + String compartmentId, + java.util.Map> definedTags, + String displayName, + java.util.Map freeformTags, + java.util.List gmcConfigs) { + super(compartmentId, definedTags, displayName, freeformTags); + this.gmcConfigs = gmcConfigs; + } + + /** The GPU Memory Cluster configuration entries for. */ + @com.fasterxml.jackson.annotation.JsonProperty("gmcConfigs") + private final java.util.List gmcConfigs; + + /** + * The GPU Memory Cluster configuration entries for. + * + * @return the value + */ + public java.util.List getGmcConfigs() { + return gmcConfigs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateGmcConfigurationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", gmcConfigs=").append(String.valueOf(this.gmcConfigs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateGmcConfigurationDetails)) { + return false; + } + + CreateGmcConfigurationDetails other = (CreateGmcConfigurationDetails) o; + return java.util.Objects.equals(this.gmcConfigs, other.gmcConfigs) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.gmcConfigs == null ? 43 : this.gmcConfigs.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java index 3c946d06abe..05991ee3fa5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java @@ -22,6 +22,9 @@ property = "source", defaultImpl = CreateInstanceConfigurationBase.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateGmcConfigurationDetails.class, + name = "GMC"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateInstanceConfigurationDetails.class, name = "NONE"), @@ -215,11 +218,13 @@ public int hashCode() { * *

{@code NONE}: Creates an instance configuration using the list of settings that you * specify. * {@code INSTANCE}: Creates an instance configuration using an existing instance as - * a template. + * a template. * {@code GMC}: Creates an instance configuration which can be used to create GMC + * backed pools. */ public enum Source implements com.oracle.bmc.http.internal.BmcEnum { None("NONE"), Instance("INSTANCE"), + Gmc("GMC"), ; private final String value; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstancePoolDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstancePoolDetails.java index 6e8de604923..a5440c1467b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstancePoolDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstancePoolDetails.java @@ -5,7 +5,9 @@ package com.oracle.bmc.core.model; /** - * The data to create an instance pool.
+ * The data to create an instance pool. For a GMC-enabled resource pool, the referenced instance + * configuration must be a GMC configuration and the placement configuration must identify the + * availability domain and compute cluster for the pool.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -204,12 +206,16 @@ public Builder placementConfigurations( this.__explicitlySet__.add("placementConfigurations"); return this; } - /** The number of instances that should be in the instance pool. */ + /** + * The number of instances that should be in the instance pool. For a GMC-enabled resource + * pool, this is the number of GMC resources that should be in the pool. + */ @com.fasterxml.jackson.annotation.JsonProperty("size") private Integer size; /** - * The number of instances that should be in the instance pool. + * The number of instances that should be in the instance pool. For a GMC-enabled resource + * pool, this is the number of GMC resources that should be in the pool. * * @param size the value to set * @return this builder @@ -482,12 +488,16 @@ public String getInstanceConfigurationId() { return placementConfigurations; } - /** The number of instances that should be in the instance pool. */ + /** + * The number of instances that should be in the instance pool. For a GMC-enabled resource pool, + * this is the number of GMC resources that should be in the pool. + */ @com.fasterxml.jackson.annotation.JsonProperty("size") private final Integer size; /** - * The number of instances that should be in the instance pool. + * The number of instances that should be in the instance pool. For a GMC-enabled resource pool, + * this is the number of GMC resources that should be in the pool. * * @return the value */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfiguration.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfiguration.java index 589748a4de5..a039e8ec739 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfiguration.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfiguration.java @@ -6,7 +6,10 @@ /** * An instance configuration is a template that defines the settings to use when creating Compute - * instances.
+ * instances. An instance configuration is a template that defines the settings to use when creating + * Compute instances or GPU Memory Clusters. For more information about instance configurations, see + * [Managing Compute + * Instances](https://docs.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.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 @@ -31,6 +34,8 @@ public final class InstanceConfiguration "freeformTags", "id", "instanceDetails", + "gmcConfigs", + "source", "deferredFields", "timeCreated" }) @@ -41,6 +46,8 @@ public InstanceConfiguration( java.util.Map freeformTags, String id, InstanceConfigurationInstanceDetails instanceDetails, + java.util.List gmcConfigs, + Source source, java.util.List deferredFields, java.util.Date timeCreated) { super(); @@ -50,6 +57,8 @@ public InstanceConfiguration( this.freeformTags = freeformTags; this.id = id; this.instanceDetails = instanceDetails; + this.gmcConfigs = gmcConfigs; + this.source = source; this.deferredFields = deferredFields; this.timeCreated = timeCreated; } @@ -173,6 +182,42 @@ public Builder instanceDetails(InstanceConfigurationInstanceDetails instanceDeta this.__explicitlySet__.add("instanceDetails"); return this; } + /** The GPU Memory Cluster configuration entries for. */ + @com.fasterxml.jackson.annotation.JsonProperty("gmcConfigs") + private java.util.List gmcConfigs; + + /** + * The GPU Memory Cluster configuration entries for. + * + * @param gmcConfigs the value to set + * @return this builder + */ + public Builder gmcConfigs(java.util.List gmcConfigs) { + this.gmcConfigs = gmcConfigs; + this.__explicitlySet__.add("gmcConfigs"); + return this; + } + /** + * Differentiator for instance configuration. Following values are supported: * INSTANCE : + * All details related to instance will be passed within instanceDetails. * GMC : All + * details related to gpu memory cluster will be passed within gmcConfigs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private Source source; + + /** + * Differentiator for instance configuration. Following values are supported: * INSTANCE : + * All details related to instance will be passed within instanceDetails. * GMC : All + * details related to gpu memory cluster will be passed within gmcConfigs. + * + * @param source the value to set + * @return this builder + */ + public Builder source(Source source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } /** * Parameters that were not specified when the instance configuration was created, but that * are required to launch an instance from the instance configuration. See the {@link @@ -232,6 +277,8 @@ public InstanceConfiguration build() { this.freeformTags, this.id, this.instanceDetails, + this.gmcConfigs, + this.source, this.deferredFields, this.timeCreated); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -260,6 +307,12 @@ public Builder copy(InstanceConfiguration model) { if (model.wasPropertyExplicitlySet("instanceDetails")) { this.instanceDetails(model.getInstanceDetails()); } + if (model.wasPropertyExplicitlySet("gmcConfigs")) { + this.gmcConfigs(model.getGmcConfigs()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } if (model.wasPropertyExplicitlySet("deferredFields")) { this.deferredFields(model.getDeferredFields()); } @@ -383,6 +436,87 @@ public InstanceConfigurationInstanceDetails getInstanceDetails() { return instanceDetails; } + /** The GPU Memory Cluster configuration entries for. */ + @com.fasterxml.jackson.annotation.JsonProperty("gmcConfigs") + private final java.util.List gmcConfigs; + + /** + * The GPU Memory Cluster configuration entries for. + * + * @return the value + */ + public java.util.List getGmcConfigs() { + return gmcConfigs; + } + + /** + * Differentiator for instance configuration. Following values are supported: * INSTANCE : All + * details related to instance will be passed within instanceDetails. * GMC : All details + * related to gpu memory cluster will be passed within gmcConfigs. + */ + public enum Source implements com.oracle.bmc.http.internal.BmcEnum { + Instance("INSTANCE"), + Gmc("GMC"), + + /** + * 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(Source.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Differentiator for instance configuration. Following values are supported: * INSTANCE : All + * details related to instance will be passed within instanceDetails. * GMC : All details + * related to gpu memory cluster will be passed within gmcConfigs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final Source source; + + /** + * Differentiator for instance configuration. Following values are supported: * INSTANCE : All + * details related to instance will be passed within instanceDetails. * GMC : All details + * related to gpu memory cluster will be passed within gmcConfigs. + * + * @return the value + */ + public Source getSource() { + return source; + } + /** * Parameters that were not specified when the instance configuration was created, but that are * required to launch an instance from the instance configuration. See the {@link @@ -446,6 +580,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", id=").append(String.valueOf(this.id)); sb.append(", instanceDetails=").append(String.valueOf(this.instanceDetails)); + sb.append(", gmcConfigs=").append(String.valueOf(this.gmcConfigs)); + sb.append(", source=").append(String.valueOf(this.source)); sb.append(", deferredFields=").append(String.valueOf(this.deferredFields)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(")"); @@ -468,6 +604,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.instanceDetails, other.instanceDetails) + && java.util.Objects.equals(this.gmcConfigs, other.gmcConfigs) + && java.util.Objects.equals(this.source, other.source) && java.util.Objects.equals(this.deferredFields, other.deferredFields) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && super.equals(other); @@ -487,6 +625,8 @@ public int hashCode() { result = (result * PRIME) + (this.instanceDetails == null ? 43 : this.instanceDetails.hashCode()); + result = (result * PRIME) + (this.gmcConfigs == null ? 43 : this.gmcConfigs.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); result = (result * PRIME) + (this.deferredFields == null ? 43 : this.deferredFields.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGmcConfigDetail.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGmcConfigDetail.java new file mode 100644 index 00000000000..0446dbc7aa7 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGmcConfigDetail.java @@ -0,0 +1,475 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * Configuration detail for a GPU Memory Cluster entry within an instance configuration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InstanceConfigurationGmcConfigDetail.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InstanceConfigurationGmcConfigDetail + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "instanceConfigurationId", + "availabilityDomain", + "compartmentId", + "size", + "gpuMemoryClusterScaleConfig", + "displayName", + "definedTags", + "freeformTags" + }) + public InstanceConfigurationGmcConfigDetail( + String instanceConfigurationId, + String availabilityDomain, + String compartmentId, + Long size, + InstanceConfigurationGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig, + String displayName, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.instanceConfigurationId = instanceConfigurationId; + this.availabilityDomain = availabilityDomain; + this.compartmentId = compartmentId; + this.size = size; + this.gpuMemoryClusterScaleConfig = gpuMemoryClusterScaleConfig; + this.displayName = displayName; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * base compute instance configuration associated with this GMC configuration entry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceConfigurationId") + private String instanceConfigurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * base compute instance configuration associated with this GMC configuration entry. + * + * @param instanceConfigurationId the value to set + * @return this builder + */ + public Builder instanceConfigurationId(String instanceConfigurationId) { + this.instanceConfigurationId = instanceConfigurationId; + this.__explicitlySet__.add("instanceConfigurationId"); + return this; + } + /** The availability domain for this GMC configuration entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The availability domain for this GMC configuration entry. + * + * @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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with this GMC configuration entry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with this GMC configuration entry. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The desired number of instances for this GMC configuration entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("size") + private Long size; + + /** + * The desired number of instances for this GMC configuration entry. + * + * @param size the value to set + * @return this builder + */ + public Builder size(Long size) { + this.size = size; + this.__explicitlySet__.add("size"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gpuMemoryClusterScaleConfig") + private InstanceConfigurationGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig; + + public Builder gpuMemoryClusterScaleConfig( + InstanceConfigurationGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig) { + this.gpuMemoryClusterScaleConfig = gpuMemoryClusterScaleConfig; + this.__explicitlySet__.add("gpuMemoryClusterScaleConfig"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstanceConfigurationGmcConfigDetail build() { + InstanceConfigurationGmcConfigDetail model = + new InstanceConfigurationGmcConfigDetail( + this.instanceConfigurationId, + this.availabilityDomain, + this.compartmentId, + this.size, + this.gpuMemoryClusterScaleConfig, + this.displayName, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstanceConfigurationGmcConfigDetail model) { + if (model.wasPropertyExplicitlySet("instanceConfigurationId")) { + this.instanceConfigurationId(model.getInstanceConfigurationId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("size")) { + this.size(model.getSize()); + } + if (model.wasPropertyExplicitlySet("gpuMemoryClusterScaleConfig")) { + this.gpuMemoryClusterScaleConfig(model.getGpuMemoryClusterScaleConfig()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the base + * compute instance configuration associated with this GMC configuration entry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceConfigurationId") + private final String instanceConfigurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the base + * compute instance configuration associated with this GMC configuration entry. + * + * @return the value + */ + public String getInstanceConfigurationId() { + return instanceConfigurationId; + } + + /** The availability domain for this GMC configuration entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The availability domain for this GMC configuration entry. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with this GMC configuration entry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with this GMC configuration entry. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The desired number of instances for this GMC configuration entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("size") + private final Long size; + + /** + * The desired number of instances for this GMC configuration entry. + * + * @return the value + */ + public Long getSize() { + return size; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gpuMemoryClusterScaleConfig") + private final InstanceConfigurationGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig; + + public InstanceConfigurationGpuMemoryClusterScaleConfig getGpuMemoryClusterScaleConfig() { + return gpuMemoryClusterScaleConfig; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstanceConfigurationGmcConfigDetail("); + sb.append("super=").append(super.toString()); + sb.append("instanceConfigurationId=").append(String.valueOf(this.instanceConfigurationId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", size=").append(String.valueOf(this.size)); + sb.append(", gpuMemoryClusterScaleConfig=") + .append(String.valueOf(this.gpuMemoryClusterScaleConfig)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstanceConfigurationGmcConfigDetail)) { + return false; + } + + InstanceConfigurationGmcConfigDetail other = (InstanceConfigurationGmcConfigDetail) o; + return java.util.Objects.equals(this.instanceConfigurationId, other.instanceConfigurationId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.size, other.size) + && java.util.Objects.equals( + this.gpuMemoryClusterScaleConfig, other.gpuMemoryClusterScaleConfig) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.instanceConfigurationId == null + ? 43 + : this.instanceConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.size == null ? 43 : this.size.hashCode()); + result = + (result * PRIME) + + (this.gpuMemoryClusterScaleConfig == null + ? 43 + : this.gpuMemoryClusterScaleConfig.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGpuMemoryClusterScaleConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGpuMemoryClusterScaleConfig.java new file mode 100644 index 00000000000..b8411f2e246 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGpuMemoryClusterScaleConfig.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * Configuration settings for GPU Memory Cluster scaling.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = InstanceConfigurationGpuMemoryClusterScaleConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InstanceConfigurationGpuMemoryClusterScaleConfig + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isUpsizeEnabled", "isDownsizeEnabled", "targetSize"}) + public InstanceConfigurationGpuMemoryClusterScaleConfig( + Boolean isUpsizeEnabled, Boolean isDownsizeEnabled, Long targetSize) { + super(); + this.isUpsizeEnabled = isUpsizeEnabled; + this.isDownsizeEnabled = isDownsizeEnabled; + this.targetSize = targetSize; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Enables upsizing towards the target size. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUpsizeEnabled") + private Boolean isUpsizeEnabled; + + /** + * Enables upsizing towards the target size. + * + * @param isUpsizeEnabled the value to set + * @return this builder + */ + public Builder isUpsizeEnabled(Boolean isUpsizeEnabled) { + this.isUpsizeEnabled = isUpsizeEnabled; + this.__explicitlySet__.add("isUpsizeEnabled"); + return this; + } + /** Enables downsizing towards the target size. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDownsizeEnabled") + private Boolean isDownsizeEnabled; + + /** + * Enables downsizing towards the target size. + * + * @param isDownsizeEnabled the value to set + * @return this builder + */ + public Builder isDownsizeEnabled(Boolean isDownsizeEnabled) { + this.isDownsizeEnabled = isDownsizeEnabled; + this.__explicitlySet__.add("isDownsizeEnabled"); + return this; + } + /** The configured target size for the GPU Memory Cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetSize") + private Long targetSize; + + /** + * The configured target size for the GPU Memory Cluster. + * + * @param targetSize the value to set + * @return this builder + */ + public Builder targetSize(Long targetSize) { + this.targetSize = targetSize; + this.__explicitlySet__.add("targetSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstanceConfigurationGpuMemoryClusterScaleConfig build() { + InstanceConfigurationGpuMemoryClusterScaleConfig model = + new InstanceConfigurationGpuMemoryClusterScaleConfig( + this.isUpsizeEnabled, this.isDownsizeEnabled, this.targetSize); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstanceConfigurationGpuMemoryClusterScaleConfig model) { + if (model.wasPropertyExplicitlySet("isUpsizeEnabled")) { + this.isUpsizeEnabled(model.getIsUpsizeEnabled()); + } + if (model.wasPropertyExplicitlySet("isDownsizeEnabled")) { + this.isDownsizeEnabled(model.getIsDownsizeEnabled()); + } + if (model.wasPropertyExplicitlySet("targetSize")) { + this.targetSize(model.getTargetSize()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Enables upsizing towards the target size. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUpsizeEnabled") + private final Boolean isUpsizeEnabled; + + /** + * Enables upsizing towards the target size. + * + * @return the value + */ + public Boolean getIsUpsizeEnabled() { + return isUpsizeEnabled; + } + + /** Enables downsizing towards the target size. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDownsizeEnabled") + private final Boolean isDownsizeEnabled; + + /** + * Enables downsizing towards the target size. + * + * @return the value + */ + public Boolean getIsDownsizeEnabled() { + return isDownsizeEnabled; + } + + /** The configured target size for the GPU Memory Cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetSize") + private final Long targetSize; + + /** + * The configured target size for the GPU Memory Cluster. + * + * @return the value + */ + public Long getTargetSize() { + return targetSize; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstanceConfigurationGpuMemoryClusterScaleConfig("); + sb.append("super=").append(super.toString()); + sb.append("isUpsizeEnabled=").append(String.valueOf(this.isUpsizeEnabled)); + sb.append(", isDownsizeEnabled=").append(String.valueOf(this.isDownsizeEnabled)); + sb.append(", targetSize=").append(String.valueOf(this.targetSize)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstanceConfigurationGpuMemoryClusterScaleConfig)) { + return false; + } + + InstanceConfigurationGpuMemoryClusterScaleConfig other = + (InstanceConfigurationGpuMemoryClusterScaleConfig) o; + return java.util.Objects.equals(this.isUpsizeEnabled, other.isUpsizeEnabled) + && java.util.Objects.equals(this.isDownsizeEnabled, other.isDownsizeEnabled) + && java.util.Objects.equals(this.targetSize, other.targetSize) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isUpsizeEnabled == null ? 43 : this.isUpsizeEnabled.hashCode()); + result = + (result * PRIME) + + (this.isDownsizeEnabled == null ? 43 : this.isDownsizeEnabled.hashCode()); + result = (result * PRIME) + (this.targetSize == null ? 43 : this.targetSize.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java index 14d7ed21740..90455e4e7a3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java @@ -30,6 +30,7 @@ public final class InstancePool extends com.oracle.bmc.http.client.internal.Expl "displayName", "freeformTags", "instanceConfigurationId", + "poolType", "lifecycleState", "placementConfigurations", "size", @@ -47,6 +48,7 @@ public InstancePool( String displayName, java.util.Map freeformTags, String instanceConfigurationId, + PoolType poolType, LifecycleState lifecycleState, java.util.List placementConfigurations, Integer size, @@ -63,6 +65,7 @@ public InstancePool( this.displayName = displayName; this.freeformTags = freeformTags; this.instanceConfigurationId = instanceConfigurationId; + this.poolType = poolType; this.lifecycleState = lifecycleState; this.placementConfigurations = placementConfigurations; this.size = size; @@ -203,6 +206,21 @@ public Builder instanceConfigurationId(String instanceConfigurationId) { this.__explicitlySet__.add("instanceConfigurationId"); return this; } + /** The type of resources managed by the pool. */ + @com.fasterxml.jackson.annotation.JsonProperty("poolType") + private PoolType poolType; + + /** + * The type of resources managed by the pool. + * + * @param poolType the value to set + * @return this builder + */ + public Builder poolType(PoolType poolType) { + this.poolType = poolType; + this.__explicitlySet__.add("poolType"); + return this; + } /** The current state of the instance pool. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -364,6 +382,7 @@ public InstancePool build() { this.displayName, this.freeformTags, this.instanceConfigurationId, + this.poolType, this.lifecycleState, this.placementConfigurations, this.size, @@ -399,6 +418,9 @@ public Builder copy(InstancePool model) { if (model.wasPropertyExplicitlySet("instanceConfigurationId")) { this.instanceConfigurationId(model.getInstanceConfigurationId()); } + if (model.wasPropertyExplicitlySet("poolType")) { + this.poolType(model.getPoolType()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -553,6 +575,65 @@ public String getInstanceConfigurationId() { return instanceConfigurationId; } + /** The type of resources managed by the pool. */ + public enum PoolType implements com.oracle.bmc.http.internal.BmcEnum { + Instance("INSTANCE"), + Gmc("GMC"), + + /** + * 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(PoolType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PoolType v : PoolType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PoolType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PoolType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PoolType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The type of resources managed by the pool. */ + @com.fasterxml.jackson.annotation.JsonProperty("poolType") + private final PoolType poolType; + + /** + * The type of resources managed by the pool. + * + * @return the value + */ + public PoolType getPoolType() { + return poolType; + } + /** The current state of the instance pool. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Provisioning("PROVISIONING"), @@ -754,6 +835,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", instanceConfigurationId=") .append(String.valueOf(this.instanceConfigurationId)); + sb.append(", poolType=").append(String.valueOf(this.poolType)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", placementConfigurations=") .append(String.valueOf(this.placementConfigurations)); @@ -787,6 +869,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals( this.instanceConfigurationId, other.instanceConfigurationId) + && java.util.Objects.equals(this.poolType, other.poolType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals( this.placementConfigurations, other.placementConfigurations) @@ -818,6 +901,7 @@ public int hashCode() { + (this.instanceConfigurationId == null ? 43 : this.instanceConfigurationId.hashCode()); + result = (result * PRIME) + (this.poolType == null ? 43 : this.poolType.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java index 288e81f2e34..476702a3052 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java @@ -28,6 +28,7 @@ public final class InstancePoolSummary "compartmentId", "displayName", "instanceConfigurationId", + "poolType", "lifecycleState", "availabilityDomains", "size", @@ -41,6 +42,7 @@ public InstancePoolSummary( String compartmentId, String displayName, String instanceConfigurationId, + InstancePool.PoolType poolType, LifecycleState lifecycleState, java.util.List availabilityDomains, Integer size, @@ -53,6 +55,7 @@ public InstancePoolSummary( this.compartmentId = compartmentId; this.displayName = displayName; this.instanceConfigurationId = instanceConfigurationId; + this.poolType = poolType; this.lifecycleState = lifecycleState; this.availabilityDomains = availabilityDomains; this.size = size; @@ -128,6 +131,21 @@ public Builder instanceConfigurationId(String instanceConfigurationId) { this.__explicitlySet__.add("instanceConfigurationId"); return this; } + /** The type of resources managed by the pool. */ + @com.fasterxml.jackson.annotation.JsonProperty("poolType") + private InstancePool.PoolType poolType; + + /** + * The type of resources managed by the pool. + * + * @param poolType the value to set + * @return this builder + */ + public Builder poolType(InstancePool.PoolType poolType) { + this.poolType = poolType; + this.__explicitlySet__.add("poolType"); + return this; + } /** The current state of the instance pool. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -269,6 +287,7 @@ public InstancePoolSummary build() { this.compartmentId, this.displayName, this.instanceConfigurationId, + this.poolType, this.lifecycleState, this.availabilityDomains, this.size, @@ -296,6 +315,9 @@ public Builder copy(InstancePoolSummary model) { if (model.wasPropertyExplicitlySet("instanceConfigurationId")) { this.instanceConfigurationId(model.getInstanceConfigurationId()); } + if (model.wasPropertyExplicitlySet("poolType")) { + this.poolType(model.getPoolType()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -386,6 +408,19 @@ public String getInstanceConfigurationId() { return instanceConfigurationId; } + /** The type of resources managed by the pool. */ + @com.fasterxml.jackson.annotation.JsonProperty("poolType") + private final InstancePool.PoolType poolType; + + /** + * The type of resources managed by the pool. + * + * @return the value + */ + public InstancePool.PoolType getPoolType() { + return poolType; + } + /** The current state of the instance pool. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Provisioning("PROVISIONING"), @@ -573,6 +608,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", instanceConfigurationId=") .append(String.valueOf(this.instanceConfigurationId)); + sb.append(", poolType=").append(String.valueOf(this.poolType)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", availabilityDomains=").append(String.valueOf(this.availabilityDomains)); sb.append(", size=").append(String.valueOf(this.size)); @@ -599,6 +635,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals( this.instanceConfigurationId, other.instanceConfigurationId) + && java.util.Objects.equals(this.poolType, other.poolType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.availabilityDomains, other.availabilityDomains) && java.util.Objects.equals(this.size, other.size) @@ -623,6 +660,7 @@ public int hashCode() { + (this.instanceConfigurationId == null ? 43 : this.instanceConfigurationId.hashCode()); + result = (result * PRIME) + (this.poolType == null ? 43 : this.poolType.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/PlacementConstraintDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PlacementConstraintDetails.java index 3ebd995c9e9..7ae3a99a22d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/PlacementConstraintDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PlacementConstraintDetails.java @@ -25,6 +25,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = HostGroupPlacementConstraintDetails.class, name = "HOST_GROUP"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ComputeClusterPlacementConstraintDetails.class, + name = "COMPUTE_CLUSTER"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ComputeBareMetalHostPlacementConstraintDetails.class, name = "COMPUTE_BARE_METAL_HOST") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeClusterDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeClusterDetails.java index 8c1fba69593..68b093c29e5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeClusterDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeClusterDetails.java @@ -5,9 +5,20 @@ package com.oracle.bmc.core.model; /** - * The data to update a compute cluster. A [compute - * cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote - * direct memory access (RDMA) network group.
+ * The data to update a [compute + * cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). + * + *

Use {@code COMPUTE_CLUSTER} type when using placementConstraintDetails. + * + *

{@code placementConstraintDetails.hpcIslandId} is create-only and cannot be part of this + * update request. + * + *

All other fields in {@code placementConstraintDetails} are optional, and only the fields + * provided will be updated. + * + *

If {@code placementConstraintDetails.targetNetworkBlockIds} or {@code + * placementConstraintDetails.targetMemoryFabricIds} is provided, then the target compute cluster + * must already have {@code hpcIslandId} persisted.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -25,15 +36,22 @@ public final class UpdateComputeClusterDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"displayName", "definedTags", "freeformTags"}) + @java.beans.ConstructorProperties({ + "displayName", + "definedTags", + "freeformTags", + "placementConstraintDetails" + }) public UpdateComputeClusterDetails( String displayName, java.util.Map> definedTags, - java.util.Map freeformTags) { + java.util.Map freeformTags, + PlacementConstraintDetails placementConstraintDetails) { super(); this.displayName = displayName; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.placementConstraintDetails = placementConstraintDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -109,13 +127,26 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private PlacementConstraintDetails placementConstraintDetails; + + public Builder placementConstraintDetails( + PlacementConstraintDetails placementConstraintDetails) { + this.placementConstraintDetails = placementConstraintDetails; + this.__explicitlySet__.add("placementConstraintDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateComputeClusterDetails build() { UpdateComputeClusterDetails model = new UpdateComputeClusterDetails( - this.displayName, this.definedTags, this.freeformTags); + this.displayName, + this.definedTags, + this.freeformTags, + this.placementConstraintDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -133,6 +164,9 @@ public Builder copy(UpdateComputeClusterDetails model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("placementConstraintDetails")) { + this.placementConstraintDetails(model.getPlacementConstraintDetails()); + } return this; } } @@ -209,6 +243,13 @@ public java.util.Map getFreeformTags() { return freeformTags; } + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private final PlacementConstraintDetails placementConstraintDetails; + + public PlacementConstraintDetails getPlacementConstraintDetails() { + return placementConstraintDetails; + } + @Override public String toString() { return this.toString(true); @@ -227,6 +268,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", placementConstraintDetails=") + .append(String.valueOf(this.placementConstraintDetails)); sb.append(")"); return sb.toString(); } @@ -244,6 +287,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals( + this.placementConstraintDetails, other.placementConstraintDetails) && super.equals(other); } @@ -254,6 +299,11 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.placementConstraintDetails == null + ? 43 + : this.placementConstraintDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstancePoolDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstancePoolDetails.java index f657ce10002..2d267bbf9a6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstancePoolDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstancePoolDetails.java @@ -178,7 +178,8 @@ public Builder placementConfigurations( return this; } /** - * The number of instances that should be in the instance pool. + * The number of instances that should be in the instance pool. For a GMC-enabled resource + * pool, this is the number of GMC resources that should be in the pool. * *

To determine whether capacity is available for a specific shape before you resize an * instance pool, use the {@link @@ -189,7 +190,8 @@ public Builder placementConfigurations( private Integer size; /** - * The number of instances that should be in the instance pool. + * The number of instances that should be in the instance pool. For a GMC-enabled resource + * pool, this is the number of GMC resources that should be in the pool. * *

To determine whether capacity is available for a specific shape before you resize an * instance pool, use the {@link @@ -426,7 +428,8 @@ public String getInstanceConfigurationId() { } /** - * The number of instances that should be in the instance pool. + * The number of instances that should be in the instance pool. For a GMC-enabled resource pool, + * this is the number of GMC resources that should be in the pool. * *

To determine whether capacity is available for a specific shape before you resize an * instance pool, use the {@link @@ -437,7 +440,8 @@ public String getInstanceConfigurationId() { private final Integer size; /** - * The number of instances that should be in the instance pool. + * The number of instances that should be in the instance pool. For a GMC-enabled resource pool, + * this is the number of GMC resources that should be in the pool. * *

To determine whether capacity is available for a specific shape before you resize an * instance pool, use the {@link diff --git a/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json b/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json index a865bdb2e19..2a7320101a2 100644 --- a/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json +++ b/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json @@ -2551,6 +2551,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.ComputeClusterLogicalPlacementConstraint", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.ComputeClusterPlacementConstraintDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.ComputeClusterPlacementConstraintDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.ComputeClusterSummary", @@ -3672,6 +3692,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.CreateGmcConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.CreateGmcConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.CreateIPSecConnectionDetails", @@ -5945,6 +5979,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.InstanceConfiguration$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.InstanceConfigurationAmdMilanBmGpuLaunchInstancePlatformConfig", @@ -6183,6 +6223,34 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.InstanceConfigurationGmcConfigDetail", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.InstanceConfigurationGmcConfigDetail$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.InstanceConfigurationGpuMemoryClusterScaleConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.InstanceConfigurationGpuMemoryClusterScaleConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.InstanceConfigurationHostGroupPlacementConstraintDetails", @@ -6690,6 +6758,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.InstancePool$PoolType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.InstancePool$LifecycleState", diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index 0ca66868fb4..dcb325cc487 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index ee0a3d2329f..64b19c315a3 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index c073fde1513..0c198954cac 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.91.1 + 3.92.0 diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 5618d449efd..95585d7900e 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index bbffbc65479..e6b3153d044 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 280c3e57c2a..9298bf2ea1e 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index 2beb366315b..56ac238b939 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 2a263423a20..000533bf102 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml new file mode 100644 index 00000000000..ee5b0f399e4 --- /dev/null +++ b/bmc-datacc/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.92.0 + ../pom.xml + + oci-java-sdk-datacc + Oracle Cloud Infrastructure SDK - Datacc + This project contains the SDK used for Oracle Cloud Infrastructure Datacc + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 3.92.0 + + + \ No newline at end of file diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/Baseinfra.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/Baseinfra.java new file mode 100644 index 00000000000..af9232aae81 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/Baseinfra.java @@ -0,0 +1,775 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc; + +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; + +/** + * API for Database Infrastructure Cloud@Customer Service. Use this API to manage Database + * Infrastructure VM clusters, Application VMs, and related resources. + * + *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public interface Baseinfra 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); + + /** + * Activate an Database Infrastructure using the specified details. + * + * @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 + * ActivateInfrastructure API. + */ + ActivateInfrastructureResponse activateInfrastructure(ActivateInfrastructureRequest request); + + /** + * Change the Database Infrastructure Cloud@Customer Compartment to the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 + * ChangeInfrastructureCompartment API. + */ + ChangeInfrastructureCompartmentResponse changeInfrastructureCompartment( + ChangeInfrastructureCompartmentRequest request); + + /** + * Change the VM cluster network Compartment to the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 + * ChangeVmClusterNetworkCompartment API. + */ + ChangeVmClusterNetworkCompartmentResponse changeVmClusterNetworkCompartment( + ChangeVmClusterNetworkCompartmentRequest request); + + /** + * Change the VM instance on Database Infrastructure Compartment to the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 + * ChangeVmInstanceCompartment API. + */ + ChangeVmInstanceCompartmentResponse changeVmInstanceCompartment( + ChangeVmInstanceCompartmentRequest request); + + /** + * Create a Database Infrastructure using the specified details. + * + * @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 + * CreateInfrastructure API. + */ + CreateInfrastructureResponse createInfrastructure(CreateInfrastructureRequest request); + + /** + * Create an VM cluster on Database Infrastructure network using the specified details. + * + * @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 + * CreateVmClusterNetwork API. + */ + CreateVmClusterNetworkResponse createVmClusterNetwork(CreateVmClusterNetworkRequest request); + + /** + * Create an VM instance on Database Infrastructure using the specified details. + * + * @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 CreateVmInstance + * API. + */ + CreateVmInstanceResponse createVmInstance(CreateVmInstanceRequest request); + + /** + * Delete the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be + * called once the resource usage is complete. + * + * @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 + * DeleteInfrastructure API. + */ + DeleteInfrastructureResponse deleteInfrastructure(DeleteInfrastructureRequest request); + + /** + * Delete the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be + * called once the resource usage is complete. + * + * @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 + * DeleteVmClusterNetwork API. + */ + DeleteVmClusterNetworkResponse deleteVmClusterNetwork(DeleteVmClusterNetworkRequest request); + + /** + * Delete the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be + * called once the resource usage is complete. + * + * @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 DeleteVmInstance + * API. + */ + DeleteVmInstanceResponse deleteVmInstance(DeleteVmInstanceRequest request); + + /** + * Downloads the configuration file for the specified Database Infrastructure Cloud@Customer. + * + * @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 + * DownloadInfrastructureConfigFile API. + */ + DownloadInfrastructureConfigFileResponse downloadInfrastructureConfigFile( + DownloadInfrastructureConfigFileRequest request); + + /** + * Downloads the validation script for the specified Database Infrastructure Cloud@Customer. + * + * @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 + * DownloadInfrastructureValidationScript API. + */ + DownloadInfrastructureValidationScriptResponse downloadInfrastructureValidationScript( + DownloadInfrastructureValidationScriptRequest request); + + /** + * Generates an VM cluster network configuration using the specified details. + * + * @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 + * GenerateRecommendedVmClusterNetwork API. + */ + GenerateRecommendedVmClusterNetworkResponse generateRecommendedVmClusterNetwork( + GenerateRecommendedVmClusterNetworkRequest request); + + /** + * Obtain the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 GetInfrastructure + * API. + */ + GetInfrastructureResponse getInfrastructure(GetInfrastructureRequest request); + + /** + * Get the available scale options for the infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 + * GetInfrastructureScaleOption API. + */ + GetInfrastructureScaleOptionResponse getInfrastructureScaleOption( + GetInfrastructureScaleOptionRequest request); + + /** + * Gets information about the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 + * GetMaintenanceExecution API. + */ + GetMaintenanceExecutionResponse getMaintenanceExecution(GetMaintenanceExecutionRequest request); + + /** + * Gets information about the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 GetMaintenanceRun + * API. + */ + GetMaintenanceRunResponse getMaintenanceRun(GetMaintenanceRunRequest request); + + /** + * Obtain the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 GetVmClusterNetwork + * API. + */ + GetVmClusterNetworkResponse getVmClusterNetwork(GetVmClusterNetworkRequest request); + + /** + * Obtain the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 GetVmInstance API. + */ + GetVmInstanceResponse getVmInstance(GetVmInstanceRequest request); + + /** + * Get the status of the work request having the specified work request + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 GetWorkRequest API. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + + /** + * Obtain a list of Database Infrastructures. + * + * @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 ListInfrastructures + * API. + */ + ListInfrastructuresResponse listInfrastructures(ListInfrastructuresRequest request); + + /** + * Gets a list of the maintenance executions 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 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 + * ListMaintenanceExecutions API. + */ + ListMaintenanceExecutionsResponse listMaintenanceExecutions( + ListMaintenanceExecutionsRequest request); + + /** + * Gets a list of the maintenance runs 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 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 ListMaintenanceRuns + * API. + */ + ListMaintenanceRunsResponse listMaintenanceRuns(ListMaintenanceRunsRequest request); + + /** + * Obtain a list of VM cluster networks on Database Infrastructure. + * + * @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 + * ListVmClusterNetworks API. + */ + ListVmClusterNetworksResponse listVmClusterNetworks(ListVmClusterNetworksRequest request); + + /** + * Obtain a list of VM instances. + * + * @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 ListVmInstances + * API. + */ + ListVmInstancesResponse listVmInstances(ListVmInstancesRequest request); + + /** + * View the list of errors for the work request that have the specified work request + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 + * ListWorkRequestErrors API. + */ + ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); + + /** + * View the log entries for the work request that have the specified work request + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 ListWorkRequestLogs + * API. + */ + ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); + + /** + * View a list of work request details 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 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); + + /** + * Migrate the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 MigrateVmInstance + * API. + */ + MigrateVmInstanceResponse migrateVmInstance(MigrateVmInstanceRequest request); + + /** + * Reschedules the specified maintenance run by providing a new `timeScheduled` value. Only + * maintenance runs in eligible states may be rescheduled. + * + * @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 + * RescheduleMaintenanceRun API. + */ + RescheduleMaintenanceRunResponse rescheduleMaintenanceRun( + RescheduleMaintenanceRunRequest request); + + /** + * Restart the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 RestartVmInstance + * API. + */ + RestartVmInstanceResponse restartVmInstance(RestartVmInstanceRequest request); + + /** + * Scale storage for the specified infrastructure using the specified details. + * + * @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 + * ScaleInfrastructureStorage API. + */ + ScaleInfrastructureStorageResponse scaleInfrastructureStorage( + ScaleInfrastructureStorageRequest request); + + /** + * Scale the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 ScaleVmInstance + * API. + */ + ScaleVmInstanceResponse scaleVmInstance(ScaleVmInstanceRequest request); + + /** + * Start the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 StartVmInstance + * API. + */ + StartVmInstanceResponse startVmInstance(StartVmInstanceRequest request); + + /** + * Stop the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 StopVmInstance API. + */ + StopVmInstanceResponse stopVmInstance(StopVmInstanceRequest request); + + /** + * Update the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 + * UpdateInfrastructure API. + */ + UpdateInfrastructureResponse updateInfrastructure(UpdateInfrastructureRequest request); + + /** + * Update maintenance run attributes. + * + * @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 + * UpdateMaintenanceRun API. + */ + UpdateMaintenanceRunResponse updateMaintenanceRun(UpdateMaintenanceRunRequest request); + + /** + * Update the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 + * UpdateVmClusterNetwork API. + */ + UpdateVmClusterNetworkResponse updateVmClusterNetwork(UpdateVmClusterNetworkRequest request); + + /** + * Update the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 UpdateVmInstance + * API. + */ + UpdateVmInstanceResponse updateVmInstance(UpdateVmInstanceRequest request); + + /** + * Validate an Database Infrastructure using the specified details. + * + * @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 + * ValidateInfrastructure API. + */ + ValidateInfrastructureResponse validateInfrastructure(ValidateInfrastructureRequest request); + + /** + * Validates an VM cluster network on Database Infrastructure. + * + * @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 + * ValidateVmClusterNetwork API. + */ + ValidateVmClusterNetworkResponse validateVmClusterNetwork( + ValidateVmClusterNetworkRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + BaseinfraWaiters 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. + */ + BaseinfraPaginators getPaginators(); +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsync.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsync.java new file mode 100644 index 00000000000..76fad029ae3 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsync.java @@ -0,0 +1,748 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc; + +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; + +/** + * API for Database Infrastructure Cloud@Customer Service. Use this API to manage Database + * Infrastructure VM clusters, Application VMs, and related resources. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public interface BaseinfraAsync 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); + + /** + * Activate an Database Infrastructure using the specified details. + * + * @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 activateInfrastructure( + ActivateInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + ActivateInfrastructureRequest, ActivateInfrastructureResponse> + handler); + + /** + * Change the Database Infrastructure Cloud@Customer Compartment to the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 + changeInfrastructureCompartment( + ChangeInfrastructureCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeInfrastructureCompartmentRequest, + ChangeInfrastructureCompartmentResponse> + handler); + + /** + * Change the VM cluster network Compartment to the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 + changeVmClusterNetworkCompartment( + ChangeVmClusterNetworkCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeVmClusterNetworkCompartmentRequest, + ChangeVmClusterNetworkCompartmentResponse> + handler); + + /** + * Change the VM instance on Database Infrastructure Compartment to the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 changeVmInstanceCompartment( + ChangeVmInstanceCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeVmInstanceCompartmentRequest, ChangeVmInstanceCompartmentResponse> + handler); + + /** + * Create a Database Infrastructure using the specified details. + * + * @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 createInfrastructure( + CreateInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateInfrastructureRequest, CreateInfrastructureResponse> + handler); + + /** + * Create an VM cluster on Database Infrastructure network using the specified details. + * + * @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 createVmClusterNetwork( + CreateVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + handler); + + /** + * Create an VM instance on Database Infrastructure using the specified details. + * + * @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 createVmInstance( + CreateVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Delete the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be + * called once the resource usage is complete. + * + * @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 deleteInfrastructure( + DeleteInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteInfrastructureRequest, DeleteInfrastructureResponse> + handler); + + /** + * Delete the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be + * called once the resource usage is complete. + * + * @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 deleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + handler); + + /** + * Delete the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be + * called once the resource usage is complete. + * + * @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 deleteVmInstance( + DeleteVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Downloads the configuration file for the specified Database Infrastructure Cloud@Customer. + * + * @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 + downloadInfrastructureConfigFile( + DownloadInfrastructureConfigFileRequest request, + com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureConfigFileRequest, + DownloadInfrastructureConfigFileResponse> + handler); + + /** + * Downloads the validation script for the specified Database Infrastructure Cloud@Customer. + * + * @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 + downloadInfrastructureValidationScript( + DownloadInfrastructureValidationScriptRequest request, + com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureValidationScriptRequest, + DownloadInfrastructureValidationScriptResponse> + handler); + + /** + * Generates an VM cluster network configuration using the specified details. + * + * @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 + generateRecommendedVmClusterNetwork( + GenerateRecommendedVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateRecommendedVmClusterNetworkRequest, + GenerateRecommendedVmClusterNetworkResponse> + handler); + + /** + * Obtain the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 getInfrastructure( + GetInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureRequest, GetInfrastructureResponse> + handler); + + /** + * Get the available scale options for the infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 getInfrastructureScaleOption( + GetInfrastructureScaleOptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureScaleOptionRequest, + GetInfrastructureScaleOptionResponse> + handler); + + /** + * Gets information about the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 getMaintenanceExecution( + GetMaintenanceExecutionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + handler); + + /** + * Gets information about the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 getMaintenanceRun( + GetMaintenanceRunRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceRunRequest, GetMaintenanceRunResponse> + handler); + + /** + * Obtain the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 getVmClusterNetwork( + GetVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetVmClusterNetworkRequest, GetVmClusterNetworkResponse> + handler); + + /** + * Obtain the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 getVmInstance( + GetVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Get the status of the work request having the specified work request + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Obtain a list of Database Infrastructures. + * + * @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 listInfrastructures( + ListInfrastructuresRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListInfrastructuresRequest, ListInfrastructuresResponse> + handler); + + /** + * Gets a list of the maintenance executions 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 listMaintenanceExecutions( + ListMaintenanceExecutionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceExecutionsRequest, ListMaintenanceExecutionsResponse> + handler); + + /** + * Gets a list of the maintenance runs 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 listMaintenanceRuns( + ListMaintenanceRunsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse> + handler); + + /** + * Obtain a list of VM cluster networks on Database Infrastructure. + * + * @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 listVmClusterNetworks( + ListVmClusterNetworksRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse> + handler); + + /** + * Obtain a list of VM instances. + * + * @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 listVmInstances( + ListVmInstancesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * View the list of errors for the work request that have the specified work request + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * View the log entries for the work request that have the specified work request + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * View a list of work request details 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 listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Migrate the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 migrateVmInstance( + MigrateVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler< + MigrateVmInstanceRequest, MigrateVmInstanceResponse> + handler); + + /** + * Reschedules the specified maintenance run by providing a new `timeScheduled` value. Only + * maintenance runs in eligible states may be rescheduled. + * + * @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 rescheduleMaintenanceRun( + RescheduleMaintenanceRunRequest request, + com.oracle.bmc.responses.AsyncHandler< + RescheduleMaintenanceRunRequest, RescheduleMaintenanceRunResponse> + handler); + + /** + * Restart the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 restartVmInstance( + RestartVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler< + RestartVmInstanceRequest, RestartVmInstanceResponse> + handler); + + /** + * Scale storage for the specified infrastructure using the specified details. + * + * @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 scaleInfrastructureStorage( + ScaleInfrastructureStorageRequest request, + com.oracle.bmc.responses.AsyncHandler< + ScaleInfrastructureStorageRequest, ScaleInfrastructureStorageResponse> + handler); + + /** + * Scale the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 scaleVmInstance( + ScaleVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Start the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 startVmInstance( + StartVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Stop the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 stopVmInstance( + StopVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Update the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 updateInfrastructure( + UpdateInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateInfrastructureRequest, UpdateInfrastructureResponse> + handler); + + /** + * Update maintenance run attributes. + * + * @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 updateMaintenanceRun( + UpdateMaintenanceRunRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateMaintenanceRunRequest, UpdateMaintenanceRunResponse> + handler); + + /** + * Update the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 updateVmClusterNetwork( + UpdateVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateVmClusterNetworkRequest, UpdateVmClusterNetworkResponse> + handler); + + /** + * Update the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.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 updateVmInstance( + UpdateVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Validate an Database Infrastructure using the specified details. + * + * @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 validateInfrastructure( + ValidateInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateInfrastructureRequest, ValidateInfrastructureResponse> + handler); + + /** + * Validates an VM cluster network on Database Infrastructure. + * + * @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 validateVmClusterNetwork( + ValidateVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateVmClusterNetworkRequest, ValidateVmClusterNetworkResponse> + handler); +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsyncClient.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsyncClient.java new file mode 100644 index 00000000000..f71a8687954 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsyncClient.java @@ -0,0 +1,1712 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for Baseinfra 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: 20251101") +public class BaseinfraAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements BaseinfraAsync { + /** Service instance for Baseinfra. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(BaseinfraClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://datacc.{region}.ocp.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BaseinfraAsyncClient.class); + + BaseinfraAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + BaseinfraAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + boolean isStreamWarningEnabled) { + super(builder, authenticationDetailsProvider); + + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "BaseinfraAsyncClient", + "downloadInfrastructureConfigFile,downloadInfrastructureValidationScript")); + } + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private boolean isStreamWarningEnabled = true; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "datacc"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public BaseinfraAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new BaseinfraAsyncClient( + this, authenticationDetailsProvider, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future activateInfrastructure( + ActivateInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateInfrastructureRequest, ActivateInfrastructureResponse> + handler) { + Objects.requireNonNull( + request.getActivateInfrastructureDetails(), + "activateInfrastructureDetails is required"); + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, ActivateInfrastructureResponse::builder) + .logger(LOG, "activateInfrastructure") + .serviceDetails("Baseinfra", "ActivateInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("activate") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.Infrastructure.class, + ActivateInfrastructureResponse.Builder::infrastructure) + .handleResponseHeaderString( + "opc-work-request-id", + ActivateInfrastructureResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ActivateInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", ActivateInfrastructureResponse.Builder::etag) + .handleResponseHeaderString( + "location", ActivateInfrastructureResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeInfrastructureCompartment( + ChangeInfrastructureCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeInfrastructureCompartmentRequest, + ChangeInfrastructureCompartmentResponse> + handler) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + Objects.requireNonNull( + request.getChangeInfrastructureCompartmentDetails(), + "changeInfrastructureCompartmentDetails is required"); + + return clientCall(request, ChangeInfrastructureCompartmentResponse::builder) + .logger(LOG, "changeInfrastructureCompartment") + .serviceDetails("Baseinfra", "ChangeInfrastructureCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeInfrastructureCompartmentRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeInfrastructureCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeInfrastructureCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeVmClusterNetworkCompartment( + ChangeVmClusterNetworkCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeVmClusterNetworkCompartmentRequest, + ChangeVmClusterNetworkCompartmentResponse> + handler) { + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + Objects.requireNonNull( + request.getChangeVmClusterNetworkCompartmentDetails(), + "changeVmClusterNetworkCompartmentDetails is required"); + + return clientCall(request, ChangeVmClusterNetworkCompartmentResponse::builder) + .logger(LOG, "changeVmClusterNetworkCompartment") + .serviceDetails("Baseinfra", "ChangeVmClusterNetworkCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeVmClusterNetworkCompartmentRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeVmClusterNetworkCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeVmClusterNetworkCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeVmInstanceCompartment( + ChangeVmInstanceCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeVmInstanceCompartmentRequest, + ChangeVmInstanceCompartmentResponse> + handler) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + Objects.requireNonNull( + request.getChangeVmInstanceCompartmentDetails(), + "changeVmInstanceCompartmentDetails is required"); + + return clientCall(request, ChangeVmInstanceCompartmentResponse::builder) + .logger(LOG, "changeVmInstanceCompartment") + .serviceDetails("Baseinfra", "ChangeVmInstanceCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeVmInstanceCompartmentRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeVmInstanceCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ChangeVmInstanceCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createInfrastructure( + CreateInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateInfrastructureRequest, CreateInfrastructureResponse> + handler) { + Objects.requireNonNull( + request.getCreateInfrastructureDetails(), + "createInfrastructureDetails is required"); + + return clientCall(request, CreateInfrastructureResponse::builder) + .logger(LOG, "createInfrastructure") + .serviceDetails("Baseinfra", "CreateInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.Infrastructure.class, + CreateInfrastructureResponse.Builder::infrastructure) + .handleResponseHeaderString( + "opc-work-request-id", + CreateInfrastructureResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateInfrastructureResponse.Builder::etag) + .handleResponseHeaderString( + "location", CreateInfrastructureResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createVmClusterNetwork( + CreateVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + handler) { + Objects.requireNonNull( + request.getCreateVmClusterNetworkDetails(), + "createVmClusterNetworkDetails is required"); + + return clientCall(request, CreateVmClusterNetworkResponse::builder) + .logger(LOG, "createVmClusterNetwork") + .serviceDetails("Baseinfra", "CreateVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.VmClusterNetwork.class, + CreateVmClusterNetworkResponse.Builder::vmClusterNetwork) + .handleResponseHeaderString( + "opc-work-request-id", + CreateVmClusterNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateVmClusterNetworkResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateVmClusterNetworkResponse.Builder::etag) + .handleResponseHeaderString( + "location", CreateVmClusterNetworkResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createVmInstance( + CreateVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateVmInstanceRequest, CreateVmInstanceResponse> + handler) { + Objects.requireNonNull( + request.getCreateVmInstanceDetails(), "createVmInstanceDetails is required"); + + return clientCall(request, CreateVmInstanceResponse::builder) + .logger(LOG, "createVmInstance") + .serviceDetails("Baseinfra", "CreateVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.VmInstance.class, + CreateVmInstanceResponse.Builder::vmInstance) + .handleResponseHeaderString( + "opc-work-request-id", CreateVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateVmInstanceResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateVmInstanceResponse.Builder::etag) + .handleResponseHeaderString("location", CreateVmInstanceResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteInfrastructure( + DeleteInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteInfrastructureRequest, DeleteInfrastructureResponse> + handler) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, DeleteInfrastructureResponse::builder) + .logger(LOG, "deleteInfrastructure") + .serviceDetails("Baseinfra", "DeleteInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendQueryParam( + "isForceDeleteInfrastructure", request.getIsForceDeleteInfrastructure()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteInfrastructureResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + handler) { + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + return clientCall(request, DeleteVmClusterNetworkResponse::builder) + .logger(LOG, "deleteVmClusterNetwork") + .serviceDetails("Baseinfra", "DeleteVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteVmClusterNetworkResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteVmClusterNetworkResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteVmInstance( + DeleteVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteVmInstanceRequest, DeleteVmInstanceResponse> + handler) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, DeleteVmInstanceResponse::builder) + .logger(LOG, "deleteVmInstance") + .serviceDetails("Baseinfra", "DeleteVmInstance", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteVmInstanceResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", DeleteVmInstanceResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + downloadInfrastructureConfigFile( + DownloadInfrastructureConfigFileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureConfigFileRequest, + DownloadInfrastructureConfigFileResponse> + handler) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, DownloadInfrastructureConfigFileResponse::builder) + .logger(LOG, "downloadInfrastructureConfigFile") + .serviceDetails("Baseinfra", "DownloadInfrastructureConfigFile", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(DownloadInfrastructureConfigFileRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("downloadConfigFile") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + java.io.InputStream.class, + DownloadInfrastructureConfigFileResponse.Builder::inputStream) + .handleResponseHeaderString( + "etag", DownloadInfrastructureConfigFileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + DownloadInfrastructureConfigFileResponse.Builder::opcRequestId) + .handleResponseHeaderLong( + "content-length", + DownloadInfrastructureConfigFileResponse.Builder::contentLength) + .handleResponseHeaderDate( + "last-modified", + DownloadInfrastructureConfigFileResponse.Builder::lastModified) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + downloadInfrastructureValidationScript( + DownloadInfrastructureValidationScriptRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureValidationScriptRequest, + DownloadInfrastructureValidationScriptResponse> + handler) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, DownloadInfrastructureValidationScriptResponse::builder) + .logger(LOG, "downloadInfrastructureValidationScript") + .serviceDetails("Baseinfra", "DownloadInfrastructureValidationScript", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(DownloadInfrastructureValidationScriptRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("downloadValidationScript") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + java.io.InputStream.class, + DownloadInfrastructureValidationScriptResponse.Builder::inputStream) + .handleResponseHeaderString( + "etag", DownloadInfrastructureValidationScriptResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + DownloadInfrastructureValidationScriptResponse.Builder::opcRequestId) + .handleResponseHeaderLong( + "content-length", + DownloadInfrastructureValidationScriptResponse.Builder::contentLength) + .handleResponseHeaderDate( + "last-modified", + DownloadInfrastructureValidationScriptResponse.Builder::lastModified) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + generateRecommendedVmClusterNetwork( + GenerateRecommendedVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateRecommendedVmClusterNetworkRequest, + GenerateRecommendedVmClusterNetworkResponse> + handler) { + Objects.requireNonNull( + request.getGenerateRecommendedVmClusterNetworkDetails(), + "generateRecommendedVmClusterNetworkDetails is required"); + + return clientCall(request, GenerateRecommendedVmClusterNetworkResponse::builder) + .logger(LOG, "generateRecommendedVmClusterNetwork") + .serviceDetails("Baseinfra", "GenerateRecommendedVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateRecommendedVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam("actions") + .appendPathParam("generateRecommendedVmClusterNetwork") + .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.datacc.model.CreateVmClusterNetworkDetails.class, + GenerateRecommendedVmClusterNetworkResponse.Builder + ::createVmClusterNetworkDetails) + .handleResponseHeaderString( + "opc-work-request-id", + GenerateRecommendedVmClusterNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateRecommendedVmClusterNetworkResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GenerateRecommendedVmClusterNetworkResponse.Builder::etag) + .handleResponseHeaderString( + "location", GenerateRecommendedVmClusterNetworkResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getInfrastructure( + GetInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureRequest, GetInfrastructureResponse> + handler) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, GetInfrastructureResponse::builder) + .logger(LOG, "getInfrastructure") + .serviceDetails("Baseinfra", "GetInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.Infrastructure.class, + GetInfrastructureResponse.Builder::infrastructure) + .handleResponseHeaderString( + "opc-request-id", GetInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetInfrastructureResponse.Builder::etag) + .handleResponseHeaderString("location", GetInfrastructureResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getInfrastructureScaleOption( + GetInfrastructureScaleOptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureScaleOptionRequest, + GetInfrastructureScaleOptionResponse> + handler) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, GetInfrastructureScaleOptionResponse::builder) + .logger(LOG, "getInfrastructureScaleOption") + .serviceDetails("Baseinfra", "GetInfrastructureScaleOption", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetInfrastructureScaleOptionRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("scaleOptions") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.InfrastructureScaleOption.class, + GetInfrastructureScaleOptionResponse.Builder::infrastructureScaleOption) + .handleResponseHeaderString( + "opc-request-id", + GetInfrastructureScaleOptionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getMaintenanceExecution( + GetMaintenanceExecutionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + handler) { + + Validate.notBlank( + request.getMaintenanceExecutionId(), "maintenanceExecutionId must not be blank"); + + return clientCall(request, GetMaintenanceExecutionResponse::builder) + .logger(LOG, "getMaintenanceExecution") + .serviceDetails("Baseinfra", "GetMaintenanceExecution", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetMaintenanceExecutionRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceExecutions") + .appendPathParam(request.getMaintenanceExecutionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceExecution.class, + GetMaintenanceExecutionResponse.Builder::maintenanceExecution) + .handleResponseHeaderString( + "opc-request-id", GetMaintenanceExecutionResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetMaintenanceExecutionResponse.Builder::etag) + .handleResponseHeaderString( + "location", GetMaintenanceExecutionResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getMaintenanceRun( + GetMaintenanceRunRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceRunRequest, GetMaintenanceRunResponse> + handler) { + + Validate.notBlank(request.getMaintenanceRunId(), "maintenanceRunId must not be blank"); + + return clientCall(request, GetMaintenanceRunResponse::builder) + .logger(LOG, "getMaintenanceRun") + .serviceDetails("Baseinfra", "GetMaintenanceRun", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetMaintenanceRunRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceRuns") + .appendPathParam(request.getMaintenanceRunId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceRun.class, + GetMaintenanceRunResponse.Builder::maintenanceRun) + .handleResponseHeaderString( + "opc-request-id", GetMaintenanceRunResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetMaintenanceRunResponse.Builder::etag) + .handleResponseHeaderString("location", GetMaintenanceRunResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getVmClusterNetwork( + GetVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetVmClusterNetworkRequest, GetVmClusterNetworkResponse> + handler) { + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + return clientCall(request, GetVmClusterNetworkResponse::builder) + .logger(LOG, "getVmClusterNetwork") + .serviceDetails("Baseinfra", "GetVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.VmClusterNetwork.class, + GetVmClusterNetworkResponse.Builder::vmClusterNetwork) + .handleResponseHeaderString( + "opc-request-id", GetVmClusterNetworkResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetVmClusterNetworkResponse.Builder::etag) + .handleResponseHeaderString( + "location", GetVmClusterNetworkResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getVmInstance( + GetVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, GetVmInstanceResponse::builder) + .logger(LOG, "getVmInstance") + .serviceDetails("Baseinfra", "GetVmInstance", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.VmInstance.class, + GetVmInstanceResponse.Builder::vmInstance) + .handleResponseHeaderString( + "opc-request-id", GetVmInstanceResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetVmInstanceResponse.Builder::etag) + .handleResponseHeaderString("location", GetVmInstanceResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("Baseinfra", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20251101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.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 listInfrastructures( + ListInfrastructuresRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListInfrastructuresRequest, ListInfrastructuresResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListInfrastructuresResponse::builder) + .logger(LOG, "listInfrastructures") + .serviceDetails("Baseinfra", "ListInfrastructures", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListInfrastructuresRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendListQueryParam( + "lifecycleState", + request.getLifecycleState(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .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.datacc.model.InfrastructureCollection.class, + ListInfrastructuresResponse.Builder::infrastructureCollection) + .handleResponseHeaderString( + "opc-request-id", ListInfrastructuresResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListInfrastructuresResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listMaintenanceExecutions( + ListMaintenanceExecutionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceExecutionsRequest, ListMaintenanceExecutionsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListMaintenanceExecutionsResponse::builder) + .logger(LOG, "listMaintenanceExecutions") + .serviceDetails("Baseinfra", "ListMaintenanceExecutions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaintenanceExecutionsRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceExecutions") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("infrastructureId", request.getInfrastructureId()) + .appendEnumQueryParam("targetResourceType", request.getTargetResourceType()) + .appendEnumQueryParam("maintenanceType", request.getMaintenanceType()) + .appendQueryParam("maintenanceRunId", request.getMaintenanceRunId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("maintenanceSubtype", request.getMaintenanceSubtype()) + .appendQueryParam( + "timeAcceptedLessThanOrEqualTo", request.getTimeAcceptedLessThanOrEqualTo()) + .appendQueryParam( + "timeAcceptedGreaterThanOrEqualTo", + request.getTimeAcceptedGreaterThanOrEqualTo()) + .appendEnumQueryParam("type", request.getType()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceExecutionCollection.class, + ListMaintenanceExecutionsResponse.Builder::maintenanceExecutionCollection) + .handleResponseHeaderString( + "opc-request-id", ListMaintenanceExecutionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMaintenanceExecutionsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listMaintenanceRuns( + ListMaintenanceRunsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListMaintenanceRunsResponse::builder) + .logger(LOG, "listMaintenanceRuns") + .serviceDetails("Baseinfra", "ListMaintenanceRuns", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaintenanceRunsRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceRuns") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("infrastructureId", request.getInfrastructureId()) + .appendEnumQueryParam("targetResourceType", request.getTargetResourceType()) + .appendEnumQueryParam("maintenanceType", request.getMaintenanceType()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("maintenanceSubtype", request.getMaintenanceSubtype()) + .appendQueryParam( + "timeAcceptedLessThanOrEqualTo", request.getTimeAcceptedLessThanOrEqualTo()) + .appendQueryParam( + "timeAcceptedGreaterThanOrEqualTo", + request.getTimeAcceptedGreaterThanOrEqualTo()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceRunCollection.class, + ListMaintenanceRunsResponse.Builder::maintenanceRunCollection) + .handleResponseHeaderString( + "opc-request-id", ListMaintenanceRunsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMaintenanceRunsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listVmClusterNetworks( + ListVmClusterNetworksRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListVmClusterNetworksResponse::builder) + .logger(LOG, "listVmClusterNetworks") + .serviceDetails("Baseinfra", "ListVmClusterNetworks", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListVmClusterNetworksRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendListQueryParam( + "lifecycleState", + request.getLifecycleState(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isScanEnabled", request.getIsScanEnabled()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("infrastructureId", request.getInfrastructureId()) + .appendQueryParam("nodeCount", request.getNodeCount()) + .appendEnumQueryParam("vmNetworkConsumerType", request.getVmNetworkConsumerType()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.VmClusterNetworkCollection.class, + ListVmClusterNetworksResponse.Builder::vmClusterNetworkCollection) + .handleResponseHeaderString( + "opc-request-id", ListVmClusterNetworksResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListVmClusterNetworksResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listVmInstances( + ListVmInstancesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListVmInstancesRequest, ListVmInstancesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListVmInstancesResponse::builder) + .logger(LOG, "listVmInstances") + .serviceDetails("Baseinfra", "ListVmInstances", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListVmInstancesRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendListQueryParam( + "lifecycleState", + request.getLifecycleState(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("infrastructureId", request.getInfrastructureId()) + .appendQueryParam("baseServerId", request.getBaseServerId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.VmInstanceCollection.class, + ListVmInstancesResponse.Builder::vmInstanceCollection) + .handleResponseHeaderString( + "opc-request-id", ListVmInstancesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListVmInstancesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("Baseinfra", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20251101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .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("Baseinfra", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20251101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection.class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .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("Baseinfra", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20251101") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datacc.model.WorkRequestCollection.class, + ListWorkRequestsResponse.Builder::workRequestCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future migrateVmInstance( + MigrateVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + MigrateVmInstanceRequest, MigrateVmInstanceResponse> + handler) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, MigrateVmInstanceResponse::builder) + .logger(LOG, "migrateVmInstance") + .serviceDetails("Baseinfra", "MigrateVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(MigrateVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("migrate") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", MigrateVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", MigrateVmInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future rescheduleMaintenanceRun( + RescheduleMaintenanceRunRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RescheduleMaintenanceRunRequest, RescheduleMaintenanceRunResponse> + handler) { + + Validate.notBlank(request.getMaintenanceRunId(), "maintenanceRunId must not be blank"); + Objects.requireNonNull( + request.getRescheduleMaintenanceRunDetails(), + "rescheduleMaintenanceRunDetails is required"); + + return clientCall(request, RescheduleMaintenanceRunResponse::builder) + .logger(LOG, "rescheduleMaintenanceRun") + .serviceDetails("Baseinfra", "RescheduleMaintenanceRun", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RescheduleMaintenanceRunRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceRuns") + .appendPathParam(request.getMaintenanceRunId()) + .appendPathParam("actions") + .appendPathParam("reschedule") + .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.datacc.model.MaintenanceRun.class, + RescheduleMaintenanceRunResponse.Builder::maintenanceRun) + .handleResponseHeaderString( + "opc-work-request-id", + RescheduleMaintenanceRunResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RescheduleMaintenanceRunResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", RescheduleMaintenanceRunResponse.Builder::etag) + .handleResponseHeaderString( + "location", RescheduleMaintenanceRunResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future restartVmInstance( + RestartVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RestartVmInstanceRequest, RestartVmInstanceResponse> + handler) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, RestartVmInstanceResponse::builder) + .logger(LOG, "restartVmInstance") + .serviceDetails("Baseinfra", "RestartVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RestartVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("restart") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", RestartVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RestartVmInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + scaleInfrastructureStorage( + ScaleInfrastructureStorageRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScaleInfrastructureStorageRequest, + ScaleInfrastructureStorageResponse> + handler) { + Objects.requireNonNull( + request.getScaleInfrastructureStorageDetails(), + "scaleInfrastructureStorageDetails is required"); + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, ScaleInfrastructureStorageResponse::builder) + .logger(LOG, "scaleInfrastructureStorage") + .serviceDetails("Baseinfra", "ScaleInfrastructureStorage", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScaleInfrastructureStorageRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("scaleStorage") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ScaleInfrastructureStorageResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ScaleInfrastructureStorageResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", ScaleInfrastructureStorageResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future scaleVmInstance( + ScaleVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScaleVmInstanceRequest, ScaleVmInstanceResponse> + handler) { + Objects.requireNonNull( + request.getScaleVmInstanceDetails(), "scaleVmInstanceDetails is required"); + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, ScaleVmInstanceResponse::builder) + .logger(LOG, "scaleVmInstance") + .serviceDetails("Baseinfra", "ScaleVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScaleVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("scale") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", ScaleVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ScaleVmInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future startVmInstance( + StartVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + StartVmInstanceRequest, StartVmInstanceResponse> + handler) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, StartVmInstanceResponse::builder) + .logger(LOG, "startVmInstance") + .serviceDetails("Baseinfra", "StartVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StartVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("start") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", StartVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StartVmInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future stopVmInstance( + StopVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + StopVmInstanceRequest, StopVmInstanceResponse> + handler) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, StopVmInstanceResponse::builder) + .logger(LOG, "stopVmInstance") + .serviceDetails("Baseinfra", "StopVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StopVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("stop") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", StopVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StopVmInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateInfrastructure( + UpdateInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateInfrastructureRequest, UpdateInfrastructureResponse> + handler) { + Objects.requireNonNull( + request.getUpdateInfrastructureDetails(), + "updateInfrastructureDetails is required"); + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, UpdateInfrastructureResponse::builder) + .logger(LOG, "updateInfrastructure") + .serviceDetails("Baseinfra", "UpdateInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.Infrastructure.class, + UpdateInfrastructureResponse.Builder::infrastructure) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateInfrastructureResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateInfrastructureResponse.Builder::etag) + .handleResponseHeaderString( + "location", UpdateInfrastructureResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateMaintenanceRun( + UpdateMaintenanceRunRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateMaintenanceRunRequest, UpdateMaintenanceRunResponse> + handler) { + Objects.requireNonNull( + request.getUpdateMaintenanceRunDetails(), + "updateMaintenanceRunDetails is required"); + + Validate.notBlank(request.getMaintenanceRunId(), "maintenanceRunId must not be blank"); + + return clientCall(request, UpdateMaintenanceRunResponse::builder) + .logger(LOG, "updateMaintenanceRun") + .serviceDetails("Baseinfra", "UpdateMaintenanceRun", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateMaintenanceRunRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceRuns") + .appendPathParam(request.getMaintenanceRunId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceRun.class, + UpdateMaintenanceRunResponse.Builder::maintenanceRun) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateMaintenanceRunResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateMaintenanceRunResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateMaintenanceRunResponse.Builder::etag) + .handleResponseHeaderString( + "location", UpdateMaintenanceRunResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateVmClusterNetwork( + UpdateVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateVmClusterNetworkRequest, UpdateVmClusterNetworkResponse> + handler) { + Objects.requireNonNull( + request.getUpdateVmClusterNetworkDetails(), + "updateVmClusterNetworkDetails is required"); + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + return clientCall(request, UpdateVmClusterNetworkResponse::builder) + .logger(LOG, "updateVmClusterNetwork") + .serviceDetails("Baseinfra", "UpdateVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.VmClusterNetwork.class, + UpdateVmClusterNetworkResponse.Builder::vmClusterNetwork) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateVmClusterNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateVmClusterNetworkResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateVmClusterNetworkResponse.Builder::etag) + .handleResponseHeaderString( + "location", UpdateVmClusterNetworkResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateVmInstance( + UpdateVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateVmInstanceRequest, UpdateVmInstanceResponse> + handler) { + Objects.requireNonNull( + request.getUpdateVmInstanceDetails(), "updateVmInstanceDetails is required"); + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, UpdateVmInstanceResponse::builder) + .logger(LOG, "updateVmInstance") + .serviceDetails("Baseinfra", "UpdateVmInstance", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.VmInstance.class, + UpdateVmInstanceResponse.Builder::vmInstance) + .handleResponseHeaderString( + "opc-work-request-id", UpdateVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateVmInstanceResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateVmInstanceResponse.Builder::etag) + .handleResponseHeaderString("location", UpdateVmInstanceResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future validateInfrastructure( + ValidateInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateInfrastructureRequest, ValidateInfrastructureResponse> + handler) { + Objects.requireNonNull( + request.getValidateInfrastructureDetails(), + "validateInfrastructureDetails is required"); + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, ValidateInfrastructureResponse::builder) + .logger(LOG, "validateInfrastructure") + .serviceDetails("Baseinfra", "ValidateInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("validate") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.Infrastructure.class, + ValidateInfrastructureResponse.Builder::infrastructure) + .handleResponseHeaderString( + "opc-work-request-id", + ValidateInfrastructureResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ValidateInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", ValidateInfrastructureResponse.Builder::etag) + .handleResponseHeaderString( + "location", ValidateInfrastructureResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future validateVmClusterNetwork( + ValidateVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateVmClusterNetworkRequest, ValidateVmClusterNetworkResponse> + handler) { + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + return clientCall(request, ValidateVmClusterNetworkResponse::builder) + .logger(LOG, "validateVmClusterNetwork") + .serviceDetails("Baseinfra", "ValidateVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .appendPathParam("actions") + .appendPathParam("validateVmClusterNetwork") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + ValidateVmClusterNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ValidateVmClusterNetworkResponse.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 BaseinfraAsyncClient( + 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 BaseinfraAsyncClient( + 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 BaseinfraAsyncClient( + 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 BaseinfraAsyncClient( + 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 BaseinfraAsyncClient( + 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 BaseinfraAsyncClient( + 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 BaseinfraAsyncClient( + 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-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraClient.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraClient.java new file mode 100644 index 00000000000..66c3d37cf22 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraClient.java @@ -0,0 +1,1675 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.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: 20251101") +public class BaseinfraClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements Baseinfra { + /** Service instance for Baseinfra. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(BaseinfraClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://datacc.{region}.ocp.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BaseinfraClient.class); + + private final BaseinfraWaiters waiters; + + private final BaseinfraPaginators paginators; + + BaseinfraClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + this(builder, authenticationDetailsProvider, executorService, true); + } + + BaseinfraClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService, + boolean isStreamWarningEnabled) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("Baseinfra-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new BaseinfraWaiters(executorService, this); + + this.paginators = new BaseinfraPaginators(this); + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "BaseinfraClient", + "downloadInfrastructureConfigFile,downloadInfrastructureValidationScript")); + } + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private boolean isStreamWarningEnabled = true; + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "datacc"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public BaseinfraClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new BaseinfraClient( + this, authenticationDetailsProvider, executorService, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public ActivateInfrastructureResponse activateInfrastructure( + ActivateInfrastructureRequest request) { + Objects.requireNonNull( + request.getActivateInfrastructureDetails(), + "activateInfrastructureDetails is required"); + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, ActivateInfrastructureResponse::builder) + .logger(LOG, "activateInfrastructure") + .serviceDetails("Baseinfra", "ActivateInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("activate") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.Infrastructure.class, + ActivateInfrastructureResponse.Builder::infrastructure) + .handleResponseHeaderString( + "opc-work-request-id", + ActivateInfrastructureResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ActivateInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", ActivateInfrastructureResponse.Builder::etag) + .handleResponseHeaderString( + "location", ActivateInfrastructureResponse.Builder::location) + .callSync(); + } + + @Override + public ChangeInfrastructureCompartmentResponse changeInfrastructureCompartment( + ChangeInfrastructureCompartmentRequest request) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + Objects.requireNonNull( + request.getChangeInfrastructureCompartmentDetails(), + "changeInfrastructureCompartmentDetails is required"); + + return clientCall(request, ChangeInfrastructureCompartmentResponse::builder) + .logger(LOG, "changeInfrastructureCompartment") + .serviceDetails("Baseinfra", "ChangeInfrastructureCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeInfrastructureCompartmentRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeInfrastructureCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeInfrastructureCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ChangeVmClusterNetworkCompartmentResponse changeVmClusterNetworkCompartment( + ChangeVmClusterNetworkCompartmentRequest request) { + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + Objects.requireNonNull( + request.getChangeVmClusterNetworkCompartmentDetails(), + "changeVmClusterNetworkCompartmentDetails is required"); + + return clientCall(request, ChangeVmClusterNetworkCompartmentResponse::builder) + .logger(LOG, "changeVmClusterNetworkCompartment") + .serviceDetails("Baseinfra", "ChangeVmClusterNetworkCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeVmClusterNetworkCompartmentRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeVmClusterNetworkCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeVmClusterNetworkCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ChangeVmInstanceCompartmentResponse changeVmInstanceCompartment( + ChangeVmInstanceCompartmentRequest request) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + Objects.requireNonNull( + request.getChangeVmInstanceCompartmentDetails(), + "changeVmInstanceCompartmentDetails is required"); + + return clientCall(request, ChangeVmInstanceCompartmentResponse::builder) + .logger(LOG, "changeVmInstanceCompartment") + .serviceDetails("Baseinfra", "ChangeVmInstanceCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeVmInstanceCompartmentRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeVmInstanceCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ChangeVmInstanceCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateInfrastructureResponse createInfrastructure(CreateInfrastructureRequest request) { + Objects.requireNonNull( + request.getCreateInfrastructureDetails(), + "createInfrastructureDetails is required"); + + return clientCall(request, CreateInfrastructureResponse::builder) + .logger(LOG, "createInfrastructure") + .serviceDetails("Baseinfra", "CreateInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.Infrastructure.class, + CreateInfrastructureResponse.Builder::infrastructure) + .handleResponseHeaderString( + "opc-work-request-id", + CreateInfrastructureResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateInfrastructureResponse.Builder::etag) + .handleResponseHeaderString( + "location", CreateInfrastructureResponse.Builder::location) + .callSync(); + } + + @Override + public CreateVmClusterNetworkResponse createVmClusterNetwork( + CreateVmClusterNetworkRequest request) { + Objects.requireNonNull( + request.getCreateVmClusterNetworkDetails(), + "createVmClusterNetworkDetails is required"); + + return clientCall(request, CreateVmClusterNetworkResponse::builder) + .logger(LOG, "createVmClusterNetwork") + .serviceDetails("Baseinfra", "CreateVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.VmClusterNetwork.class, + CreateVmClusterNetworkResponse.Builder::vmClusterNetwork) + .handleResponseHeaderString( + "opc-work-request-id", + CreateVmClusterNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateVmClusterNetworkResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateVmClusterNetworkResponse.Builder::etag) + .handleResponseHeaderString( + "location", CreateVmClusterNetworkResponse.Builder::location) + .callSync(); + } + + @Override + public CreateVmInstanceResponse createVmInstance(CreateVmInstanceRequest request) { + Objects.requireNonNull( + request.getCreateVmInstanceDetails(), "createVmInstanceDetails is required"); + + return clientCall(request, CreateVmInstanceResponse::builder) + .logger(LOG, "createVmInstance") + .serviceDetails("Baseinfra", "CreateVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.VmInstance.class, + CreateVmInstanceResponse.Builder::vmInstance) + .handleResponseHeaderString( + "opc-work-request-id", CreateVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateVmInstanceResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateVmInstanceResponse.Builder::etag) + .handleResponseHeaderString("location", CreateVmInstanceResponse.Builder::location) + .callSync(); + } + + @Override + public DeleteInfrastructureResponse deleteInfrastructure(DeleteInfrastructureRequest request) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, DeleteInfrastructureResponse::builder) + .logger(LOG, "deleteInfrastructure") + .serviceDetails("Baseinfra", "DeleteInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendQueryParam( + "isForceDeleteInfrastructure", request.getIsForceDeleteInfrastructure()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteInfrastructureResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DeleteVmClusterNetworkResponse deleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request) { + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + return clientCall(request, DeleteVmClusterNetworkResponse::builder) + .logger(LOG, "deleteVmClusterNetwork") + .serviceDetails("Baseinfra", "DeleteVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteVmClusterNetworkResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteVmClusterNetworkResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DeleteVmInstanceResponse deleteVmInstance(DeleteVmInstanceRequest request) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, DeleteVmInstanceResponse::builder) + .logger(LOG, "deleteVmInstance") + .serviceDetails("Baseinfra", "DeleteVmInstance", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteVmInstanceResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", DeleteVmInstanceResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DownloadInfrastructureConfigFileResponse downloadInfrastructureConfigFile( + DownloadInfrastructureConfigFileRequest request) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, DownloadInfrastructureConfigFileResponse::builder) + .logger(LOG, "downloadInfrastructureConfigFile") + .serviceDetails("Baseinfra", "DownloadInfrastructureConfigFile", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(DownloadInfrastructureConfigFileRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("downloadConfigFile") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + java.io.InputStream.class, + DownloadInfrastructureConfigFileResponse.Builder::inputStream) + .handleResponseHeaderString( + "etag", DownloadInfrastructureConfigFileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + DownloadInfrastructureConfigFileResponse.Builder::opcRequestId) + .handleResponseHeaderLong( + "content-length", + DownloadInfrastructureConfigFileResponse.Builder::contentLength) + .handleResponseHeaderDate( + "last-modified", + DownloadInfrastructureConfigFileResponse.Builder::lastModified) + .callSync(); + } + + @Override + public DownloadInfrastructureValidationScriptResponse downloadInfrastructureValidationScript( + DownloadInfrastructureValidationScriptRequest request) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, DownloadInfrastructureValidationScriptResponse::builder) + .logger(LOG, "downloadInfrastructureValidationScript") + .serviceDetails("Baseinfra", "DownloadInfrastructureValidationScript", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(DownloadInfrastructureValidationScriptRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("downloadValidationScript") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + java.io.InputStream.class, + DownloadInfrastructureValidationScriptResponse.Builder::inputStream) + .handleResponseHeaderString( + "etag", DownloadInfrastructureValidationScriptResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + DownloadInfrastructureValidationScriptResponse.Builder::opcRequestId) + .handleResponseHeaderLong( + "content-length", + DownloadInfrastructureValidationScriptResponse.Builder::contentLength) + .handleResponseHeaderDate( + "last-modified", + DownloadInfrastructureValidationScriptResponse.Builder::lastModified) + .callSync(); + } + + @Override + public GenerateRecommendedVmClusterNetworkResponse generateRecommendedVmClusterNetwork( + GenerateRecommendedVmClusterNetworkRequest request) { + Objects.requireNonNull( + request.getGenerateRecommendedVmClusterNetworkDetails(), + "generateRecommendedVmClusterNetworkDetails is required"); + + return clientCall(request, GenerateRecommendedVmClusterNetworkResponse::builder) + .logger(LOG, "generateRecommendedVmClusterNetwork") + .serviceDetails("Baseinfra", "GenerateRecommendedVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateRecommendedVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam("actions") + .appendPathParam("generateRecommendedVmClusterNetwork") + .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.datacc.model.CreateVmClusterNetworkDetails.class, + GenerateRecommendedVmClusterNetworkResponse.Builder + ::createVmClusterNetworkDetails) + .handleResponseHeaderString( + "opc-work-request-id", + GenerateRecommendedVmClusterNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateRecommendedVmClusterNetworkResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GenerateRecommendedVmClusterNetworkResponse.Builder::etag) + .handleResponseHeaderString( + "location", GenerateRecommendedVmClusterNetworkResponse.Builder::location) + .callSync(); + } + + @Override + public GetInfrastructureResponse getInfrastructure(GetInfrastructureRequest request) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, GetInfrastructureResponse::builder) + .logger(LOG, "getInfrastructure") + .serviceDetails("Baseinfra", "GetInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.Infrastructure.class, + GetInfrastructureResponse.Builder::infrastructure) + .handleResponseHeaderString( + "opc-request-id", GetInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetInfrastructureResponse.Builder::etag) + .handleResponseHeaderString("location", GetInfrastructureResponse.Builder::location) + .callSync(); + } + + @Override + public GetInfrastructureScaleOptionResponse getInfrastructureScaleOption( + GetInfrastructureScaleOptionRequest request) { + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, GetInfrastructureScaleOptionResponse::builder) + .logger(LOG, "getInfrastructureScaleOption") + .serviceDetails("Baseinfra", "GetInfrastructureScaleOption", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetInfrastructureScaleOptionRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("scaleOptions") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.InfrastructureScaleOption.class, + GetInfrastructureScaleOptionResponse.Builder::infrastructureScaleOption) + .handleResponseHeaderString( + "opc-request-id", + GetInfrastructureScaleOptionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetMaintenanceExecutionResponse getMaintenanceExecution( + GetMaintenanceExecutionRequest request) { + + Validate.notBlank( + request.getMaintenanceExecutionId(), "maintenanceExecutionId must not be blank"); + + return clientCall(request, GetMaintenanceExecutionResponse::builder) + .logger(LOG, "getMaintenanceExecution") + .serviceDetails("Baseinfra", "GetMaintenanceExecution", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetMaintenanceExecutionRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceExecutions") + .appendPathParam(request.getMaintenanceExecutionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceExecution.class, + GetMaintenanceExecutionResponse.Builder::maintenanceExecution) + .handleResponseHeaderString( + "opc-request-id", GetMaintenanceExecutionResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetMaintenanceExecutionResponse.Builder::etag) + .handleResponseHeaderString( + "location", GetMaintenanceExecutionResponse.Builder::location) + .callSync(); + } + + @Override + public GetMaintenanceRunResponse getMaintenanceRun(GetMaintenanceRunRequest request) { + + Validate.notBlank(request.getMaintenanceRunId(), "maintenanceRunId must not be blank"); + + return clientCall(request, GetMaintenanceRunResponse::builder) + .logger(LOG, "getMaintenanceRun") + .serviceDetails("Baseinfra", "GetMaintenanceRun", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetMaintenanceRunRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceRuns") + .appendPathParam(request.getMaintenanceRunId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceRun.class, + GetMaintenanceRunResponse.Builder::maintenanceRun) + .handleResponseHeaderString( + "opc-request-id", GetMaintenanceRunResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetMaintenanceRunResponse.Builder::etag) + .handleResponseHeaderString("location", GetMaintenanceRunResponse.Builder::location) + .callSync(); + } + + @Override + public GetVmClusterNetworkResponse getVmClusterNetwork(GetVmClusterNetworkRequest request) { + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + return clientCall(request, GetVmClusterNetworkResponse::builder) + .logger(LOG, "getVmClusterNetwork") + .serviceDetails("Baseinfra", "GetVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.VmClusterNetwork.class, + GetVmClusterNetworkResponse.Builder::vmClusterNetwork) + .handleResponseHeaderString( + "opc-request-id", GetVmClusterNetworkResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetVmClusterNetworkResponse.Builder::etag) + .handleResponseHeaderString( + "location", GetVmClusterNetworkResponse.Builder::location) + .callSync(); + } + + @Override + public GetVmInstanceResponse getVmInstance(GetVmInstanceRequest request) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, GetVmInstanceResponse::builder) + .logger(LOG, "getVmInstance") + .serviceDetails("Baseinfra", "GetVmInstance", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.VmInstance.class, + GetVmInstanceResponse.Builder::vmInstance) + .handleResponseHeaderString( + "opc-request-id", GetVmInstanceResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetVmInstanceResponse.Builder::etag) + .handleResponseHeaderString("location", GetVmInstanceResponse.Builder::location) + .callSync(); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("Baseinfra", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20251101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.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 ListInfrastructuresResponse listInfrastructures(ListInfrastructuresRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListInfrastructuresResponse::builder) + .logger(LOG, "listInfrastructures") + .serviceDetails("Baseinfra", "ListInfrastructures", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListInfrastructuresRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendListQueryParam( + "lifecycleState", + request.getLifecycleState(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .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.datacc.model.InfrastructureCollection.class, + ListInfrastructuresResponse.Builder::infrastructureCollection) + .handleResponseHeaderString( + "opc-request-id", ListInfrastructuresResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListInfrastructuresResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListMaintenanceExecutionsResponse listMaintenanceExecutions( + ListMaintenanceExecutionsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListMaintenanceExecutionsResponse::builder) + .logger(LOG, "listMaintenanceExecutions") + .serviceDetails("Baseinfra", "ListMaintenanceExecutions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaintenanceExecutionsRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceExecutions") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("infrastructureId", request.getInfrastructureId()) + .appendEnumQueryParam("targetResourceType", request.getTargetResourceType()) + .appendEnumQueryParam("maintenanceType", request.getMaintenanceType()) + .appendQueryParam("maintenanceRunId", request.getMaintenanceRunId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("maintenanceSubtype", request.getMaintenanceSubtype()) + .appendQueryParam( + "timeAcceptedLessThanOrEqualTo", request.getTimeAcceptedLessThanOrEqualTo()) + .appendQueryParam( + "timeAcceptedGreaterThanOrEqualTo", + request.getTimeAcceptedGreaterThanOrEqualTo()) + .appendEnumQueryParam("type", request.getType()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceExecutionCollection.class, + ListMaintenanceExecutionsResponse.Builder::maintenanceExecutionCollection) + .handleResponseHeaderString( + "opc-request-id", ListMaintenanceExecutionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMaintenanceExecutionsResponse.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("Baseinfra", "ListMaintenanceRuns", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaintenanceRunsRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceRuns") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("infrastructureId", request.getInfrastructureId()) + .appendEnumQueryParam("targetResourceType", request.getTargetResourceType()) + .appendEnumQueryParam("maintenanceType", request.getMaintenanceType()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("maintenanceSubtype", request.getMaintenanceSubtype()) + .appendQueryParam( + "timeAcceptedLessThanOrEqualTo", request.getTimeAcceptedLessThanOrEqualTo()) + .appendQueryParam( + "timeAcceptedGreaterThanOrEqualTo", + request.getTimeAcceptedGreaterThanOrEqualTo()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceRunCollection.class, + ListMaintenanceRunsResponse.Builder::maintenanceRunCollection) + .handleResponseHeaderString( + "opc-request-id", ListMaintenanceRunsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMaintenanceRunsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListVmClusterNetworksResponse listVmClusterNetworks( + ListVmClusterNetworksRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListVmClusterNetworksResponse::builder) + .logger(LOG, "listVmClusterNetworks") + .serviceDetails("Baseinfra", "ListVmClusterNetworks", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListVmClusterNetworksRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendListQueryParam( + "lifecycleState", + request.getLifecycleState(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isScanEnabled", request.getIsScanEnabled()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("infrastructureId", request.getInfrastructureId()) + .appendQueryParam("nodeCount", request.getNodeCount()) + .appendEnumQueryParam("vmNetworkConsumerType", request.getVmNetworkConsumerType()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.VmClusterNetworkCollection.class, + ListVmClusterNetworksResponse.Builder::vmClusterNetworkCollection) + .handleResponseHeaderString( + "opc-request-id", ListVmClusterNetworksResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListVmClusterNetworksResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListVmInstancesResponse listVmInstances(ListVmInstancesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListVmInstancesResponse::builder) + .logger(LOG, "listVmInstances") + .serviceDetails("Baseinfra", "ListVmInstances", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListVmInstancesRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendListQueryParam( + "lifecycleState", + request.getLifecycleState(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("infrastructureId", request.getInfrastructureId()) + .appendQueryParam("baseServerId", request.getBaseServerId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.VmInstanceCollection.class, + ListVmInstancesResponse.Builder::vmInstanceCollection) + .handleResponseHeaderString( + "opc-request-id", ListVmInstancesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListVmInstancesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("Baseinfra", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20251101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .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("Baseinfra", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20251101") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection.class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("Baseinfra", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20251101") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datacc.model.WorkRequestCollection.class, + ListWorkRequestsResponse.Builder::workRequestCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public MigrateVmInstanceResponse migrateVmInstance(MigrateVmInstanceRequest request) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, MigrateVmInstanceResponse::builder) + .logger(LOG, "migrateVmInstance") + .serviceDetails("Baseinfra", "MigrateVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(MigrateVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("migrate") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", MigrateVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", MigrateVmInstanceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public RescheduleMaintenanceRunResponse rescheduleMaintenanceRun( + RescheduleMaintenanceRunRequest request) { + + Validate.notBlank(request.getMaintenanceRunId(), "maintenanceRunId must not be blank"); + Objects.requireNonNull( + request.getRescheduleMaintenanceRunDetails(), + "rescheduleMaintenanceRunDetails is required"); + + return clientCall(request, RescheduleMaintenanceRunResponse::builder) + .logger(LOG, "rescheduleMaintenanceRun") + .serviceDetails("Baseinfra", "RescheduleMaintenanceRun", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RescheduleMaintenanceRunRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceRuns") + .appendPathParam(request.getMaintenanceRunId()) + .appendPathParam("actions") + .appendPathParam("reschedule") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceRun.class, + RescheduleMaintenanceRunResponse.Builder::maintenanceRun) + .handleResponseHeaderString( + "opc-work-request-id", + RescheduleMaintenanceRunResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RescheduleMaintenanceRunResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", RescheduleMaintenanceRunResponse.Builder::etag) + .handleResponseHeaderString( + "location", RescheduleMaintenanceRunResponse.Builder::location) + .callSync(); + } + + @Override + public RestartVmInstanceResponse restartVmInstance(RestartVmInstanceRequest request) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, RestartVmInstanceResponse::builder) + .logger(LOG, "restartVmInstance") + .serviceDetails("Baseinfra", "RestartVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RestartVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("restart") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", RestartVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RestartVmInstanceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ScaleInfrastructureStorageResponse scaleInfrastructureStorage( + ScaleInfrastructureStorageRequest request) { + Objects.requireNonNull( + request.getScaleInfrastructureStorageDetails(), + "scaleInfrastructureStorageDetails is required"); + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, ScaleInfrastructureStorageResponse::builder) + .logger(LOG, "scaleInfrastructureStorage") + .serviceDetails("Baseinfra", "ScaleInfrastructureStorage", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScaleInfrastructureStorageRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("scaleStorage") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ScaleInfrastructureStorageResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ScaleInfrastructureStorageResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", ScaleInfrastructureStorageResponse.Builder::location) + .callSync(); + } + + @Override + public ScaleVmInstanceResponse scaleVmInstance(ScaleVmInstanceRequest request) { + Objects.requireNonNull( + request.getScaleVmInstanceDetails(), "scaleVmInstanceDetails is required"); + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, ScaleVmInstanceResponse::builder) + .logger(LOG, "scaleVmInstance") + .serviceDetails("Baseinfra", "ScaleVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScaleVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("scale") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", ScaleVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ScaleVmInstanceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public StartVmInstanceResponse startVmInstance(StartVmInstanceRequest request) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, StartVmInstanceResponse::builder) + .logger(LOG, "startVmInstance") + .serviceDetails("Baseinfra", "StartVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StartVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("start") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", StartVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StartVmInstanceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public StopVmInstanceResponse stopVmInstance(StopVmInstanceRequest request) { + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, StopVmInstanceResponse::builder) + .logger(LOG, "stopVmInstance") + .serviceDetails("Baseinfra", "StopVmInstance", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StopVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .appendPathParam("actions") + .appendPathParam("stop") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", StopVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StopVmInstanceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateInfrastructureResponse updateInfrastructure(UpdateInfrastructureRequest request) { + Objects.requireNonNull( + request.getUpdateInfrastructureDetails(), + "updateInfrastructureDetails is required"); + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, UpdateInfrastructureResponse::builder) + .logger(LOG, "updateInfrastructure") + .serviceDetails("Baseinfra", "UpdateInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.Infrastructure.class, + UpdateInfrastructureResponse.Builder::infrastructure) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateInfrastructureResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateInfrastructureResponse.Builder::etag) + .handleResponseHeaderString( + "location", UpdateInfrastructureResponse.Builder::location) + .callSync(); + } + + @Override + public UpdateMaintenanceRunResponse updateMaintenanceRun(UpdateMaintenanceRunRequest request) { + Objects.requireNonNull( + request.getUpdateMaintenanceRunDetails(), + "updateMaintenanceRunDetails is required"); + + Validate.notBlank(request.getMaintenanceRunId(), "maintenanceRunId must not be blank"); + + return clientCall(request, UpdateMaintenanceRunResponse::builder) + .logger(LOG, "updateMaintenanceRun") + .serviceDetails("Baseinfra", "UpdateMaintenanceRun", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateMaintenanceRunRequest::builder) + .basePath("/20251101") + .appendPathParam("maintenanceRuns") + .appendPathParam(request.getMaintenanceRunId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.MaintenanceRun.class, + UpdateMaintenanceRunResponse.Builder::maintenanceRun) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateMaintenanceRunResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateMaintenanceRunResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateMaintenanceRunResponse.Builder::etag) + .handleResponseHeaderString( + "location", UpdateMaintenanceRunResponse.Builder::location) + .callSync(); + } + + @Override + public UpdateVmClusterNetworkResponse updateVmClusterNetwork( + UpdateVmClusterNetworkRequest request) { + Objects.requireNonNull( + request.getUpdateVmClusterNetworkDetails(), + "updateVmClusterNetworkDetails is required"); + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + return clientCall(request, UpdateVmClusterNetworkResponse::builder) + .logger(LOG, "updateVmClusterNetwork") + .serviceDetails("Baseinfra", "UpdateVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.VmClusterNetwork.class, + UpdateVmClusterNetworkResponse.Builder::vmClusterNetwork) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateVmClusterNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateVmClusterNetworkResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateVmClusterNetworkResponse.Builder::etag) + .handleResponseHeaderString( + "location", UpdateVmClusterNetworkResponse.Builder::location) + .callSync(); + } + + @Override + public UpdateVmInstanceResponse updateVmInstance(UpdateVmInstanceRequest request) { + Objects.requireNonNull( + request.getUpdateVmInstanceDetails(), "updateVmInstanceDetails is required"); + + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + return clientCall(request, UpdateVmInstanceResponse::builder) + .logger(LOG, "updateVmInstance") + .serviceDetails("Baseinfra", "UpdateVmInstance", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateVmInstanceRequest::builder) + .basePath("/20251101") + .appendPathParam("vmInstances") + .appendPathParam(request.getVmInstanceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.VmInstance.class, + UpdateVmInstanceResponse.Builder::vmInstance) + .handleResponseHeaderString( + "opc-work-request-id", UpdateVmInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateVmInstanceResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateVmInstanceResponse.Builder::etag) + .handleResponseHeaderString("location", UpdateVmInstanceResponse.Builder::location) + .callSync(); + } + + @Override + public ValidateInfrastructureResponse validateInfrastructure( + ValidateInfrastructureRequest request) { + Objects.requireNonNull( + request.getValidateInfrastructureDetails(), + "validateInfrastructureDetails is required"); + + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + return clientCall(request, ValidateInfrastructureResponse::builder) + .logger(LOG, "validateInfrastructure") + .serviceDetails("Baseinfra", "ValidateInfrastructure", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateInfrastructureRequest::builder) + .basePath("/20251101") + .appendPathParam("infrastructures") + .appendPathParam(request.getInfrastructureId()) + .appendPathParam("actions") + .appendPathParam("validate") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacc.model.Infrastructure.class, + ValidateInfrastructureResponse.Builder::infrastructure) + .handleResponseHeaderString( + "opc-work-request-id", + ValidateInfrastructureResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ValidateInfrastructureResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", ValidateInfrastructureResponse.Builder::etag) + .handleResponseHeaderString( + "location", ValidateInfrastructureResponse.Builder::location) + .callSync(); + } + + @Override + public ValidateVmClusterNetworkResponse validateVmClusterNetwork( + ValidateVmClusterNetworkRequest request) { + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + return clientCall(request, ValidateVmClusterNetworkResponse::builder) + .logger(LOG, "validateVmClusterNetwork") + .serviceDetails("Baseinfra", "ValidateVmClusterNetwork", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateVmClusterNetworkRequest::builder) + .basePath("/20251101") + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .appendPathParam("actions") + .appendPathParam("validateVmClusterNetwork") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + ValidateVmClusterNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ValidateVmClusterNetworkResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public BaseinfraWaiters getWaiters() { + return waiters; + } + + @Override + public BaseinfraPaginators 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 BaseinfraClient( + 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 BaseinfraClient( + 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 BaseinfraClient( + 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 BaseinfraClient( + 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 BaseinfraClient( + 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 BaseinfraClient( + 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 BaseinfraClient( + 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 BaseinfraClient( + 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-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraPaginators.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraPaginators.java new file mode 100644 index 00000000000..0c188f129cb --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraPaginators.java @@ -0,0 +1,994 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc; + +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Baseinfra 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: 20251101") +public class BaseinfraPaginators { + private final Baseinfra client; + + public BaseinfraPaginators(Baseinfra client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listInfrastructures 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 listInfrastructuresResponseIterator( + final ListInfrastructuresRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListInfrastructuresRequest.Builder, + ListInfrastructuresRequest, + ListInfrastructuresResponse>( + new java.util.function.Supplier() { + @Override + public ListInfrastructuresRequest.Builder get() { + return ListInfrastructuresRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInfrastructuresResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInfrastructuresRequest.Builder>, + ListInfrastructuresRequest>() { + @Override + public ListInfrastructuresRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInfrastructuresRequest.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< + ListInfrastructuresRequest, ListInfrastructuresResponse>() { + @Override + public ListInfrastructuresResponse apply(ListInfrastructuresRequest request) { + return client.listInfrastructures(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datacc.model.InfrastructureSummary} objects contained in responses from the + * listInfrastructures 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.datacc.model.InfrastructureSummary} objects contained in responses + * received from the service. + */ + public Iterable + listInfrastructuresRecordIterator(final ListInfrastructuresRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListInfrastructuresRequest.Builder, + ListInfrastructuresRequest, + ListInfrastructuresResponse, + com.oracle.bmc.datacc.model.InfrastructureSummary>( + new java.util.function.Supplier() { + @Override + public ListInfrastructuresRequest.Builder get() { + return ListInfrastructuresRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInfrastructuresResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInfrastructuresRequest.Builder>, + ListInfrastructuresRequest>() { + @Override + public ListInfrastructuresRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInfrastructuresRequest.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< + ListInfrastructuresRequest, ListInfrastructuresResponse>() { + @Override + public ListInfrastructuresResponse apply(ListInfrastructuresRequest request) { + return client.listInfrastructures(request); + } + }, + new java.util.function.Function< + ListInfrastructuresResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListInfrastructuresResponse response) { + return response.getInfrastructureCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listMaintenanceExecutions 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 listMaintenanceExecutionsResponseIterator( + final ListMaintenanceExecutionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMaintenanceExecutionsRequest.Builder, + ListMaintenanceExecutionsRequest, + ListMaintenanceExecutionsResponse>( + new java.util.function.Supplier() { + @Override + public ListMaintenanceExecutionsRequest.Builder get() { + return ListMaintenanceExecutionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaintenanceExecutionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceExecutionsRequest.Builder>, + ListMaintenanceExecutionsRequest>() { + @Override + public ListMaintenanceExecutionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceExecutionsRequest.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< + ListMaintenanceExecutionsRequest, ListMaintenanceExecutionsResponse>() { + @Override + public ListMaintenanceExecutionsResponse apply( + ListMaintenanceExecutionsRequest request) { + return client.listMaintenanceExecutions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datacc.model.MaintenanceExecutionSummary} objects contained in responses from + * the listMaintenanceExecutions 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.datacc.model.MaintenanceExecutionSummary} objects contained in responses + * received from the service. + */ + public Iterable + listMaintenanceExecutionsRecordIterator( + final ListMaintenanceExecutionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMaintenanceExecutionsRequest.Builder, + ListMaintenanceExecutionsRequest, + ListMaintenanceExecutionsResponse, + com.oracle.bmc.datacc.model.MaintenanceExecutionSummary>( + new java.util.function.Supplier() { + @Override + public ListMaintenanceExecutionsRequest.Builder get() { + return ListMaintenanceExecutionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaintenanceExecutionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceExecutionsRequest.Builder>, + ListMaintenanceExecutionsRequest>() { + @Override + public ListMaintenanceExecutionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceExecutionsRequest.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< + ListMaintenanceExecutionsRequest, ListMaintenanceExecutionsResponse>() { + @Override + public ListMaintenanceExecutionsResponse apply( + ListMaintenanceExecutionsRequest request) { + return client.listMaintenanceExecutions(request); + } + }, + new java.util.function.Function< + ListMaintenanceExecutionsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListMaintenanceExecutionsResponse response) { + return response.getMaintenanceExecutionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listMaintenanceRuns 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 listMaintenanceRunsResponseIterator( + final ListMaintenanceRunsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMaintenanceRunsRequest.Builder, + ListMaintenanceRunsRequest, + ListMaintenanceRunsResponse>( + new java.util.function.Supplier() { + @Override + public ListMaintenanceRunsRequest.Builder get() { + return ListMaintenanceRunsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaintenanceRunsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceRunsRequest.Builder>, + ListMaintenanceRunsRequest>() { + @Override + public ListMaintenanceRunsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceRunsRequest.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< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse>() { + @Override + public ListMaintenanceRunsResponse apply(ListMaintenanceRunsRequest request) { + return client.listMaintenanceRuns(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datacc.model.MaintenanceRunSummary} objects contained in responses from the + * listMaintenanceRuns 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.datacc.model.MaintenanceRunSummary} objects contained in responses + * received from the service. + */ + public Iterable + listMaintenanceRunsRecordIterator(final ListMaintenanceRunsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMaintenanceRunsRequest.Builder, + ListMaintenanceRunsRequest, + ListMaintenanceRunsResponse, + com.oracle.bmc.datacc.model.MaintenanceRunSummary>( + new java.util.function.Supplier() { + @Override + public ListMaintenanceRunsRequest.Builder get() { + return ListMaintenanceRunsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaintenanceRunsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceRunsRequest.Builder>, + ListMaintenanceRunsRequest>() { + @Override + public ListMaintenanceRunsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceRunsRequest.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< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse>() { + @Override + public ListMaintenanceRunsResponse apply(ListMaintenanceRunsRequest request) { + return client.listMaintenanceRuns(request); + } + }, + new java.util.function.Function< + ListMaintenanceRunsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListMaintenanceRunsResponse response) { + return response.getMaintenanceRunCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listVmClusterNetworks 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 listVmClusterNetworksResponseIterator( + final ListVmClusterNetworksRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListVmClusterNetworksRequest.Builder, + ListVmClusterNetworksRequest, + ListVmClusterNetworksResponse>( + new java.util.function.Supplier() { + @Override + public ListVmClusterNetworksRequest.Builder get() { + return ListVmClusterNetworksRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVmClusterNetworksResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmClusterNetworksRequest.Builder>, + ListVmClusterNetworksRequest>() { + @Override + public ListVmClusterNetworksRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmClusterNetworksRequest.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< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse>() { + @Override + public ListVmClusterNetworksResponse apply( + ListVmClusterNetworksRequest request) { + return client.listVmClusterNetworks(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datacc.model.VmClusterNetworkSummary} objects contained in responses from the + * listVmClusterNetworks 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.datacc.model.VmClusterNetworkSummary} objects contained in responses + * received from the service. + */ + public Iterable + listVmClusterNetworksRecordIterator(final ListVmClusterNetworksRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListVmClusterNetworksRequest.Builder, + ListVmClusterNetworksRequest, + ListVmClusterNetworksResponse, + com.oracle.bmc.datacc.model.VmClusterNetworkSummary>( + new java.util.function.Supplier() { + @Override + public ListVmClusterNetworksRequest.Builder get() { + return ListVmClusterNetworksRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVmClusterNetworksResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmClusterNetworksRequest.Builder>, + ListVmClusterNetworksRequest>() { + @Override + public ListVmClusterNetworksRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmClusterNetworksRequest.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< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse>() { + @Override + public ListVmClusterNetworksResponse apply( + ListVmClusterNetworksRequest request) { + return client.listVmClusterNetworks(request); + } + }, + new java.util.function.Function< + ListVmClusterNetworksResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListVmClusterNetworksResponse response) { + return response.getVmClusterNetworkCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listVmInstances 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 listVmInstancesResponseIterator( + final ListVmInstancesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListVmInstancesRequest.Builder, ListVmInstancesRequest, ListVmInstancesResponse>( + new java.util.function.Supplier() { + @Override + public ListVmInstancesRequest.Builder get() { + return ListVmInstancesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVmInstancesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmInstancesRequest.Builder>, + ListVmInstancesRequest>() { + @Override + public ListVmInstancesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmInstancesRequest.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 ListVmInstancesResponse apply(ListVmInstancesRequest request) { + return client.listVmInstances(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datacc.model.VmInstanceSummary} objects contained in responses from the + * listVmInstances 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.datacc.model.VmInstanceSummary} objects contained in responses received + * from the service. + */ + public Iterable listVmInstancesRecordIterator( + final ListVmInstancesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListVmInstancesRequest.Builder, + ListVmInstancesRequest, + ListVmInstancesResponse, + com.oracle.bmc.datacc.model.VmInstanceSummary>( + new java.util.function.Supplier() { + @Override + public ListVmInstancesRequest.Builder get() { + return ListVmInstancesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVmInstancesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmInstancesRequest.Builder>, + ListVmInstancesRequest>() { + @Override + public ListVmInstancesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmInstancesRequest.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 ListVmInstancesResponse apply(ListVmInstancesRequest request) { + return client.listVmInstances(request); + } + }, + new java.util.function.Function< + ListVmInstancesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListVmInstancesResponse response) { + return response.getVmInstanceCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestErrors operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestErrorsResponseIterator( + final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestErrorsRequest.Builder, + ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datacc.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.datacc.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.datacc.model.WorkRequestError>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new java.util.function.Function< + ListWorkRequestErrorsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestErrorsResponse response) { + return response.getWorkRequestErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestLogs operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestLogsResponseIterator( + final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestLogsRequest.Builder, + ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datacc.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.datacc.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.datacc.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>() { + @Override + public java.util.List 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.datacc.model.WorkRequest} 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.datacc.model.WorkRequest} 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.datacc.model.WorkRequest>( + 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>() { + @Override + public java.util.List apply( + ListWorkRequestsResponse response) { + return response.getWorkRequestCollection().getItems(); + } + }); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraWaiters.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraWaiters.java new file mode 100644 index 00000000000..d5e1da31da2 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraWaiters.java @@ -0,0 +1,612 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc; + +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of Baseinfra. + * + *

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: 20251101") +public class BaseinfraWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final Baseinfra client; + + public BaseinfraWaiters( + java.util.concurrent.ExecutorService executorService, Baseinfra 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 targetState the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forInfrastructure( + GetInfrastructureRequest request, + com.oracle.bmc.datacc.model.InfrastructureLifecycleState... 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 forInfrastructure( + 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 + forInfrastructure( + GetInfrastructureRequest request, + com.oracle.bmc.datacc.model.InfrastructureLifecycleState 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 forInfrastructure( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forInfrastructure( + GetInfrastructureRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datacc.model.InfrastructureLifecycleState... 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 forInfrastructure( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Infrastructure. + private com.oracle.bmc.waiter.Waiter + forInfrastructure( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetInfrastructureRequest request, + final com.oracle.bmc.datacc.model.InfrastructureLifecycleState... + 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< + GetInfrastructureRequest, GetInfrastructureResponse>() { + @Override + public GetInfrastructureResponse apply( + GetInfrastructureRequest request) { + return client.getInfrastructure(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetInfrastructureResponse response) { + return targetStatesSet.contains( + response.getInfrastructure().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datacc.model.InfrastructureLifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + forMaintenanceExecution( + GetMaintenanceExecutionRequest request, + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState... 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 forMaintenanceExecution( + 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< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + forMaintenanceExecution( + GetMaintenanceExecutionRequest request, + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState 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 forMaintenanceExecution( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + forMaintenanceExecution( + GetMaintenanceExecutionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState... 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 forMaintenanceExecution( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for MaintenanceExecution. + private com.oracle.bmc.waiter.Waiter< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + forMaintenanceExecution( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetMaintenanceExecutionRequest request, + final com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState... + 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< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse>() { + @Override + public GetMaintenanceExecutionResponse apply( + GetMaintenanceExecutionRequest request) { + return client.getMaintenanceExecution(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetMaintenanceExecutionResponse response) { + return targetStatesSet.contains( + response.getMaintenanceExecution().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forMaintenanceRun( + GetMaintenanceRunRequest request, + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState... 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. + * + * @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.datacc.model.MaintenanceRunLifecycleState 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 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.datacc.model.MaintenanceRunLifecycleState... 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.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.datacc.model.MaintenanceRunLifecycleState... + 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.datacc.model.MaintenanceRunLifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forVmClusterNetwork( + GetVmClusterNetworkRequest request, + com.oracle.bmc.datacc.model.VmClusterNetworkLifecycleState... 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.datacc.model.VmClusterNetworkLifecycleState 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 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.datacc.model.VmClusterNetworkLifecycleState... 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.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.datacc.model.VmClusterNetworkLifecycleState... + 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.datacc.model.VmClusterNetworkLifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forVmInstance( + GetVmInstanceRequest request, + com.oracle.bmc.datacc.model.VmInstanceLifecycleState... 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 forVmInstance( + 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 forVmInstance( + GetVmInstanceRequest request, + com.oracle.bmc.datacc.model.VmInstanceLifecycleState 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 forVmInstance( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forVmInstance( + GetVmInstanceRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datacc.model.VmInstanceLifecycleState... 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 forVmInstance( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VmInstance. + private com.oracle.bmc.waiter.Waiter forVmInstance( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVmInstanceRequest request, + final com.oracle.bmc.datacc.model.VmInstanceLifecycleState... 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< + GetVmInstanceRequest, GetVmInstanceResponse>() { + @Override + public GetVmInstanceResponse apply(GetVmInstanceRequest request) { + return client.getVmInstance(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVmInstanceResponse response) { + return targetStatesSet.contains( + response.getVmInstance().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datacc.model.VmInstanceLifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. + * + * @param request the request to send + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest(GetWorkRequestRequest request) { + return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + return forWorkRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request); + } + + // Helper method to create a new Waiter for WorkRequest. + private com.oracle.bmc.waiter.Waiter + forWorkRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetWorkRequestRequest request) { + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/AcfsCapacityDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/AcfsCapacityDetails.java new file mode 100644 index 00000000000..b1cbe28b3ee --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/AcfsCapacityDetails.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating + * local storage for VM Clusters and application VMs.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AcfsCapacityDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AcfsCapacityDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"totalSpaceInGbs", "freeSpaceInGbs"}) + public AcfsCapacityDetails(Double totalSpaceInGbs, Double freeSpaceInGbs) { + super(); + this.totalSpaceInGbs = totalSpaceInGbs; + this.freeSpaceInGbs = freeSpaceInGbs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The total amount of logical disk space available, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSpaceInGbs") + private Double totalSpaceInGbs; + + /** + * The total amount of logical disk space available, in gigabytes (GB). + * + * @param totalSpaceInGbs the value to set + * @return this builder + */ + public Builder totalSpaceInGbs(Double totalSpaceInGbs) { + this.totalSpaceInGbs = totalSpaceInGbs; + this.__explicitlySet__.add("totalSpaceInGbs"); + return this; + } + /** + * The total amount of logical disk space that is currently available for use, in gigabytes + * (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeSpaceInGbs") + private Double freeSpaceInGbs; + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes + * (GB). + * + * @param freeSpaceInGbs the value to set + * @return this builder + */ + public Builder freeSpaceInGbs(Double freeSpaceInGbs) { + this.freeSpaceInGbs = freeSpaceInGbs; + this.__explicitlySet__.add("freeSpaceInGbs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AcfsCapacityDetails build() { + AcfsCapacityDetails model = + new AcfsCapacityDetails(this.totalSpaceInGbs, this.freeSpaceInGbs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AcfsCapacityDetails model) { + if (model.wasPropertyExplicitlySet("totalSpaceInGbs")) { + this.totalSpaceInGbs(model.getTotalSpaceInGbs()); + } + if (model.wasPropertyExplicitlySet("freeSpaceInGbs")) { + this.freeSpaceInGbs(model.getFreeSpaceInGbs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The total amount of logical disk space available, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSpaceInGbs") + private final Double totalSpaceInGbs; + + /** + * The total amount of logical disk space available, in gigabytes (GB). + * + * @return the value + */ + public Double getTotalSpaceInGbs() { + return totalSpaceInGbs; + } + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes + * (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeSpaceInGbs") + private final Double freeSpaceInGbs; + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes + * (GB). + * + * @return the value + */ + public Double getFreeSpaceInGbs() { + return freeSpaceInGbs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AcfsCapacityDetails("); + sb.append("super=").append(super.toString()); + sb.append("totalSpaceInGbs=").append(String.valueOf(this.totalSpaceInGbs)); + sb.append(", freeSpaceInGbs=").append(String.valueOf(this.freeSpaceInGbs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AcfsCapacityDetails)) { + return false; + } + + AcfsCapacityDetails other = (AcfsCapacityDetails) o; + return java.util.Objects.equals(this.totalSpaceInGbs, other.totalSpaceInGbs) + && java.util.Objects.equals(this.freeSpaceInGbs, other.freeSpaceInGbs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.totalSpaceInGbs == null ? 43 : this.totalSpaceInGbs.hashCode()); + result = + (result * PRIME) + + (this.freeSpaceInGbs == null ? 43 : this.freeSpaceInGbs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActionType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActionType.java new file mode 100644 index 00000000000..99fd6acf9f4 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActionType.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Possible types of actions. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Related("RELATED"), + CanceledCreate("CANCELED_CREATE"), + CanceledUpdate("CANCELED_UPDATE"), + CanceledDelete("CANCELED_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(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-datacc/src/main/java/com/oracle/bmc/datacc/model/ActivateInfrastructureDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActivateInfrastructureDetails.java new file mode 100644 index 00000000000..22dc10e8d8f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActivateInfrastructureDetails.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * The activation details for the Database 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ActivateInfrastructureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ActivateInfrastructureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"activationZipFile"}) + public ActivateInfrastructureDetails(byte[] activationZipFile) { + super(); + this.activationZipFile = activationZipFile; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The activation zip file. */ + @com.fasterxml.jackson.annotation.JsonProperty("activationZipFile") + private byte[] activationZipFile; + + /** + * The activation zip file. + * + * @param activationZipFile the value to set + * @return this builder + */ + public Builder activationZipFile(byte[] activationZipFile) { + this.activationZipFile = activationZipFile; + this.__explicitlySet__.add("activationZipFile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ActivateInfrastructureDetails build() { + ActivateInfrastructureDetails model = + new ActivateInfrastructureDetails(this.activationZipFile); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActivateInfrastructureDetails model) { + if (model.wasPropertyExplicitlySet("activationZipFile")) { + this.activationZipFile(model.getActivationZipFile()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The activation zip file. */ + @com.fasterxml.jackson.annotation.JsonProperty("activationZipFile") + private final byte[] activationZipFile; + + /** + * The activation zip file. + * + * @return the value + */ + public byte[] getActivationZipFile() { + return activationZipFile; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ActivateInfrastructureDetails("); + sb.append("super=").append(super.toString()); + sb.append("activationZipFile=") + .append( + (includeByteArrayContents + ? java.util.Arrays.toString(this.activationZipFile) + : (String.valueOf(this.activationZipFile) + + (this.activationZipFile != null + ? " (byte[" + this.activationZipFile.length + "])" + : "")))); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateInfrastructureDetails)) { + return false; + } + + ActivateInfrastructureDetails other = (ActivateInfrastructureDetails) o; + return java.util.Arrays.equals(this.activationZipFile, other.activationZipFile) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + java.util.Arrays.hashCode(this.activationZipFile); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/BasePatchingMode.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/BasePatchingMode.java new file mode 100644 index 00000000000..d7b802b8c48 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/BasePatchingMode.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Cloud Database Infrastructure node patching method. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum BasePatchingMode implements com.oracle.bmc.http.internal.BmcEnum { + Rolling("ROLLING"), + Nonrolling("NONROLLING"), + + /** + * 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(BasePatchingMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BasePatchingMode v : BasePatchingMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BasePatchingMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BasePatchingMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BasePatchingMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeInfrastructureCompartmentDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeInfrastructureCompartmentDetails.java new file mode 100644 index 00000000000..8ec3699e3e6 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeInfrastructureCompartmentDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Updated compartment 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeInfrastructureCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeInfrastructureCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeInfrastructureCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the Database Infrastructure Cloud@Customer is moving. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the Database Infrastructure Cloud@Customer is moving. + * + * @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 ChangeInfrastructureCompartmentDetails build() { + ChangeInfrastructureCompartmentDetails model = + new ChangeInfrastructureCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeInfrastructureCompartmentDetails 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the Database Infrastructure Cloud@Customer is moving. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the Database Infrastructure Cloud@Customer is moving. + * + * @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("ChangeInfrastructureCompartmentDetails("); + 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 ChangeInfrastructureCompartmentDetails)) { + return false; + } + + ChangeInfrastructureCompartmentDetails other = (ChangeInfrastructureCompartmentDetails) 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-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmClusterNetworkCompartmentDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmClusterNetworkCompartmentDetails.java new file mode 100644 index 00000000000..0775e1d94af --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmClusterNetworkCompartmentDetails.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Updated compartment 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeVmClusterNetworkCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeVmClusterNetworkCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeVmClusterNetworkCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the VM cluster network is moving. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the VM cluster network is moving. + * + * @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 ChangeVmClusterNetworkCompartmentDetails build() { + ChangeVmClusterNetworkCompartmentDetails model = + new ChangeVmClusterNetworkCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeVmClusterNetworkCompartmentDetails 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the VM cluster network is moving. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the VM cluster network is moving. + * + * @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("ChangeVmClusterNetworkCompartmentDetails("); + 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 ChangeVmClusterNetworkCompartmentDetails)) { + return false; + } + + ChangeVmClusterNetworkCompartmentDetails other = + (ChangeVmClusterNetworkCompartmentDetails) 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-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmInstanceCompartmentDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmInstanceCompartmentDetails.java new file mode 100644 index 00000000000..38717b1e978 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmInstanceCompartmentDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Updated compartment 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeVmInstanceCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeVmInstanceCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeVmInstanceCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the VM instance is moving. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the VM instance is moving. + * + * @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 ChangeVmInstanceCompartmentDetails build() { + ChangeVmInstanceCompartmentDetails model = + new ChangeVmInstanceCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeVmInstanceCompartmentDetails 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the VM instance is moving. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which the VM instance is moving. + * + * @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("ChangeVmInstanceCompartmentDetails("); + 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 ChangeVmInstanceCompartmentDetails)) { + return false; + } + + ChangeVmInstanceCompartmentDetails other = (ChangeVmInstanceCompartmentDetails) 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-datacc/src/main/java/com/oracle/bmc/datacc/model/ComputeCapacityDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ComputeCapacityDetails.java new file mode 100644 index 00000000000..8b91d1ec9de --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ComputeCapacityDetails.java @@ -0,0 +1,429 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Capacity details of the Database 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComputeCapacityDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ComputeCapacityDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "totalCores", + "allocatedCores", + "reservedCores", + "availableCores", + "totalMemoryInGBs", + "usedMemoryInGBs", + "reservedMemoryInGBs", + "availableMemoryInGBs" + }) + public ComputeCapacityDetails( + Integer totalCores, + Integer allocatedCores, + Integer reservedCores, + Integer availableCores, + Long totalMemoryInGBs, + Long usedMemoryInGBs, + Long reservedMemoryInGBs, + Long availableMemoryInGBs) { + super(); + this.totalCores = totalCores; + this.allocatedCores = allocatedCores; + this.reservedCores = reservedCores; + this.availableCores = availableCores; + this.totalMemoryInGBs = totalMemoryInGBs; + this.usedMemoryInGBs = usedMemoryInGBs; + this.reservedMemoryInGBs = reservedMemoryInGBs; + this.availableMemoryInGBs = availableMemoryInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Total CPU cores count. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalCores") + private Integer totalCores; + + /** + * Total CPU cores count. + * + * @param totalCores the value to set + * @return this builder + */ + public Builder totalCores(Integer totalCores) { + this.totalCores = totalCores; + this.__explicitlySet__.add("totalCores"); + return this; + } + /** Total CPU cores count allocated.. */ + @com.fasterxml.jackson.annotation.JsonProperty("allocatedCores") + private Integer allocatedCores; + + /** + * Total CPU cores count allocated.. + * + * @param allocatedCores the value to set + * @return this builder + */ + public Builder allocatedCores(Integer allocatedCores) { + this.allocatedCores = allocatedCores; + this.__explicitlySet__.add("allocatedCores"); + return this; + } + /** Total Reserved CPU cores count. */ + @com.fasterxml.jackson.annotation.JsonProperty("reservedCores") + private Integer reservedCores; + + /** + * Total Reserved CPU cores count. + * + * @param reservedCores the value to set + * @return this builder + */ + public Builder reservedCores(Integer reservedCores) { + this.reservedCores = reservedCores; + this.__explicitlySet__.add("reservedCores"); + return this; + } + /** Total available CPU cores count. */ + @com.fasterxml.jackson.annotation.JsonProperty("availableCores") + private Integer availableCores; + + /** + * Total available CPU cores count. + * + * @param availableCores the value to set + * @return this builder + */ + public Builder availableCores(Integer availableCores) { + this.availableCores = availableCores; + this.__explicitlySet__.add("availableCores"); + return this; + } + /** Total memory allocated, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("totalMemoryInGBs") + private Long totalMemoryInGBs; + + /** + * Total memory allocated, in gigabytes (GB). + * + * @param totalMemoryInGBs the value to set + * @return this builder + */ + public Builder totalMemoryInGBs(Long totalMemoryInGBs) { + this.totalMemoryInGBs = totalMemoryInGBs; + this.__explicitlySet__.add("totalMemoryInGBs"); + return this; + } + /** + * Memory allocated to Oracle database virtual machine cluster or Instance, in gigabytes + * (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("usedMemoryInGBs") + private Long usedMemoryInGBs; + + /** + * Memory allocated to Oracle database virtual machine cluster or Instance, in gigabytes + * (GB). + * + * @param usedMemoryInGBs the value to set + * @return this builder + */ + public Builder usedMemoryInGBs(Long usedMemoryInGBs) { + this.usedMemoryInGBs = usedMemoryInGBs; + this.__explicitlySet__.add("usedMemoryInGBs"); + return this; + } + /** Reserved memory, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("reservedMemoryInGBs") + private Long reservedMemoryInGBs; + + /** + * Reserved memory, in gigabytes (GB). + * + * @param reservedMemoryInGBs the value to set + * @return this builder + */ + public Builder reservedMemoryInGBs(Long reservedMemoryInGBs) { + this.reservedMemoryInGBs = reservedMemoryInGBs; + this.__explicitlySet__.add("reservedMemoryInGBs"); + return this; + } + /** Available memory, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("availableMemoryInGBs") + private Long availableMemoryInGBs; + + /** + * Available memory, in gigabytes (GB). + * + * @param availableMemoryInGBs the value to set + * @return this builder + */ + public Builder availableMemoryInGBs(Long availableMemoryInGBs) { + this.availableMemoryInGBs = availableMemoryInGBs; + this.__explicitlySet__.add("availableMemoryInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeCapacityDetails build() { + ComputeCapacityDetails model = + new ComputeCapacityDetails( + this.totalCores, + this.allocatedCores, + this.reservedCores, + this.availableCores, + this.totalMemoryInGBs, + this.usedMemoryInGBs, + this.reservedMemoryInGBs, + this.availableMemoryInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeCapacityDetails model) { + if (model.wasPropertyExplicitlySet("totalCores")) { + this.totalCores(model.getTotalCores()); + } + if (model.wasPropertyExplicitlySet("allocatedCores")) { + this.allocatedCores(model.getAllocatedCores()); + } + if (model.wasPropertyExplicitlySet("reservedCores")) { + this.reservedCores(model.getReservedCores()); + } + if (model.wasPropertyExplicitlySet("availableCores")) { + this.availableCores(model.getAvailableCores()); + } + if (model.wasPropertyExplicitlySet("totalMemoryInGBs")) { + this.totalMemoryInGBs(model.getTotalMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("usedMemoryInGBs")) { + this.usedMemoryInGBs(model.getUsedMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("reservedMemoryInGBs")) { + this.reservedMemoryInGBs(model.getReservedMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("availableMemoryInGBs")) { + this.availableMemoryInGBs(model.getAvailableMemoryInGBs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Total CPU cores count. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalCores") + private final Integer totalCores; + + /** + * Total CPU cores count. + * + * @return the value + */ + public Integer getTotalCores() { + return totalCores; + } + + /** Total CPU cores count allocated.. */ + @com.fasterxml.jackson.annotation.JsonProperty("allocatedCores") + private final Integer allocatedCores; + + /** + * Total CPU cores count allocated.. + * + * @return the value + */ + public Integer getAllocatedCores() { + return allocatedCores; + } + + /** Total Reserved CPU cores count. */ + @com.fasterxml.jackson.annotation.JsonProperty("reservedCores") + private final Integer reservedCores; + + /** + * Total Reserved CPU cores count. + * + * @return the value + */ + public Integer getReservedCores() { + return reservedCores; + } + + /** Total available CPU cores count. */ + @com.fasterxml.jackson.annotation.JsonProperty("availableCores") + private final Integer availableCores; + + /** + * Total available CPU cores count. + * + * @return the value + */ + public Integer getAvailableCores() { + return availableCores; + } + + /** Total memory allocated, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("totalMemoryInGBs") + private final Long totalMemoryInGBs; + + /** + * Total memory allocated, in gigabytes (GB). + * + * @return the value + */ + public Long getTotalMemoryInGBs() { + return totalMemoryInGBs; + } + + /** + * Memory allocated to Oracle database virtual machine cluster or Instance, in gigabytes (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("usedMemoryInGBs") + private final Long usedMemoryInGBs; + + /** + * Memory allocated to Oracle database virtual machine cluster or Instance, in gigabytes (GB). + * + * @return the value + */ + public Long getUsedMemoryInGBs() { + return usedMemoryInGBs; + } + + /** Reserved memory, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("reservedMemoryInGBs") + private final Long reservedMemoryInGBs; + + /** + * Reserved memory, in gigabytes (GB). + * + * @return the value + */ + public Long getReservedMemoryInGBs() { + return reservedMemoryInGBs; + } + + /** Available memory, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("availableMemoryInGBs") + private final Long availableMemoryInGBs; + + /** + * Available memory, in gigabytes (GB). + * + * @return the value + */ + public Long getAvailableMemoryInGBs() { + return availableMemoryInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComputeCapacityDetails("); + sb.append("super=").append(super.toString()); + sb.append("totalCores=").append(String.valueOf(this.totalCores)); + sb.append(", allocatedCores=").append(String.valueOf(this.allocatedCores)); + sb.append(", reservedCores=").append(String.valueOf(this.reservedCores)); + sb.append(", availableCores=").append(String.valueOf(this.availableCores)); + sb.append(", totalMemoryInGBs=").append(String.valueOf(this.totalMemoryInGBs)); + sb.append(", usedMemoryInGBs=").append(String.valueOf(this.usedMemoryInGBs)); + sb.append(", reservedMemoryInGBs=").append(String.valueOf(this.reservedMemoryInGBs)); + sb.append(", availableMemoryInGBs=").append(String.valueOf(this.availableMemoryInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComputeCapacityDetails)) { + return false; + } + + ComputeCapacityDetails other = (ComputeCapacityDetails) o; + return java.util.Objects.equals(this.totalCores, other.totalCores) + && java.util.Objects.equals(this.allocatedCores, other.allocatedCores) + && java.util.Objects.equals(this.reservedCores, other.reservedCores) + && java.util.Objects.equals(this.availableCores, other.availableCores) + && java.util.Objects.equals(this.totalMemoryInGBs, other.totalMemoryInGBs) + && java.util.Objects.equals(this.usedMemoryInGBs, other.usedMemoryInGBs) + && java.util.Objects.equals(this.reservedMemoryInGBs, other.reservedMemoryInGBs) + && java.util.Objects.equals(this.availableMemoryInGBs, other.availableMemoryInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.totalCores == null ? 43 : this.totalCores.hashCode()); + result = + (result * PRIME) + + (this.allocatedCores == null ? 43 : this.allocatedCores.hashCode()); + result = + (result * PRIME) + + (this.reservedCores == null ? 43 : this.reservedCores.hashCode()); + result = + (result * PRIME) + + (this.availableCores == null ? 43 : this.availableCores.hashCode()); + result = + (result * PRIME) + + (this.totalMemoryInGBs == null ? 43 : this.totalMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.usedMemoryInGBs == null ? 43 : this.usedMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.reservedMemoryInGBs == null + ? 43 + : this.reservedMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.availableMemoryInGBs == null + ? 43 + : this.availableMemoryInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateInfrastructureDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateInfrastructureDetails.java new file mode 100644 index 00000000000..873596ded01 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateInfrastructureDetails.java @@ -0,0 +1,1231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Request to create Database Infrastructure 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateInfrastructureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateInfrastructureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "description", + "compartmentId", + "displayName", + "systemModel", + "shape", + "cloudControlPlaneServer1", + "cloudControlPlaneServer2", + "netmask", + "gateway", + "adminNetworkcidr", + "dataDiskPercentage", + "contacts", + "dnsServers", + "ntpServers", + "clientNetworkBondingMode", + "backupNetworkBondingMode", + "cpsNetworkBondingMode", + "clientNetworkBondingInterface", + "backupNetworkBondingInterface", + "cpsNetworkBondingInterface", + "acfsFileSystemStorageInGbs", + "corporateProxy", + "vlanId", + "maintenanceWindow", + "freeformTags", + "definedTags" + }) + public CreateInfrastructureDetails( + String description, + String compartmentId, + String displayName, + SystemModelEnum systemModel, + ShapeEnum shape, + String cloudControlPlaneServer1, + String cloudControlPlaneServer2, + String netmask, + String gateway, + String adminNetworkcidr, + Integer dataDiskPercentage, + java.util.List contacts, + java.util.List dnsServers, + java.util.List ntpServers, + NetworkBondingMode clientNetworkBondingMode, + NetworkBondingMode backupNetworkBondingMode, + NetworkBondingMode cpsNetworkBondingMode, + NetworkBondingInterfaceEnum clientNetworkBondingInterface, + NetworkBondingInterfaceEnum backupNetworkBondingInterface, + NetworkBondingInterfaceEnum cpsNetworkBondingInterface, + Double acfsFileSystemStorageInGbs, + String corporateProxy, + String vlanId, + MaintenanceWindow maintenanceWindow, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.description = description; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.systemModel = systemModel; + this.shape = shape; + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.netmask = netmask; + this.gateway = gateway; + this.adminNetworkcidr = adminNetworkcidr; + this.dataDiskPercentage = dataDiskPercentage; + this.contacts = contacts; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.corporateProxy = corporateProxy; + this.vlanId = vlanId; + this.maintenanceWindow = maintenanceWindow; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Database Infrastructure description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Database Infrastructure description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be + * unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Database Infrastructure. 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; + } + /** + * Database Infrastructure System Model specification. The system model determines the model + * of the Database Infrastructure hardware to be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model + * of the Database Infrastructure hardware to be used. + * + * @param systemModel the value to set + * @return this builder + */ + public Builder systemModel(SystemModelEnum systemModel) { + this.systemModel = systemModel; + this.__explicitlySet__.add("systemModel"); + return this; + } + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, + * storage, and memory resources allocated to the instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, + * storage, and memory resources allocated to the instance. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(ShapeEnum shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** The IP address for the first control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * + * @param cloudControlPlaneServer1 the value to set + * @return this builder + */ + public Builder cloudControlPlaneServer1(String cloudControlPlaneServer1) { + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.__explicitlySet__.add("cloudControlPlaneServer1"); + return this; + } + /** The IP address for the second control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * + * @param cloudControlPlaneServer2 the value to set + * @return this builder + */ + public Builder cloudControlPlaneServer2(String cloudControlPlaneServer2) { + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.__explicitlySet__.add("cloudControlPlaneServer2"); + return this; + } + /** The netmask for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask for the control plane network. + * + * @param netmask the value to set + * @return this builder + */ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** The gateway for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway for the control plane network. + * + * @param gateway the value to set + * @return this builder + */ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The CIDR block for the system network. The system network is a private network in + * Database Infrastructure and is not connected to your corporate network. The system + * network is used for storage (ASM) traffic, high-performance interconnect traffic and + * administration of infrastructure components. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in + * Database Infrastructure and is not connected to your corporate network. The system + * network is used for storage (ASM) traffic, high-performance interconnect traffic and + * administration of infrastructure components. + * + * @param adminNetworkcidr the value to set + * @return this builder + */ + public Builder adminNetworkcidr(String adminNetworkcidr) { + this.adminNetworkcidr = adminNetworkcidr; + this.__explicitlySet__.add("adminNetworkcidr"); + return this; + } + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get + * assiged to RECO disk group + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get + * assiged to RECO disk group + * + * @param dataDiskPercentage the value to set + * @return this builder + */ + public Builder dataDiskPercentage(Integer dataDiskPercentage) { + this.dataDiskPercentage = dataDiskPercentage; + this.__explicitlySet__.add("dataDiskPercentage"); + return this; + } + /** The list of contacts for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * + * @param contacts the value to set + * @return this builder + */ + public Builder contacts(java.util.List contacts) { + this.contacts = contacts; + this.__explicitlySet__.add("contacts"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** The network bonding mode for Client networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * + * @param clientNetworkBondingMode the value to set + * @return this builder + */ + public Builder clientNetworkBondingMode(NetworkBondingMode clientNetworkBondingMode) { + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.__explicitlySet__.add("clientNetworkBondingMode"); + return this; + } + /** The network bonding mode for Backup networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * + * @param backupNetworkBondingMode the value to set + * @return this builder + */ + public Builder backupNetworkBondingMode(NetworkBondingMode backupNetworkBondingMode) { + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.__explicitlySet__.add("backupNetworkBondingMode"); + return this; + } + /** The network bonding mode for CPS networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * + * @param cpsNetworkBondingMode the value to set + * @return this builder + */ + public Builder cpsNetworkBondingMode(NetworkBondingMode cpsNetworkBondingMode) { + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.__explicitlySet__.add("cpsNetworkBondingMode"); + return this; + } + /** The network bonding interface for client network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * + * @param clientNetworkBondingInterface the value to set + * @return this builder + */ + public Builder clientNetworkBondingInterface( + NetworkBondingInterfaceEnum clientNetworkBondingInterface) { + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.__explicitlySet__.add("clientNetworkBondingInterface"); + return this; + } + /** The network bonding interface for backup network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * + * @param backupNetworkBondingInterface the value to set + * @return this builder + */ + public Builder backupNetworkBondingInterface( + NetworkBondingInterfaceEnum backupNetworkBondingInterface) { + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.__explicitlySet__.add("backupNetworkBondingInterface"); + return this; + } + /** The network bonding interface for CPS network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * + * @param cpsNetworkBondingInterface the value to set + * @return this builder + */ + public Builder cpsNetworkBondingInterface( + NetworkBondingInterfaceEnum cpsNetworkBondingInterface) { + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.__explicitlySet__.add("cpsNetworkBondingInterface"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + * + * @param acfsFileSystemStorageInGbs the value to set + * @return this builder + */ + public Builder acfsFileSystemStorageInGbs(Double acfsFileSystemStorageInGbs) { + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemStorageInGbs"); + return this; + } + /** + * The corporate network proxy for access to the control plane network. Oracle recommends + * using an HTTPS proxy when possible for enhanced security. + */ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends + * using an HTTPS proxy when possible for enhanced security. + * + * @param corporateProxy the value to set + * @return this builder + */ + public Builder corporateProxy(String corporateProxy) { + this.corporateProxy = corporateProxy; + this.__explicitlySet__.add("corporateProxy"); + return this; + } + /** The CPS network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The CPS network VLAN ID. + * + * @param vlanId the value to set + * @return this builder + */ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private MaintenanceWindow maintenanceWindow; + + public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + this.__explicitlySet__.add("maintenanceWindow"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateInfrastructureDetails build() { + CreateInfrastructureDetails model = + new CreateInfrastructureDetails( + this.description, + this.compartmentId, + this.displayName, + this.systemModel, + this.shape, + this.cloudControlPlaneServer1, + this.cloudControlPlaneServer2, + this.netmask, + this.gateway, + this.adminNetworkcidr, + this.dataDiskPercentage, + this.contacts, + this.dnsServers, + this.ntpServers, + this.clientNetworkBondingMode, + this.backupNetworkBondingMode, + this.cpsNetworkBondingMode, + this.clientNetworkBondingInterface, + this.backupNetworkBondingInterface, + this.cpsNetworkBondingInterface, + this.acfsFileSystemStorageInGbs, + this.corporateProxy, + this.vlanId, + this.maintenanceWindow, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateInfrastructureDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("systemModel")) { + this.systemModel(model.getSystemModel()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer1")) { + this.cloudControlPlaneServer1(model.getCloudControlPlaneServer1()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer2")) { + this.cloudControlPlaneServer2(model.getCloudControlPlaneServer2()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("adminNetworkcidr")) { + this.adminNetworkcidr(model.getAdminNetworkcidr()); + } + if (model.wasPropertyExplicitlySet("dataDiskPercentage")) { + this.dataDiskPercentage(model.getDataDiskPercentage()); + } + if (model.wasPropertyExplicitlySet("contacts")) { + this.contacts(model.getContacts()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingMode")) { + this.clientNetworkBondingMode(model.getClientNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingMode")) { + this.backupNetworkBondingMode(model.getBackupNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingMode")) { + this.cpsNetworkBondingMode(model.getCpsNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingInterface")) { + this.clientNetworkBondingInterface(model.getClientNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingInterface")) { + this.backupNetworkBondingInterface(model.getBackupNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingInterface")) { + this.cpsNetworkBondingInterface(model.getCpsNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemStorageInGbs")) { + this.acfsFileSystemStorageInGbs(model.getAcfsFileSystemStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("corporateProxy")) { + this.corporateProxy(model.getCorporateProxy()); + } + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindow")) { + this.maintenanceWindow(model.getMaintenanceWindow()); + } + 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); + } + + /** Database Infrastructure description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Database Infrastructure description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Database Infrastructure System Model specification. The system model determines the model of + * the Database Infrastructure hardware to be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private final SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of + * the Database Infrastructure hardware to be used. + * + * @return the value + */ + public SystemModelEnum getSystemModel() { + return systemModel; + } + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, + * and memory resources allocated to the instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, + * and memory resources allocated to the instance. + * + * @return the value + */ + public ShapeEnum getShape() { + return shape; + } + + /** The IP address for the first control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private final String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * + * @return the value + */ + public String getCloudControlPlaneServer1() { + return cloudControlPlaneServer1; + } + + /** The IP address for the second control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private final String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * + * @return the value + */ + public String getCloudControlPlaneServer2() { + return cloudControlPlaneServer2; + } + + /** The netmask for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask for the control plane network. + * + * @return the value + */ + public String getNetmask() { + return netmask; + } + + /** The gateway for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway for the control plane network. + * + * @return the value + */ + public String getGateway() { + return gateway; + } + + /** + * The CIDR block for the system network. The system network is a private network in Database + * Infrastructure and is not connected to your corporate network. The system network is used for + * storage (ASM) traffic, high-performance interconnect traffic and administration of + * infrastructure components. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private final String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database + * Infrastructure and is not connected to your corporate network. The system network is used for + * storage (ASM) traffic, high-performance interconnect traffic and administration of + * infrastructure components. + * + * @return the value + */ + public String getAdminNetworkcidr() { + return adminNetworkcidr; + } + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged + * to RECO disk group + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private final Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged + * to RECO disk group + * + * @return the value + */ + public Integer getDataDiskPercentage() { + return dataDiskPercentage; + } + + /** The list of contacts for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private final java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * + * @return the value + */ + public java.util.List getContacts() { + return contacts; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** The network bonding mode for Client networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private final NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getClientNetworkBondingMode() { + return clientNetworkBondingMode; + } + + /** The network bonding mode for Backup networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private final NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getBackupNetworkBondingMode() { + return backupNetworkBondingMode; + } + + /** The network bonding mode for CPS networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private final NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getCpsNetworkBondingMode() { + return cpsNetworkBondingMode; + } + + /** The network bonding interface for client network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private final NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getClientNetworkBondingInterface() { + return clientNetworkBondingInterface; + } + + /** The network bonding interface for backup network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private final NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getBackupNetworkBondingInterface() { + return backupNetworkBondingInterface; + } + + /** The network bonding interface for CPS network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private final NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getCpsNetworkBondingInterface() { + return cpsNetworkBondingInterface; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private final Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + * + * @return the value + */ + public Double getAcfsFileSystemStorageInGbs() { + return acfsFileSystemStorageInGbs; + } + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using + * an HTTPS proxy when possible for enhanced security. + */ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private final String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using + * an HTTPS proxy when possible for enhanced security. + * + * @return the value + */ + public String getCorporateProxy() { + return corporateProxy; + } + + /** The CPS network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The CPS network VLAN ID. + * + * @return the value + */ + public String getVlanId() { + return vlanId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private final MaintenanceWindow maintenanceWindow; + + public MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateInfrastructureDetails("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", systemModel=").append(String.valueOf(this.systemModel)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", cloudControlPlaneServer1=") + .append(String.valueOf(this.cloudControlPlaneServer1)); + sb.append(", cloudControlPlaneServer2=") + .append(String.valueOf(this.cloudControlPlaneServer2)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", adminNetworkcidr=").append(String.valueOf(this.adminNetworkcidr)); + sb.append(", dataDiskPercentage=").append(String.valueOf(this.dataDiskPercentage)); + sb.append(", contacts=").append(String.valueOf(this.contacts)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", clientNetworkBondingMode=") + .append(String.valueOf(this.clientNetworkBondingMode)); + sb.append(", backupNetworkBondingMode=") + .append(String.valueOf(this.backupNetworkBondingMode)); + sb.append(", cpsNetworkBondingMode=").append(String.valueOf(this.cpsNetworkBondingMode)); + sb.append(", clientNetworkBondingInterface=") + .append(String.valueOf(this.clientNetworkBondingInterface)); + sb.append(", backupNetworkBondingInterface=") + .append(String.valueOf(this.backupNetworkBondingInterface)); + sb.append(", cpsNetworkBondingInterface=") + .append(String.valueOf(this.cpsNetworkBondingInterface)); + sb.append(", acfsFileSystemStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemStorageInGbs)); + sb.append(", corporateProxy=").append(String.valueOf(this.corporateProxy)); + sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + 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 CreateInfrastructureDetails)) { + return false; + } + + CreateInfrastructureDetails other = (CreateInfrastructureDetails) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.systemModel, other.systemModel) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals( + this.cloudControlPlaneServer1, other.cloudControlPlaneServer1) + && java.util.Objects.equals( + this.cloudControlPlaneServer2, other.cloudControlPlaneServer2) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.adminNetworkcidr, other.adminNetworkcidr) + && java.util.Objects.equals(this.dataDiskPercentage, other.dataDiskPercentage) + && java.util.Objects.equals(this.contacts, other.contacts) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals( + this.clientNetworkBondingMode, other.clientNetworkBondingMode) + && java.util.Objects.equals( + this.backupNetworkBondingMode, other.backupNetworkBondingMode) + && java.util.Objects.equals(this.cpsNetworkBondingMode, other.cpsNetworkBondingMode) + && java.util.Objects.equals( + this.clientNetworkBondingInterface, other.clientNetworkBondingInterface) + && java.util.Objects.equals( + this.backupNetworkBondingInterface, other.backupNetworkBondingInterface) + && java.util.Objects.equals( + this.cpsNetworkBondingInterface, other.cpsNetworkBondingInterface) + && java.util.Objects.equals( + this.acfsFileSystemStorageInGbs, other.acfsFileSystemStorageInGbs) + && java.util.Objects.equals(this.corporateProxy, other.corporateProxy) + && java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.systemModel == null ? 43 : this.systemModel.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer1 == null + ? 43 + : this.cloudControlPlaneServer1.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer2 == null + ? 43 + : this.cloudControlPlaneServer2.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = + (result * PRIME) + + (this.adminNetworkcidr == null ? 43 : this.adminNetworkcidr.hashCode()); + result = + (result * PRIME) + + (this.dataDiskPercentage == null + ? 43 + : this.dataDiskPercentage.hashCode()); + result = (result * PRIME) + (this.contacts == null ? 43 : this.contacts.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingMode == null + ? 43 + : this.clientNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingMode == null + ? 43 + : this.backupNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingMode == null + ? 43 + : this.cpsNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingInterface == null + ? 43 + : this.clientNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingInterface == null + ? 43 + : this.backupNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingInterface == null + ? 43 + : this.cpsNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemStorageInGbs == null + ? 43 + : this.acfsFileSystemStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.corporateProxy == null ? 43 : this.corporateProxy.hashCode()); + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.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-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmClusterNetworkDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmClusterNetworkDetails.java new file mode 100644 index 00000000000..7c565e21f52 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmClusterNetworkDetails.java @@ -0,0 +1,636 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Details for an VM cluster network.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateVmClusterNetworkDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateVmClusterNetworkDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "infrastructureId", + "displayName", + "nodeCount", + "scans", + "listenerPort", + "listenerPortSsl", + "dnsServers", + "ntpServers", + "vmNetworks", + "consumerType", + "freeformTags", + "definedTags" + }) + public CreateVmClusterNetworkDetails( + String compartmentId, + String infrastructureId, + String displayName, + Integer nodeCount, + java.util.List scans, + Integer listenerPort, + Integer listenerPortSsl, + java.util.List dnsServers, + java.util.List ntpServers, + java.util.List vmNetworks, + VmNetworkConsumerType consumerType, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.infrastructureId = infrastructureId; + this.displayName = displayName; + this.nodeCount = nodeCount; + this.scans = scans; + this.listenerPort = listenerPort; + this.listenerPortSsl = listenerPortSsl; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.vmNetworks = vmNetworks; + this.consumerType = consumerType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + * + * @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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the VM cluster network. 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; + } + /** Count of virtual machines in this VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * + * @param nodeCount the value to set + * @return this builder + */ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** The SCAN details. */ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private java.util.List scans; + + /** + * The SCAN details. + * + * @param scans the value to set + * @return this builder + */ + public Builder scans(java.util.List scans) { + this.scans = scans; + this.__explicitlySet__.add("scans"); + return this; + } + /** The listener TCP/IP port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener TCP/IP port. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** The listener TCP/IP SSL port. Default is 2484. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * + * @param listenerPortSsl the value to set + * @return this builder + */ + public Builder listenerPortSsl(Integer listenerPortSsl) { + this.listenerPortSsl = listenerPortSsl; + this.__explicitlySet__.add("listenerPortSsl"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** Details of the client and backup networks. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * + * @param vmNetworks the value to set + * @return this builder + */ + public Builder vmNetworks(java.util.List vmNetworks) { + this.vmNetworks = vmNetworks; + this.__explicitlySet__.add("vmNetworks"); + return this; + } + /** Consumer type for the VM cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * + * @param consumerType the value to set + * @return this builder + */ + public Builder consumerType(VmNetworkConsumerType consumerType) { + this.consumerType = consumerType; + this.__explicitlySet__.add("consumerType"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateVmClusterNetworkDetails build() { + CreateVmClusterNetworkDetails model = + new CreateVmClusterNetworkDetails( + this.compartmentId, + this.infrastructureId, + this.displayName, + this.nodeCount, + this.scans, + this.listenerPort, + this.listenerPortSsl, + this.dnsServers, + this.ntpServers, + this.vmNetworks, + this.consumerType, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateVmClusterNetworkDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("scans")) { + this.scans(model.getScans()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortSsl")) { + this.listenerPortSsl(model.getListenerPortSsl()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("vmNetworks")) { + this.vmNetworks(model.getVmNetworks()); + } + if (model.wasPropertyExplicitlySet("consumerType")) { + this.consumerType(model.getConsumerType()); + } + 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** The user-friendly name for the VM cluster network. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Count of virtual machines in this VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * + * @return the value + */ + public Integer getNodeCount() { + return nodeCount; + } + + /** The SCAN details. */ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private final java.util.List scans; + + /** + * The SCAN details. + * + * @return the value + */ + public java.util.List getScans() { + return scans; + } + + /** The listener TCP/IP port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener TCP/IP port. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** The listener TCP/IP SSL port. Default is 2484. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private final Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * + * @return the value + */ + public Integer getListenerPortSsl() { + return listenerPortSsl; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** Details of the client and backup networks. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private final java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * + * @return the value + */ + public java.util.List getVmNetworks() { + return vmNetworks; + } + + /** Consumer type for the VM cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private final VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * + * @return the value + */ + public VmNetworkConsumerType getConsumerType() { + return consumerType; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateVmClusterNetworkDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", scans=").append(String.valueOf(this.scans)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortSsl=").append(String.valueOf(this.listenerPortSsl)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", vmNetworks=").append(String.valueOf(this.vmNetworks)); + sb.append(", consumerType=").append(String.valueOf(this.consumerType)); + 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 CreateVmClusterNetworkDetails)) { + return false; + } + + CreateVmClusterNetworkDetails other = (CreateVmClusterNetworkDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.scans, other.scans) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortSsl, other.listenerPortSsl) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.vmNetworks, other.vmNetworks) + && java.util.Objects.equals(this.consumerType, other.consumerType) + && 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.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = (result * PRIME) + (this.scans == null ? 43 : this.scans.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortSsl == null ? 43 : this.listenerPortSsl.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.vmNetworks == null ? 43 : this.vmNetworks.hashCode()); + result = (result * PRIME) + (this.consumerType == null ? 43 : this.consumerType.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-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmInstanceDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmInstanceDetails.java new file mode 100644 index 00000000000..07ceea816e8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmInstanceDetails.java @@ -0,0 +1,1202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Create VM instance 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateVmInstanceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateVmInstanceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "description", + "infrastructureId", + "cpusEnabled", + "memorySizeInGBs", + "bootStorageSizeInGBs", + "dataStorageSizeInGBs", + "imageId", + "serverId", + "sshPublicKeys", + "domainName", + "timeZone", + "dnsServers", + "ntpServers", + "hostname", + "ipAddress", + "netmask", + "gateway", + "vlanId", + "userdata", + "metadata", + "vmNetworkId", + "definedTags", + "freeformTags", + "systemTags" + }) + public CreateVmInstanceDetails( + String compartmentId, + String displayName, + String description, + String infrastructureId, + Integer cpusEnabled, + Double memorySizeInGBs, + Double bootStorageSizeInGBs, + Double dataStorageSizeInGBs, + String imageId, + String serverId, + java.util.List sshPublicKeys, + String domainName, + String timeZone, + java.util.List dnsServers, + java.util.List ntpServers, + String hostname, + String ipAddress, + String netmask, + String gateway, + String vlanId, + String userdata, + java.util.Map metadata, + String vmNetworkId, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.infrastructureId = infrastructureId; + this.cpusEnabled = cpusEnabled; + this.memorySizeInGBs = memorySizeInGBs; + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.imageId = imageId; + this.serverId = serverId; + this.sshPublicKeys = sshPublicKeys; + this.domainName = domainName; + this.timeZone = timeZone; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.hostname = hostname; + this.ipAddress = ipAddress; + this.netmask = netmask; + this.gateway = gateway; + this.vlanId = vlanId; + this.userdata = userdata; + this.metadata = metadata; + this.vmNetworkId = vmNetworkId; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** VM instance display name. This name does not have to be unique, and is changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** VM instance description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * VM instance description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** The number of CPU cores enabled for each VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * + * @param cpusEnabled the value to set + * @return this builder + */ + public Builder cpusEnabled(Integer cpusEnabled) { + this.cpusEnabled = cpusEnabled; + this.__explicitlySet__.add("cpusEnabled"); + return this; + } + /** The memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * + * @param memorySizeInGBs the value to set + * @return this builder + */ + public Builder memorySizeInGBs(Double memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** Boot storage memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private Double bootStorageSizeInGBs; + + /** + * Boot storage memory to be allocated in GBs. + * + * @param bootStorageSizeInGBs the value to set + * @return this builder + */ + public Builder bootStorageSizeInGBs(Double bootStorageSizeInGBs) { + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.__explicitlySet__.add("bootStorageSizeInGBs"); + return this; + } + /** Data storage to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGBs(Double dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM custom instance uploaded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM custom instance uploaded. + * + * @param imageId the value to set + * @return this builder + */ + public Builder imageId(String imageId) { + this.imageId = imageId; + this.__explicitlySet__.add("imageId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + */ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + * + * @param serverId the value to set + * @return this builder + */ + public Builder serverId(String serverId) { + this.serverId = serverId; + this.__explicitlySet__.add("serverId"); + return this; + } + /** List of public key used for SSH access to the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private java.util.List sshPublicKeys; + + /** + * List of public key used for SSH access to the VM instance. + * + * @param sshPublicKeys the value to set + * @return this builder + */ + public Builder sshPublicKeys(java.util.List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + this.__explicitlySet__.add("sshPublicKeys"); + return this; + } + /** The domain name of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private String domainName; + + /** + * The domain name of the VM instance. + * + * @param domainName the value to set + * @return this builder + */ + public Builder domainName(String domainName) { + this.domainName = domainName; + this.__explicitlySet__.add("domainName"); + return this; + } + /** The time zone to use for the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + /** + * The time zone to use for the VM instance. + * + * @param timeZone the value to set + * @return this builder + */ + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** The host name of the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The host name of the instance. + * + * @param hostname the value to set + * @return this builder + */ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } + /** The IP address of the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") + private String ipAddress; + + /** + * The IP address of the instance. + * + * @param ipAddress the value to set + * @return this builder + */ + public Builder ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + this.__explicitlySet__.add("ipAddress"); + return this; + } + /** The netmask of the VM instance network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask of the VM instance network. + * + * @param netmask the value to set + * @return this builder + */ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** The gateway IP address of the VM instance network */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway IP address of the VM instance network + * + * @param gateway the value to set + * @return this builder + */ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** The network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The network VLAN ID. + * + * @param vlanId the value to set + * @return this builder + */ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom + * Cloud-Init configuration. For information about how to take advantage of user data, see + * the [Cloud-Init + * Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + */ + @com.fasterxml.jackson.annotation.JsonProperty("userdata") + private String userdata; + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom + * Cloud-Init configuration. For information about how to take advantage of user data, see + * the [Cloud-Init + * Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + * @param userdata the value to set + * @return this builder + */ + public Builder userdata(String userdata) { + this.userdata = userdata; + this.__explicitlySet__.add("userdata"); + return this; + } + /** + * Custom metadata key/value pairs which can be used to: - Provide information to + * [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system + * initialization tasks. - Provide additional information which is exposed inside the + * instance context and can be queried or referenced by user-data scripts for dynamic + * configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Custom metadata key/value pairs which can be used to: - Provide information to + * [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system + * initialization tasks. - Provide additional information which is exposed inside the + * instance context and can be queried or referenced by user-data scripts for dynamic + * configuration. + * + * @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; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM Network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM Network. + * + * @param vmNetworkId the value to set + * @return this builder + */ + public Builder vmNetworkId(String vmNetworkId) { + this.vmNetworkId = vmNetworkId; + this.__explicitlySet__.add("vmNetworkId"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateVmInstanceDetails build() { + CreateVmInstanceDetails model = + new CreateVmInstanceDetails( + this.compartmentId, + this.displayName, + this.description, + this.infrastructureId, + this.cpusEnabled, + this.memorySizeInGBs, + this.bootStorageSizeInGBs, + this.dataStorageSizeInGBs, + this.imageId, + this.serverId, + this.sshPublicKeys, + this.domainName, + this.timeZone, + this.dnsServers, + this.ntpServers, + this.hostname, + this.ipAddress, + this.netmask, + this.gateway, + this.vlanId, + this.userdata, + this.metadata, + this.vmNetworkId, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateVmInstanceDetails 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("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("cpusEnabled")) { + this.cpusEnabled(model.getCpusEnabled()); + } + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("bootStorageSizeInGBs")) { + this.bootStorageSizeInGBs(model.getBootStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("imageId")) { + this.imageId(model.getImageId()); + } + if (model.wasPropertyExplicitlySet("serverId")) { + this.serverId(model.getServerId()); + } + if (model.wasPropertyExplicitlySet("sshPublicKeys")) { + this.sshPublicKeys(model.getSshPublicKeys()); + } + if (model.wasPropertyExplicitlySet("domainName")) { + this.domainName(model.getDomainName()); + } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } + if (model.wasPropertyExplicitlySet("ipAddress")) { + this.ipAddress(model.getIpAddress()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("userdata")) { + this.userdata(model.getUserdata()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("vmNetworkId")) { + this.vmNetworkId(model.getVmNetworkId()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** VM instance display name. This name does not have to be unique, and is changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** VM instance description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * VM instance description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** The number of CPU cores enabled for each VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private final Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * + * @return the value + */ + public Integer getCpusEnabled() { + return cpusEnabled; + } + + /** The memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * + * @return the value + */ + public Double getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** Boot storage memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private final Double bootStorageSizeInGBs; + + /** + * Boot storage memory to be allocated in GBs. + * + * @return the value + */ + public Double getBootStorageSizeInGBs() { + return bootStorageSizeInGBs; + } + + /** Data storage to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * + * @return the value + */ + public Double getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * custom instance uploaded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private final String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * custom instance uploaded. + * + * @return the value + */ + public String getImageId() { + return imageId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + */ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private final String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + * + * @return the value + */ + public String getServerId() { + return serverId; + } + + /** List of public key used for SSH access to the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private final java.util.List sshPublicKeys; + + /** + * List of public key used for SSH access to the VM instance. + * + * @return the value + */ + public java.util.List getSshPublicKeys() { + return sshPublicKeys; + } + + /** The domain name of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private final String domainName; + + /** + * The domain name of the VM instance. + * + * @return the value + */ + public String getDomainName() { + return domainName; + } + + /** The time zone to use for the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; + + /** + * The time zone to use for the VM instance. + * + * @return the value + */ + public String getTimeZone() { + return timeZone; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** The host name of the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The host name of the instance. + * + * @return the value + */ + public String getHostname() { + return hostname; + } + + /** The IP address of the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") + private final String ipAddress; + + /** + * The IP address of the instance. + * + * @return the value + */ + public String getIpAddress() { + return ipAddress; + } + + /** The netmask of the VM instance network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask of the VM instance network. + * + * @return the value + */ + public String getNetmask() { + return netmask; + } + + /** The gateway IP address of the VM instance network */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway IP address of the VM instance network + * + * @return the value + */ + public String getGateway() { + return gateway; + } + + /** The network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The network VLAN ID. + * + * @return the value + */ + public String getVlanId() { + return vlanId; + } + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom + * Cloud-Init configuration. For information about how to take advantage of user data, see the + * [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + */ + @com.fasterxml.jackson.annotation.JsonProperty("userdata") + private final String userdata; + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom + * Cloud-Init configuration. For information about how to take advantage of user data, see the + * [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + * @return the value + */ + public String getUserdata() { + return userdata; + } + + /** + * Custom metadata key/value pairs which can be used to: - Provide information to + * [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system + * initialization tasks. - Provide additional information which is exposed inside the instance + * context and can be queried or referenced by user-data scripts for dynamic configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Custom metadata key/value pairs which can be used to: - Provide information to + * [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system + * initialization tasks. - Provide additional information which is exposed inside the instance + * context and can be queried or referenced by user-data scripts for dynamic configuration. + * + * @return the value + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * Network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private final String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * Network. + * + * @return the value + */ + public String getVmNetworkId() { + return vmNetworkId; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateVmInstanceDetails("); + 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(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); + sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", bootStorageSizeInGBs=").append(String.valueOf(this.bootStorageSizeInGBs)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", imageId=").append(String.valueOf(this.imageId)); + sb.append(", serverId=").append(String.valueOf(this.serverId)); + sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); + sb.append(", domainName=").append(String.valueOf(this.domainName)); + sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", hostname=").append(String.valueOf(this.hostname)); + sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", userdata=").append(String.valueOf(this.userdata)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", vmNetworkId=").append(String.valueOf(this.vmNetworkId)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + 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 CreateVmInstanceDetails)) { + return false; + } + + CreateVmInstanceDetails other = (CreateVmInstanceDetails) 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.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) + && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.bootStorageSizeInGBs, other.bootStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.imageId, other.imageId) + && java.util.Objects.equals(this.serverId, other.serverId) + && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) + && java.util.Objects.equals(this.domainName, other.domainName) + && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.hostname, other.hostname) + && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.userdata, other.userdata) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.vmNetworkId, other.vmNetworkId) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.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.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.cpusEnabled == null ? 43 : this.cpusEnabled.hashCode()); + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.bootStorageSizeInGBs == null + ? 43 + : this.bootStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.imageId == null ? 43 : this.imageId.hashCode()); + result = (result * PRIME) + (this.serverId == null ? 43 : this.serverId.hashCode()); + result = + (result * PRIME) + + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode()); + result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); + result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); + result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = (result * PRIME) + (this.userdata == null ? 43 : this.userdata.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.vmNetworkId == null ? 43 : this.vmNetworkId.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/DiskGroupCapacityDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/DiskGroupCapacityDetails.java new file mode 100644 index 00000000000..0ff6826c7e8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/DiskGroupCapacityDetails.java @@ -0,0 +1,275 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Capacity details of the storage disk group.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DiskGroupCapacityDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DiskGroupCapacityDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "storageType", + "totalSpaceInGbs", + "reservedSpaceInGbs", + "freeSpaceInGbs" + }) + public DiskGroupCapacityDetails( + String storageType, + Double totalSpaceInGbs, + Double reservedSpaceInGbs, + Double freeSpaceInGbs) { + super(); + this.storageType = storageType; + this.totalSpaceInGbs = totalSpaceInGbs; + this.reservedSpaceInGbs = reservedSpaceInGbs; + this.freeSpaceInGbs = freeSpaceInGbs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The storage type for the Cloud Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageType") + private String storageType; + + /** + * The storage type for the Cloud Database Infrastructure. + * + * @param storageType the value to set + * @return this builder + */ + public Builder storageType(String storageType) { + this.storageType = storageType; + this.__explicitlySet__.add("storageType"); + return this; + } + /** The total amount of logical disk space available, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSpaceInGbs") + private Double totalSpaceInGbs; + + /** + * The total amount of logical disk space available, in gigabytes (GB). + * + * @param totalSpaceInGbs the value to set + * @return this builder + */ + public Builder totalSpaceInGbs(Double totalSpaceInGbs) { + this.totalSpaceInGbs = totalSpaceInGbs; + this.__explicitlySet__.add("totalSpaceInGbs"); + return this; + } + /** + * The total amount of logical disk space that is reserved for system use, in gigabytes + * (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("reservedSpaceInGbs") + private Double reservedSpaceInGbs; + + /** + * The total amount of logical disk space that is reserved for system use, in gigabytes + * (GB). + * + * @param reservedSpaceInGbs the value to set + * @return this builder + */ + public Builder reservedSpaceInGbs(Double reservedSpaceInGbs) { + this.reservedSpaceInGbs = reservedSpaceInGbs; + this.__explicitlySet__.add("reservedSpaceInGbs"); + return this; + } + /** + * The total amount of logical disk space that is currently available for use, in gigabytes + * (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeSpaceInGbs") + private Double freeSpaceInGbs; + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes + * (GB). + * + * @param freeSpaceInGbs the value to set + * @return this builder + */ + public Builder freeSpaceInGbs(Double freeSpaceInGbs) { + this.freeSpaceInGbs = freeSpaceInGbs; + this.__explicitlySet__.add("freeSpaceInGbs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DiskGroupCapacityDetails build() { + DiskGroupCapacityDetails model = + new DiskGroupCapacityDetails( + this.storageType, + this.totalSpaceInGbs, + this.reservedSpaceInGbs, + this.freeSpaceInGbs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiskGroupCapacityDetails model) { + if (model.wasPropertyExplicitlySet("storageType")) { + this.storageType(model.getStorageType()); + } + if (model.wasPropertyExplicitlySet("totalSpaceInGbs")) { + this.totalSpaceInGbs(model.getTotalSpaceInGbs()); + } + if (model.wasPropertyExplicitlySet("reservedSpaceInGbs")) { + this.reservedSpaceInGbs(model.getReservedSpaceInGbs()); + } + if (model.wasPropertyExplicitlySet("freeSpaceInGbs")) { + this.freeSpaceInGbs(model.getFreeSpaceInGbs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The storage type for the Cloud Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageType") + private final String storageType; + + /** + * The storage type for the Cloud Database Infrastructure. + * + * @return the value + */ + public String getStorageType() { + return storageType; + } + + /** The total amount of logical disk space available, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSpaceInGbs") + private final Double totalSpaceInGbs; + + /** + * The total amount of logical disk space available, in gigabytes (GB). + * + * @return the value + */ + public Double getTotalSpaceInGbs() { + return totalSpaceInGbs; + } + + /** + * The total amount of logical disk space that is reserved for system use, in gigabytes (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("reservedSpaceInGbs") + private final Double reservedSpaceInGbs; + + /** + * The total amount of logical disk space that is reserved for system use, in gigabytes (GB). + * + * @return the value + */ + public Double getReservedSpaceInGbs() { + return reservedSpaceInGbs; + } + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes + * (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeSpaceInGbs") + private final Double freeSpaceInGbs; + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes + * (GB). + * + * @return the value + */ + public Double getFreeSpaceInGbs() { + return freeSpaceInGbs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DiskGroupCapacityDetails("); + sb.append("super=").append(super.toString()); + sb.append("storageType=").append(String.valueOf(this.storageType)); + sb.append(", totalSpaceInGbs=").append(String.valueOf(this.totalSpaceInGbs)); + sb.append(", reservedSpaceInGbs=").append(String.valueOf(this.reservedSpaceInGbs)); + sb.append(", freeSpaceInGbs=").append(String.valueOf(this.freeSpaceInGbs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DiskGroupCapacityDetails)) { + return false; + } + + DiskGroupCapacityDetails other = (DiskGroupCapacityDetails) o; + return java.util.Objects.equals(this.storageType, other.storageType) + && java.util.Objects.equals(this.totalSpaceInGbs, other.totalSpaceInGbs) + && java.util.Objects.equals(this.reservedSpaceInGbs, other.reservedSpaceInGbs) + && java.util.Objects.equals(this.freeSpaceInGbs, other.freeSpaceInGbs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.storageType == null ? 43 : this.storageType.hashCode()); + result = + (result * PRIME) + + (this.totalSpaceInGbs == null ? 43 : this.totalSpaceInGbs.hashCode()); + result = + (result * PRIME) + + (this.reservedSpaceInGbs == null + ? 43 + : this.reservedSpaceInGbs.hashCode()); + result = + (result * PRIME) + + (this.freeSpaceInGbs == null ? 43 : this.freeSpaceInGbs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/GenerateRecommendedVmClusterNetworkDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/GenerateRecommendedVmClusterNetworkDetails.java new file mode 100644 index 00000000000..0c1437db9a4 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/GenerateRecommendedVmClusterNetworkDetails.java @@ -0,0 +1,561 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Generates a recommended VM cluster network configuration for VM 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 + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateRecommendedVmClusterNetworkDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateRecommendedVmClusterNetworkDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "infrastructureId", + "compartmentId", + "displayName", + "nodeCount", + "listenerPort", + "listenerPortSsl", + "vmNetworks", + "dnsServers", + "ntpServers", + "definedTags", + "freeformTags" + }) + public GenerateRecommendedVmClusterNetworkDetails( + String infrastructureId, + String compartmentId, + String displayName, + Integer nodeCount, + Integer listenerPort, + Integer listenerPortSsl, + java.util.List vmNetworks, + java.util.List dnsServers, + java.util.List ntpServers, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.infrastructureId = infrastructureId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.nodeCount = nodeCount; + this.listenerPort = listenerPort; + this.listenerPortSsl = listenerPortSsl; + this.vmNetworks = vmNetworks; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + * + * @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 VM cluster network. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the VM cluster network. 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; + } + /** Count of virtual machines in this VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * + * @param nodeCount the value to set + * @return this builder + */ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** The listener TCP/IP port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener TCP/IP port. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** The listener TCP/IP SSL port. Default is 2484. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * + * @param listenerPortSsl the value to set + * @return this builder + */ + public Builder listenerPortSsl(Integer listenerPortSsl) { + this.listenerPortSsl = listenerPortSsl; + this.__explicitlySet__.add("listenerPortSsl"); + return this; + } + /** Details of the client and backup networks. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * + * @param vmNetworks the value to set + * @return this builder + */ + public Builder vmNetworks(java.util.List vmNetworks) { + this.vmNetworks = vmNetworks; + this.__explicitlySet__.add("vmNetworks"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateRecommendedVmClusterNetworkDetails build() { + GenerateRecommendedVmClusterNetworkDetails model = + new GenerateRecommendedVmClusterNetworkDetails( + this.infrastructureId, + this.compartmentId, + this.displayName, + this.nodeCount, + this.listenerPort, + this.listenerPortSsl, + this.vmNetworks, + this.dnsServers, + this.ntpServers, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateRecommendedVmClusterNetworkDetails model) { + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortSsl")) { + this.listenerPortSsl(model.getListenerPortSsl()); + } + if (model.wasPropertyExplicitlySet("vmNetworks")) { + this.vmNetworks(model.getVmNetworks()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the VM cluster network. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Count of virtual machines in this VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * + * @return the value + */ + public Integer getNodeCount() { + return nodeCount; + } + + /** The listener TCP/IP port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener TCP/IP port. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** The listener TCP/IP SSL port. Default is 2484. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private final Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * + * @return the value + */ + public Integer getListenerPortSsl() { + return listenerPortSsl; + } + + /** Details of the client and backup networks. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private final java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * + * @return the value + */ + public java.util.List getVmNetworks() { + return vmNetworks; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateRecommendedVmClusterNetworkDetails("); + sb.append("super=").append(super.toString()); + sb.append("infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortSsl=").append(String.valueOf(this.listenerPortSsl)); + sb.append(", vmNetworks=").append(String.valueOf(this.vmNetworks)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateRecommendedVmClusterNetworkDetails)) { + return false; + } + + GenerateRecommendedVmClusterNetworkDetails other = + (GenerateRecommendedVmClusterNetworkDetails) o; + return java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortSsl, other.listenerPortSsl) + && java.util.Objects.equals(this.vmNetworks, other.vmNetworks) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.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.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortSsl == null ? 43 : this.listenerPortSsl.hashCode()); + result = (result * PRIME) + (this.vmNetworks == null ? 43 : this.vmNetworks.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfoVmNetworkDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfoVmNetworkDetails.java new file mode 100644 index 00000000000..9dc99b39213 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfoVmNetworkDetails.java @@ -0,0 +1,367 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Details of the client or backup networks in an VM 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 + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfoVmNetworkDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InfoVmNetworkDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "vlanId", + "networkType", + "netmask", + "gateway", + "domainName", + "prefix", + "startingIp" + }) + public InfoVmNetworkDetails( + String vlanId, + VmClusterNetworkType networkType, + String netmask, + String gateway, + String domainName, + String prefix, + String startingIp) { + super(); + this.vlanId = vlanId; + this.networkType = networkType; + this.netmask = netmask; + this.gateway = gateway; + this.domainName = domainName; + this.prefix = prefix; + this.startingIp = startingIp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The network VLAN ID. + * + * @param vlanId the value to set + * @return this builder + */ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + /** The network type. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkType") + private VmClusterNetworkType networkType; + + /** + * The network type. + * + * @param networkType the value to set + * @return this builder + */ + public Builder networkType(VmClusterNetworkType networkType) { + this.networkType = networkType; + this.__explicitlySet__.add("networkType"); + return this; + } + /** The network netmask. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The network netmask. + * + * @param netmask the value to set + * @return this builder + */ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** The network gateway. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The network gateway. + * + * @param gateway the value to set + * @return this builder + */ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** The network domain name. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private String domainName; + + /** + * The network domain name. + * + * @param domainName the value to set + * @return this builder + */ + public Builder domainName(String domainName) { + this.domainName = domainName; + this.__explicitlySet__.add("domainName"); + return this; + } + /** The network domain name prefix. */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * The network domain name prefix. + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** Starting ip address of the virtual machines. */ + @com.fasterxml.jackson.annotation.JsonProperty("startingIp") + private String startingIp; + + /** + * Starting ip address of the virtual machines. + * + * @param startingIp the value to set + * @return this builder + */ + public Builder startingIp(String startingIp) { + this.startingIp = startingIp; + this.__explicitlySet__.add("startingIp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfoVmNetworkDetails build() { + InfoVmNetworkDetails model = + new InfoVmNetworkDetails( + this.vlanId, + this.networkType, + this.netmask, + this.gateway, + this.domainName, + this.prefix, + this.startingIp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfoVmNetworkDetails model) { + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("networkType")) { + this.networkType(model.getNetworkType()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("domainName")) { + this.domainName(model.getDomainName()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("startingIp")) { + this.startingIp(model.getStartingIp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The network VLAN ID. + * + * @return the value + */ + public String getVlanId() { + return vlanId; + } + + /** The network type. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkType") + private final VmClusterNetworkType networkType; + + /** + * The network type. + * + * @return the value + */ + public VmClusterNetworkType getNetworkType() { + return networkType; + } + + /** The network netmask. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The network netmask. + * + * @return the value + */ + public String getNetmask() { + return netmask; + } + + /** The network gateway. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The network gateway. + * + * @return the value + */ + public String getGateway() { + return gateway; + } + + /** The network domain name. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private final String domainName; + + /** + * The network domain name. + * + * @return the value + */ + public String getDomainName() { + return domainName; + } + + /** The network domain name prefix. */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * The network domain name prefix. + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + /** Starting ip address of the virtual machines. */ + @com.fasterxml.jackson.annotation.JsonProperty("startingIp") + private final String startingIp; + + /** + * Starting ip address of the virtual machines. + * + * @return the value + */ + public String getStartingIp() { + return startingIp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfoVmNetworkDetails("); + sb.append("super=").append(super.toString()); + sb.append("vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", networkType=").append(String.valueOf(this.networkType)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", domainName=").append(String.valueOf(this.domainName)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", startingIp=").append(String.valueOf(this.startingIp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfoVmNetworkDetails)) { + return false; + } + + InfoVmNetworkDetails other = (InfoVmNetworkDetails) o; + return java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.networkType, other.networkType) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.domainName, other.domainName) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.startingIp, other.startingIp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = (result * PRIME) + (this.networkType == null ? 43 : this.networkType.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = (result * PRIME) + (this.startingIp == null ? 43 : this.startingIp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/Infrastructure.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/Infrastructure.java new file mode 100644 index 00000000000..690144d4b3e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/Infrastructure.java @@ -0,0 +1,2069 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Details about Database Infrastructure 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Infrastructure.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Infrastructure + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "description", + "compartmentId", + "displayName", + "systemModel", + "version", + "shape", + "cloudControlPlaneServer1", + "cloudControlPlaneServer2", + "netmask", + "gateway", + "adminNetworkcidr", + "dataDiskPercentage", + "recoDiskPercentage", + "contacts", + "dnsServers", + "ntpServers", + "clientNetworkBondingMode", + "backupNetworkBondingMode", + "cpsNetworkBondingMode", + "clientNetworkBondingInterface", + "backupNetworkBondingInterface", + "cpsNetworkBondingInterface", + "acfsFileSystemStorageInGbs", + "acfsFileSystemUsedStorageInGbs", + "corporateProxy", + "vlanId", + "freeformTags", + "definedTags", + "systemTags", + "maintenanceWindow", + "timeCreated", + "timeUpdated", + "timeLastStateUpdated", + "timeActivated", + "timeValidated", + "lifecycleState", + "lifecycleStateDetails", + "rackSerialNumber", + "servers", + "computeCapacity", + "storageCapacity", + "systemStorageCapacity", + "networkAdapterConfiguration", + "subscriptionPlanNumber", + "ssdConfigurationRequested" + }) + public Infrastructure( + String id, + String description, + String compartmentId, + String displayName, + SystemModelEnum systemModel, + String version, + ShapeEnum shape, + String cloudControlPlaneServer1, + String cloudControlPlaneServer2, + String netmask, + String gateway, + String adminNetworkcidr, + Integer dataDiskPercentage, + Integer recoDiskPercentage, + java.util.List contacts, + java.util.List dnsServers, + java.util.List ntpServers, + NetworkBondingMode clientNetworkBondingMode, + NetworkBondingMode backupNetworkBondingMode, + NetworkBondingMode cpsNetworkBondingMode, + NetworkBondingInterfaceEnum clientNetworkBondingInterface, + NetworkBondingInterfaceEnum backupNetworkBondingInterface, + NetworkBondingInterfaceEnum cpsNetworkBondingInterface, + Double acfsFileSystemStorageInGbs, + Double acfsFileSystemUsedStorageInGbs, + String corporateProxy, + String vlanId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + MaintenanceWindow maintenanceWindow, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastStateUpdated, + java.util.Date timeActivated, + java.util.Date timeValidated, + InfrastructureLifecycleState lifecycleState, + String lifecycleStateDetails, + String rackSerialNumber, + java.util.List servers, + ComputeCapacityDetails computeCapacity, + java.util.List storageCapacity, + SystemStorageCapacityDetails systemStorageCapacity, + String networkAdapterConfiguration, + String subscriptionPlanNumber, + ShapeEnum ssdConfigurationRequested) { + super(); + this.id = id; + this.description = description; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.systemModel = systemModel; + this.version = version; + this.shape = shape; + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.netmask = netmask; + this.gateway = gateway; + this.adminNetworkcidr = adminNetworkcidr; + this.dataDiskPercentage = dataDiskPercentage; + this.recoDiskPercentage = recoDiskPercentage; + this.contacts = contacts; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.acfsFileSystemUsedStorageInGbs = acfsFileSystemUsedStorageInGbs; + this.corporateProxy = corporateProxy; + this.vlanId = vlanId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.maintenanceWindow = maintenanceWindow; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeLastStateUpdated = timeLastStateUpdated; + this.timeActivated = timeActivated; + this.timeValidated = timeValidated; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.rackSerialNumber = rackSerialNumber; + this.servers = servers; + this.computeCapacity = computeCapacity; + this.storageCapacity = storageCapacity; + this.systemStorageCapacity = systemStorageCapacity; + this.networkAdapterConfiguration = networkAdapterConfiguration; + this.subscriptionPlanNumber = subscriptionPlanNumber; + this.ssdConfigurationRequested = ssdConfigurationRequested; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Database Infrastructure description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Database Infrastructure description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be + * unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Database Infrastructure. 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; + } + /** + * Database Infrastructure System Model specification. The system model determines the model + * of the Database Infrastructure hardware to be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model + * of the Database Infrastructure hardware to be used. + * + * @param systemModel the value to set + * @return this builder + */ + public Builder systemModel(SystemModelEnum systemModel) { + this.systemModel = systemModel; + this.__explicitlySet__.add("systemModel"); + return this; + } + /** The version of the system software on the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the system software on the Database Infrastructure. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, + * storage, and memory resources allocated to the instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, + * storage, and memory resources allocated to the instance. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(ShapeEnum shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** The IP address for the first control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * + * @param cloudControlPlaneServer1 the value to set + * @return this builder + */ + public Builder cloudControlPlaneServer1(String cloudControlPlaneServer1) { + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.__explicitlySet__.add("cloudControlPlaneServer1"); + return this; + } + /** The IP address for the second control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * + * @param cloudControlPlaneServer2 the value to set + * @return this builder + */ + public Builder cloudControlPlaneServer2(String cloudControlPlaneServer2) { + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.__explicitlySet__.add("cloudControlPlaneServer2"); + return this; + } + /** The netmask for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask for the control plane network. + * + * @param netmask the value to set + * @return this builder + */ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** The gateway for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway for the control plane network. + * + * @param gateway the value to set + * @return this builder + */ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The CIDR block for the system network. The system network is a private network in + * Database Infrastructure and is not connected to your corporate network. The system + * network is used for storage (ASM) traffic, high-performance interconnect traffic and + * administration of infrastructure components. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in + * Database Infrastructure and is not connected to your corporate network. The system + * network is used for storage (ASM) traffic, high-performance interconnect traffic and + * administration of infrastructure components. + * + * @param adminNetworkcidr the value to set + * @return this builder + */ + public Builder adminNetworkcidr(String adminNetworkcidr) { + this.adminNetworkcidr = adminNetworkcidr; + this.__explicitlySet__.add("adminNetworkcidr"); + return this; + } + /** Percentage of disk space assigned for DATA disk group. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. + * + * @param dataDiskPercentage the value to set + * @return this builder + */ + public Builder dataDiskPercentage(Integer dataDiskPercentage) { + this.dataDiskPercentage = dataDiskPercentage; + this.__explicitlySet__.add("dataDiskPercentage"); + return this; + } + /** Percentage of disk space assigned for RECO disk group. */ + @com.fasterxml.jackson.annotation.JsonProperty("recoDiskPercentage") + private Integer recoDiskPercentage; + + /** + * Percentage of disk space assigned for RECO disk group. + * + * @param recoDiskPercentage the value to set + * @return this builder + */ + public Builder recoDiskPercentage(Integer recoDiskPercentage) { + this.recoDiskPercentage = recoDiskPercentage; + this.__explicitlySet__.add("recoDiskPercentage"); + return this; + } + /** The list of contacts for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * + * @param contacts the value to set + * @return this builder + */ + public Builder contacts(java.util.List contacts) { + this.contacts = contacts; + this.__explicitlySet__.add("contacts"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** The network bonding mode for Client networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * + * @param clientNetworkBondingMode the value to set + * @return this builder + */ + public Builder clientNetworkBondingMode(NetworkBondingMode clientNetworkBondingMode) { + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.__explicitlySet__.add("clientNetworkBondingMode"); + return this; + } + /** The network bonding mode for Backup networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * + * @param backupNetworkBondingMode the value to set + * @return this builder + */ + public Builder backupNetworkBondingMode(NetworkBondingMode backupNetworkBondingMode) { + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.__explicitlySet__.add("backupNetworkBondingMode"); + return this; + } + /** The network bonding mode for CPS networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * + * @param cpsNetworkBondingMode the value to set + * @return this builder + */ + public Builder cpsNetworkBondingMode(NetworkBondingMode cpsNetworkBondingMode) { + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.__explicitlySet__.add("cpsNetworkBondingMode"); + return this; + } + /** The network bonding interface for client network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * + * @param clientNetworkBondingInterface the value to set + * @return this builder + */ + public Builder clientNetworkBondingInterface( + NetworkBondingInterfaceEnum clientNetworkBondingInterface) { + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.__explicitlySet__.add("clientNetworkBondingInterface"); + return this; + } + /** The network bonding interface for backup network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * + * @param backupNetworkBondingInterface the value to set + * @return this builder + */ + public Builder backupNetworkBondingInterface( + NetworkBondingInterfaceEnum backupNetworkBondingInterface) { + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.__explicitlySet__.add("backupNetworkBondingInterface"); + return this; + } + /** The network bonding interface for CPS network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * + * @param cpsNetworkBondingInterface the value to set + * @return this builder + */ + public Builder cpsNetworkBondingInterface( + NetworkBondingInterfaceEnum cpsNetworkBondingInterface) { + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.__explicitlySet__.add("cpsNetworkBondingInterface"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + * + * @param acfsFileSystemStorageInGbs the value to set + * @return this builder + */ + public Builder acfsFileSystemStorageInGbs(Double acfsFileSystemStorageInGbs) { + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemStorageInGbs"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for + * creating local storage for VM Clusters and application VMs. This attribute is deprecated + * and will be removed in a subsequent release. Please read from systemStorageCapacity + * instead. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemUsedStorageInGbs") + private Double acfsFileSystemUsedStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for + * creating local storage for VM Clusters and application VMs. This attribute is deprecated + * and will be removed in a subsequent release. Please read from systemStorageCapacity + * instead. + * + * @param acfsFileSystemUsedStorageInGbs the value to set + * @return this builder + */ + public Builder acfsFileSystemUsedStorageInGbs(Double acfsFileSystemUsedStorageInGbs) { + this.acfsFileSystemUsedStorageInGbs = acfsFileSystemUsedStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemUsedStorageInGbs"); + return this; + } + /** + * The corporate network proxy for access to the control plane network. Oracle recommends + * using an HTTPS proxy when possible for enhanced security. + */ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends + * using an HTTPS proxy when possible for enhanced security. + * + * @param corporateProxy the value to set + * @return this builder + */ + public Builder corporateProxy(String corporateProxy) { + this.corporateProxy = corporateProxy; + this.__explicitlySet__.add("corporateProxy"); + return this; + } + /** The CPS network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The CPS network VLAN ID. + * + * @param vlanId the value to set + * @return this builder + */ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private MaintenanceWindow maintenanceWindow; + + public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + this.__explicitlySet__.add("maintenanceWindow"); + return this; + } + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted + * datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime + * string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The time, in RFC3339 format, when the lifecycle state was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastStateUpdated") + private java.util.Date timeLastStateUpdated; + + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + * @param timeLastStateUpdated the value to set + * @return this builder + */ + public Builder timeLastStateUpdated(java.util.Date timeLastStateUpdated) { + this.timeLastStateUpdated = timeLastStateUpdated; + this.__explicitlySet__.add("timeLastStateUpdated"); + return this; + } + /** The time, in RFC3339 format, when the Database Infrastructure was activated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private java.util.Date timeActivated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + * @param timeActivated the value to set + * @return this builder + */ + public Builder timeActivated(java.util.Date timeActivated) { + this.timeActivated = timeActivated; + this.__explicitlySet__.add("timeActivated"); + return this; + } + /** The time, in RFC3339 format, when the Database Infrastructure network was validated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidated") + private java.util.Date timeValidated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + * @param timeValidated the value to set + * @return this builder + */ + public Builder timeValidated(java.util.Date timeValidated) { + this.timeValidated = timeValidated; + this.__explicitlySet__.add("timeValidated"); + return this; + } + /** The current state of the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private InfrastructureLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(InfrastructureLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Lifecycle state details of the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Lifecycle state details of the Database Infrastructure. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** The serial number for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("rackSerialNumber") + private String rackSerialNumber; + + /** + * The serial number for the Database Infrastructure. + * + * @param rackSerialNumber the value to set + * @return this builder + */ + public Builder rackSerialNumber(String rackSerialNumber) { + this.rackSerialNumber = rackSerialNumber; + this.__explicitlySet__.add("rackSerialNumber"); + return this; + } + /** A list of Database Infrastructure nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("servers") + private java.util.List servers; + + /** + * A list of Database Infrastructure nodes. + * + * @param servers the value to set + * @return this builder + */ + public Builder servers(java.util.List servers) { + this.servers = servers; + this.__explicitlySet__.add("servers"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private ComputeCapacityDetails computeCapacity; + + public Builder computeCapacity(ComputeCapacityDetails computeCapacity) { + this.computeCapacity = computeCapacity; + this.__explicitlySet__.add("computeCapacity"); + return this; + } + /** + * Capacity details of the Storage disk group. This attribute is deprecated and will be + * removed in a subsequent release. Please use systemStorageCapacity instead. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageCapacity") + private java.util.List storageCapacity; + + /** + * Capacity details of the Storage disk group. This attribute is deprecated and will be + * removed in a subsequent release. Please use systemStorageCapacity instead. + * + * @param storageCapacity the value to set + * @return this builder + */ + public Builder storageCapacity(java.util.List storageCapacity) { + this.storageCapacity = storageCapacity; + this.__explicitlySet__.add("storageCapacity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemStorageCapacity") + private SystemStorageCapacityDetails systemStorageCapacity; + + public Builder systemStorageCapacity(SystemStorageCapacityDetails systemStorageCapacity) { + this.systemStorageCapacity = systemStorageCapacity; + this.__explicitlySet__.add("systemStorageCapacity"); + return this; + } + /** + * The network adapter, transceiver and cable configuration for the client and backup + * networks. + */ + @com.fasterxml.jackson.annotation.JsonProperty("networkAdapterConfiguration") + private String networkAdapterConfiguration; + + /** + * The network adapter, transceiver and cable configuration for the client and backup + * networks. + * + * @param networkAdapterConfiguration the value to set + * @return this builder + */ + public Builder networkAdapterConfiguration(String networkAdapterConfiguration) { + this.networkAdapterConfiguration = networkAdapterConfiguration; + this.__explicitlySet__.add("networkAdapterConfiguration"); + return this; + } + /** The unique identifier for the subscription plan number. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionPlanNumber") + private String subscriptionPlanNumber; + + /** + * The unique identifier for the subscription plan number. + * + * @param subscriptionPlanNumber the value to set + * @return this builder + */ + public Builder subscriptionPlanNumber(String subscriptionPlanNumber) { + this.subscriptionPlanNumber = subscriptionPlanNumber; + this.__explicitlySet__.add("subscriptionPlanNumber"); + return this; + } + /** SSD configuration requested for the infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private ShapeEnum ssdConfigurationRequested; + + /** + * SSD configuration requested for the infrastructure. + * + * @param ssdConfigurationRequested the value to set + * @return this builder + */ + public Builder ssdConfigurationRequested(ShapeEnum ssdConfigurationRequested) { + this.ssdConfigurationRequested = ssdConfigurationRequested; + this.__explicitlySet__.add("ssdConfigurationRequested"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Infrastructure build() { + Infrastructure model = + new Infrastructure( + this.id, + this.description, + this.compartmentId, + this.displayName, + this.systemModel, + this.version, + this.shape, + this.cloudControlPlaneServer1, + this.cloudControlPlaneServer2, + this.netmask, + this.gateway, + this.adminNetworkcidr, + this.dataDiskPercentage, + this.recoDiskPercentage, + this.contacts, + this.dnsServers, + this.ntpServers, + this.clientNetworkBondingMode, + this.backupNetworkBondingMode, + this.cpsNetworkBondingMode, + this.clientNetworkBondingInterface, + this.backupNetworkBondingInterface, + this.cpsNetworkBondingInterface, + this.acfsFileSystemStorageInGbs, + this.acfsFileSystemUsedStorageInGbs, + this.corporateProxy, + this.vlanId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.maintenanceWindow, + this.timeCreated, + this.timeUpdated, + this.timeLastStateUpdated, + this.timeActivated, + this.timeValidated, + this.lifecycleState, + this.lifecycleStateDetails, + this.rackSerialNumber, + this.servers, + this.computeCapacity, + this.storageCapacity, + this.systemStorageCapacity, + this.networkAdapterConfiguration, + this.subscriptionPlanNumber, + this.ssdConfigurationRequested); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Infrastructure model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("systemModel")) { + this.systemModel(model.getSystemModel()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer1")) { + this.cloudControlPlaneServer1(model.getCloudControlPlaneServer1()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer2")) { + this.cloudControlPlaneServer2(model.getCloudControlPlaneServer2()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("adminNetworkcidr")) { + this.adminNetworkcidr(model.getAdminNetworkcidr()); + } + if (model.wasPropertyExplicitlySet("dataDiskPercentage")) { + this.dataDiskPercentage(model.getDataDiskPercentage()); + } + if (model.wasPropertyExplicitlySet("recoDiskPercentage")) { + this.recoDiskPercentage(model.getRecoDiskPercentage()); + } + if (model.wasPropertyExplicitlySet("contacts")) { + this.contacts(model.getContacts()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingMode")) { + this.clientNetworkBondingMode(model.getClientNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingMode")) { + this.backupNetworkBondingMode(model.getBackupNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingMode")) { + this.cpsNetworkBondingMode(model.getCpsNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingInterface")) { + this.clientNetworkBondingInterface(model.getClientNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingInterface")) { + this.backupNetworkBondingInterface(model.getBackupNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingInterface")) { + this.cpsNetworkBondingInterface(model.getCpsNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemStorageInGbs")) { + this.acfsFileSystemStorageInGbs(model.getAcfsFileSystemStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemUsedStorageInGbs")) { + this.acfsFileSystemUsedStorageInGbs(model.getAcfsFileSystemUsedStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("corporateProxy")) { + this.corporateProxy(model.getCorporateProxy()); + } + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + 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("maintenanceWindow")) { + this.maintenanceWindow(model.getMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastStateUpdated")) { + this.timeLastStateUpdated(model.getTimeLastStateUpdated()); + } + if (model.wasPropertyExplicitlySet("timeActivated")) { + this.timeActivated(model.getTimeActivated()); + } + if (model.wasPropertyExplicitlySet("timeValidated")) { + this.timeValidated(model.getTimeValidated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("rackSerialNumber")) { + this.rackSerialNumber(model.getRackSerialNumber()); + } + if (model.wasPropertyExplicitlySet("servers")) { + this.servers(model.getServers()); + } + if (model.wasPropertyExplicitlySet("computeCapacity")) { + this.computeCapacity(model.getComputeCapacity()); + } + if (model.wasPropertyExplicitlySet("storageCapacity")) { + this.storageCapacity(model.getStorageCapacity()); + } + if (model.wasPropertyExplicitlySet("systemStorageCapacity")) { + this.systemStorageCapacity(model.getSystemStorageCapacity()); + } + if (model.wasPropertyExplicitlySet("networkAdapterConfiguration")) { + this.networkAdapterConfiguration(model.getNetworkAdapterConfiguration()); + } + if (model.wasPropertyExplicitlySet("subscriptionPlanNumber")) { + this.subscriptionPlanNumber(model.getSubscriptionPlanNumber()); + } + if (model.wasPropertyExplicitlySet("ssdConfigurationRequested")) { + this.ssdConfigurationRequested(model.getSsdConfigurationRequested()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Database Infrastructure description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Database Infrastructure description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Database Infrastructure System Model specification. The system model determines the model of + * the Database Infrastructure hardware to be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private final SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of + * the Database Infrastructure hardware to be used. + * + * @return the value + */ + public SystemModelEnum getSystemModel() { + return systemModel; + } + + /** The version of the system software on the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the system software on the Database Infrastructure. + * + * @return the value + */ + public String getVersion() { + return version; + } + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, + * and memory resources allocated to the instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, + * and memory resources allocated to the instance. + * + * @return the value + */ + public ShapeEnum getShape() { + return shape; + } + + /** The IP address for the first control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private final String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * + * @return the value + */ + public String getCloudControlPlaneServer1() { + return cloudControlPlaneServer1; + } + + /** The IP address for the second control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private final String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * + * @return the value + */ + public String getCloudControlPlaneServer2() { + return cloudControlPlaneServer2; + } + + /** The netmask for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask for the control plane network. + * + * @return the value + */ + public String getNetmask() { + return netmask; + } + + /** The gateway for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway for the control plane network. + * + * @return the value + */ + public String getGateway() { + return gateway; + } + + /** + * The CIDR block for the system network. The system network is a private network in Database + * Infrastructure and is not connected to your corporate network. The system network is used for + * storage (ASM) traffic, high-performance interconnect traffic and administration of + * infrastructure components. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private final String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database + * Infrastructure and is not connected to your corporate network. The system network is used for + * storage (ASM) traffic, high-performance interconnect traffic and administration of + * infrastructure components. + * + * @return the value + */ + public String getAdminNetworkcidr() { + return adminNetworkcidr; + } + + /** Percentage of disk space assigned for DATA disk group. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private final Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. + * + * @return the value + */ + public Integer getDataDiskPercentage() { + return dataDiskPercentage; + } + + /** Percentage of disk space assigned for RECO disk group. */ + @com.fasterxml.jackson.annotation.JsonProperty("recoDiskPercentage") + private final Integer recoDiskPercentage; + + /** + * Percentage of disk space assigned for RECO disk group. + * + * @return the value + */ + public Integer getRecoDiskPercentage() { + return recoDiskPercentage; + } + + /** The list of contacts for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private final java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * + * @return the value + */ + public java.util.List getContacts() { + return contacts; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** The network bonding mode for Client networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private final NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getClientNetworkBondingMode() { + return clientNetworkBondingMode; + } + + /** The network bonding mode for Backup networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private final NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getBackupNetworkBondingMode() { + return backupNetworkBondingMode; + } + + /** The network bonding mode for CPS networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private final NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getCpsNetworkBondingMode() { + return cpsNetworkBondingMode; + } + + /** The network bonding interface for client network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private final NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getClientNetworkBondingInterface() { + return clientNetworkBondingInterface; + } + + /** The network bonding interface for backup network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private final NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getBackupNetworkBondingInterface() { + return backupNetworkBondingInterface; + } + + /** The network bonding interface for CPS network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private final NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getCpsNetworkBondingInterface() { + return cpsNetworkBondingInterface; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private final Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + * + * @return the value + */ + public Double getAcfsFileSystemStorageInGbs() { + return acfsFileSystemStorageInGbs; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating + * local storage for VM Clusters and application VMs. This attribute is deprecated and will be + * removed in a subsequent release. Please read from systemStorageCapacity instead. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemUsedStorageInGbs") + private final Double acfsFileSystemUsedStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating + * local storage for VM Clusters and application VMs. This attribute is deprecated and will be + * removed in a subsequent release. Please read from systemStorageCapacity instead. + * + * @return the value + */ + public Double getAcfsFileSystemUsedStorageInGbs() { + return acfsFileSystemUsedStorageInGbs; + } + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using + * an HTTPS proxy when possible for enhanced security. + */ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private final String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using + * an HTTPS proxy when possible for enhanced security. + * + * @return the value + */ + public String getCorporateProxy() { + return corporateProxy; + } + + /** The CPS network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The CPS network VLAN ID. + * + * @return the value + */ + public String getVlanId() { + return vlanId; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private final MaintenanceWindow maintenanceWindow; + + public MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The time, in RFC3339 format, when the lifecycle state was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastStateUpdated") + private final java.util.Date timeLastStateUpdated; + + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + * @return the value + */ + public java.util.Date getTimeLastStateUpdated() { + return timeLastStateUpdated; + } + + /** The time, in RFC3339 format, when the Database Infrastructure was activated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private final java.util.Date timeActivated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + * @return the value + */ + public java.util.Date getTimeActivated() { + return timeActivated; + } + + /** The time, in RFC3339 format, when the Database Infrastructure network was validated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidated") + private final java.util.Date timeValidated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + * @return the value + */ + public java.util.Date getTimeValidated() { + return timeValidated; + } + + /** The current state of the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final InfrastructureLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure. + * + * @return the value + */ + public InfrastructureLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Lifecycle state details of the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Lifecycle state details of the Database Infrastructure. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** The serial number for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("rackSerialNumber") + private final String rackSerialNumber; + + /** + * The serial number for the Database Infrastructure. + * + * @return the value + */ + public String getRackSerialNumber() { + return rackSerialNumber; + } + + /** A list of Database Infrastructure nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("servers") + private final java.util.List servers; + + /** + * A list of Database Infrastructure nodes. + * + * @return the value + */ + public java.util.List getServers() { + return servers; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private final ComputeCapacityDetails computeCapacity; + + public ComputeCapacityDetails getComputeCapacity() { + return computeCapacity; + } + + /** + * Capacity details of the Storage disk group. This attribute is deprecated and will be removed + * in a subsequent release. Please use systemStorageCapacity instead. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageCapacity") + private final java.util.List storageCapacity; + + /** + * Capacity details of the Storage disk group. This attribute is deprecated and will be removed + * in a subsequent release. Please use systemStorageCapacity instead. + * + * @return the value + */ + public java.util.List getStorageCapacity() { + return storageCapacity; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemStorageCapacity") + private final SystemStorageCapacityDetails systemStorageCapacity; + + public SystemStorageCapacityDetails getSystemStorageCapacity() { + return systemStorageCapacity; + } + + /** + * The network adapter, transceiver and cable configuration for the client and backup networks. + */ + @com.fasterxml.jackson.annotation.JsonProperty("networkAdapterConfiguration") + private final String networkAdapterConfiguration; + + /** + * The network adapter, transceiver and cable configuration for the client and backup networks. + * + * @return the value + */ + public String getNetworkAdapterConfiguration() { + return networkAdapterConfiguration; + } + + /** The unique identifier for the subscription plan number. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionPlanNumber") + private final String subscriptionPlanNumber; + + /** + * The unique identifier for the subscription plan number. + * + * @return the value + */ + public String getSubscriptionPlanNumber() { + return subscriptionPlanNumber; + } + + /** SSD configuration requested for the infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private final ShapeEnum ssdConfigurationRequested; + + /** + * SSD configuration requested for the infrastructure. + * + * @return the value + */ + public ShapeEnum getSsdConfigurationRequested() { + return ssdConfigurationRequested; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Infrastructure("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", systemModel=").append(String.valueOf(this.systemModel)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", cloudControlPlaneServer1=") + .append(String.valueOf(this.cloudControlPlaneServer1)); + sb.append(", cloudControlPlaneServer2=") + .append(String.valueOf(this.cloudControlPlaneServer2)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", adminNetworkcidr=").append(String.valueOf(this.adminNetworkcidr)); + sb.append(", dataDiskPercentage=").append(String.valueOf(this.dataDiskPercentage)); + sb.append(", recoDiskPercentage=").append(String.valueOf(this.recoDiskPercentage)); + sb.append(", contacts=").append(String.valueOf(this.contacts)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", clientNetworkBondingMode=") + .append(String.valueOf(this.clientNetworkBondingMode)); + sb.append(", backupNetworkBondingMode=") + .append(String.valueOf(this.backupNetworkBondingMode)); + sb.append(", cpsNetworkBondingMode=").append(String.valueOf(this.cpsNetworkBondingMode)); + sb.append(", clientNetworkBondingInterface=") + .append(String.valueOf(this.clientNetworkBondingInterface)); + sb.append(", backupNetworkBondingInterface=") + .append(String.valueOf(this.backupNetworkBondingInterface)); + sb.append(", cpsNetworkBondingInterface=") + .append(String.valueOf(this.cpsNetworkBondingInterface)); + sb.append(", acfsFileSystemStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemStorageInGbs)); + sb.append(", acfsFileSystemUsedStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemUsedStorageInGbs)); + sb.append(", corporateProxy=").append(String.valueOf(this.corporateProxy)); + sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + 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(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeLastStateUpdated=").append(String.valueOf(this.timeLastStateUpdated)); + sb.append(", timeActivated=").append(String.valueOf(this.timeActivated)); + sb.append(", timeValidated=").append(String.valueOf(this.timeValidated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", rackSerialNumber=").append(String.valueOf(this.rackSerialNumber)); + sb.append(", servers=").append(String.valueOf(this.servers)); + sb.append(", computeCapacity=").append(String.valueOf(this.computeCapacity)); + sb.append(", storageCapacity=").append(String.valueOf(this.storageCapacity)); + sb.append(", systemStorageCapacity=").append(String.valueOf(this.systemStorageCapacity)); + sb.append(", networkAdapterConfiguration=") + .append(String.valueOf(this.networkAdapterConfiguration)); + sb.append(", subscriptionPlanNumber=").append(String.valueOf(this.subscriptionPlanNumber)); + sb.append(", ssdConfigurationRequested=") + .append(String.valueOf(this.ssdConfigurationRequested)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Infrastructure)) { + return false; + } + + Infrastructure other = (Infrastructure) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.systemModel, other.systemModel) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals( + this.cloudControlPlaneServer1, other.cloudControlPlaneServer1) + && java.util.Objects.equals( + this.cloudControlPlaneServer2, other.cloudControlPlaneServer2) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.adminNetworkcidr, other.adminNetworkcidr) + && java.util.Objects.equals(this.dataDiskPercentage, other.dataDiskPercentage) + && java.util.Objects.equals(this.recoDiskPercentage, other.recoDiskPercentage) + && java.util.Objects.equals(this.contacts, other.contacts) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals( + this.clientNetworkBondingMode, other.clientNetworkBondingMode) + && java.util.Objects.equals( + this.backupNetworkBondingMode, other.backupNetworkBondingMode) + && java.util.Objects.equals(this.cpsNetworkBondingMode, other.cpsNetworkBondingMode) + && java.util.Objects.equals( + this.clientNetworkBondingInterface, other.clientNetworkBondingInterface) + && java.util.Objects.equals( + this.backupNetworkBondingInterface, other.backupNetworkBondingInterface) + && java.util.Objects.equals( + this.cpsNetworkBondingInterface, other.cpsNetworkBondingInterface) + && java.util.Objects.equals( + this.acfsFileSystemStorageInGbs, other.acfsFileSystemStorageInGbs) + && java.util.Objects.equals( + this.acfsFileSystemUsedStorageInGbs, other.acfsFileSystemUsedStorageInGbs) + && java.util.Objects.equals(this.corporateProxy, other.corporateProxy) + && java.util.Objects.equals(this.vlanId, other.vlanId) + && 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.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeLastStateUpdated, other.timeLastStateUpdated) + && java.util.Objects.equals(this.timeActivated, other.timeActivated) + && java.util.Objects.equals(this.timeValidated, other.timeValidated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.rackSerialNumber, other.rackSerialNumber) + && java.util.Objects.equals(this.servers, other.servers) + && java.util.Objects.equals(this.computeCapacity, other.computeCapacity) + && java.util.Objects.equals(this.storageCapacity, other.storageCapacity) + && java.util.Objects.equals(this.systemStorageCapacity, other.systemStorageCapacity) + && java.util.Objects.equals( + this.networkAdapterConfiguration, other.networkAdapterConfiguration) + && java.util.Objects.equals( + this.subscriptionPlanNumber, other.subscriptionPlanNumber) + && java.util.Objects.equals( + this.ssdConfigurationRequested, other.ssdConfigurationRequested) + && 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.description == null ? 43 : this.description.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.systemModel == null ? 43 : this.systemModel.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer1 == null + ? 43 + : this.cloudControlPlaneServer1.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer2 == null + ? 43 + : this.cloudControlPlaneServer2.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = + (result * PRIME) + + (this.adminNetworkcidr == null ? 43 : this.adminNetworkcidr.hashCode()); + result = + (result * PRIME) + + (this.dataDiskPercentage == null + ? 43 + : this.dataDiskPercentage.hashCode()); + result = + (result * PRIME) + + (this.recoDiskPercentage == null + ? 43 + : this.recoDiskPercentage.hashCode()); + result = (result * PRIME) + (this.contacts == null ? 43 : this.contacts.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingMode == null + ? 43 + : this.clientNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingMode == null + ? 43 + : this.backupNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingMode == null + ? 43 + : this.cpsNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingInterface == null + ? 43 + : this.clientNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingInterface == null + ? 43 + : this.backupNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingInterface == null + ? 43 + : this.cpsNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemStorageInGbs == null + ? 43 + : this.acfsFileSystemStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemUsedStorageInGbs == null + ? 43 + : this.acfsFileSystemUsedStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.corporateProxy == null ? 43 : this.corporateProxy.hashCode()); + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.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.maintenanceWindow == null ? 43 : this.maintenanceWindow.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.timeLastStateUpdated == null + ? 43 + : this.timeLastStateUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeActivated == null ? 43 : this.timeActivated.hashCode()); + result = + (result * PRIME) + + (this.timeValidated == null ? 43 : this.timeValidated.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.rackSerialNumber == null ? 43 : this.rackSerialNumber.hashCode()); + result = (result * PRIME) + (this.servers == null ? 43 : this.servers.hashCode()); + result = + (result * PRIME) + + (this.computeCapacity == null ? 43 : this.computeCapacity.hashCode()); + result = + (result * PRIME) + + (this.storageCapacity == null ? 43 : this.storageCapacity.hashCode()); + result = + (result * PRIME) + + (this.systemStorageCapacity == null + ? 43 + : this.systemStorageCapacity.hashCode()); + result = + (result * PRIME) + + (this.networkAdapterConfiguration == null + ? 43 + : this.networkAdapterConfiguration.hashCode()); + result = + (result * PRIME) + + (this.subscriptionPlanNumber == null + ? 43 + : this.subscriptionPlanNumber.hashCode()); + result = + (result * PRIME) + + (this.ssdConfigurationRequested == null + ? 43 + : this.ssdConfigurationRequested.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureCollection.java new file mode 100644 index 00000000000..2a95320bb7b --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * A collection of Database Infrastructure 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfrastructureCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InfrastructureCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public InfrastructureCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of Database Infrastructure resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of Database Infrastructure 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 InfrastructureCollection build() { + InfrastructureCollection model = new InfrastructureCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfrastructureCollection 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); + } + + /** A list of Database Infrastructure resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of Database Infrastructure 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("InfrastructureCollection("); + 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 InfrastructureCollection)) { + return false; + } + + InfrastructureCollection other = (InfrastructureCollection) 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-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureContact.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureContact.java new file mode 100644 index 00000000000..c9f49e01257 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureContact.java @@ -0,0 +1,313 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Contact details for Database 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfrastructureContact.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InfrastructureContact + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "phoneNumber", + "email", + "isPrimary", + "isContactMosValidated" + }) + public InfrastructureContact( + String name, + String phoneNumber, + String email, + Boolean isPrimary, + Boolean isContactMosValidated) { + super(); + this.name = name; + this.phoneNumber = phoneNumber; + this.email = email; + this.isPrimary = isPrimary; + this.isContactMosValidated = isContactMosValidated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the Database Infrastructure contact. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the Database Infrastructure contact. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The phone number for the Database Infrastructure contact. */ + @com.fasterxml.jackson.annotation.JsonProperty("phoneNumber") + private String phoneNumber; + + /** + * The phone number for the Database Infrastructure contact. + * + * @param phoneNumber the value to set + * @return this builder + */ + public Builder phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + this.__explicitlySet__.add("phoneNumber"); + return this; + } + /** The email for the Database Infrastructure contact. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * The email for the Database Infrastructure contact. + * + * @param email the value to set + * @return this builder + */ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + /** + * If {@code true}, this Database Infrastructure contact is a primary contact. If {@code + * false}, this Database Infrastructure is a secondary contact. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isPrimary") + private Boolean isPrimary; + + /** + * If {@code true}, this Database Infrastructure contact is a primary contact. If {@code + * false}, this Database Infrastructure is a secondary contact. + * + * @param isPrimary the value to set + * @return this builder + */ + public Builder isPrimary(Boolean isPrimary) { + this.isPrimary = isPrimary; + this.__explicitlySet__.add("isPrimary"); + return this; + } + /** + * If {@code true}, this Database Infrastructure contact is a valid My Oracle Support (MOS) + * contact. If {@code false}, this Database Infrastructure contact is not a valid MOS + * contact. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isContactMosValidated") + private Boolean isContactMosValidated; + + /** + * If {@code true}, this Database Infrastructure contact is a valid My Oracle Support (MOS) + * contact. If {@code false}, this Database Infrastructure contact is not a valid MOS + * contact. + * + * @param isContactMosValidated the value to set + * @return this builder + */ + public Builder isContactMosValidated(Boolean isContactMosValidated) { + this.isContactMosValidated = isContactMosValidated; + this.__explicitlySet__.add("isContactMosValidated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfrastructureContact build() { + InfrastructureContact model = + new InfrastructureContact( + this.name, + this.phoneNumber, + this.email, + this.isPrimary, + this.isContactMosValidated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfrastructureContact model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("phoneNumber")) { + this.phoneNumber(model.getPhoneNumber()); + } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("isPrimary")) { + this.isPrimary(model.getIsPrimary()); + } + if (model.wasPropertyExplicitlySet("isContactMosValidated")) { + this.isContactMosValidated(model.getIsContactMosValidated()); + } + 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 Infrastructure contact. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the Database Infrastructure contact. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The phone number for the Database Infrastructure contact. */ + @com.fasterxml.jackson.annotation.JsonProperty("phoneNumber") + private final String phoneNumber; + + /** + * The phone number for the Database Infrastructure contact. + * + * @return the value + */ + public String getPhoneNumber() { + return phoneNumber; + } + + /** The email for the Database Infrastructure contact. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * The email for the Database Infrastructure contact. + * + * @return the value + */ + public String getEmail() { + return email; + } + + /** + * If {@code true}, this Database Infrastructure contact is a primary contact. If {@code false}, + * this Database Infrastructure is a secondary contact. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isPrimary") + private final Boolean isPrimary; + + /** + * If {@code true}, this Database Infrastructure contact is a primary contact. If {@code false}, + * this Database Infrastructure is a secondary contact. + * + * @return the value + */ + public Boolean getIsPrimary() { + return isPrimary; + } + + /** + * If {@code true}, this Database Infrastructure contact is a valid My Oracle Support (MOS) + * contact. If {@code false}, this Database Infrastructure contact is not a valid MOS contact. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isContactMosValidated") + private final Boolean isContactMosValidated; + + /** + * If {@code true}, this Database Infrastructure contact is a valid My Oracle Support (MOS) + * contact. If {@code false}, this Database Infrastructure contact is not a valid MOS contact. + * + * @return the value + */ + public Boolean getIsContactMosValidated() { + return isContactMosValidated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfrastructureContact("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", phoneNumber=").append(String.valueOf(this.phoneNumber)); + sb.append(", email=").append(String.valueOf(this.email)); + sb.append(", isPrimary=").append(String.valueOf(this.isPrimary)); + sb.append(", isContactMosValidated=").append(String.valueOf(this.isContactMosValidated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfrastructureContact)) { + return false; + } + + InfrastructureContact other = (InfrastructureContact) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.phoneNumber, other.phoneNumber) + && java.util.Objects.equals(this.email, other.email) + && java.util.Objects.equals(this.isPrimary, other.isPrimary) + && java.util.Objects.equals(this.isContactMosValidated, other.isContactMosValidated) + && 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.phoneNumber == null ? 43 : this.phoneNumber.hashCode()); + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); + result = (result * PRIME) + (this.isPrimary == null ? 43 : this.isPrimary.hashCode()); + result = + (result * PRIME) + + (this.isContactMosValidated == null + ? 43 + : this.isContactMosValidated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureLifecycleState.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureLifecycleState.java new file mode 100644 index 00000000000..6daec8fd54e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureLifecycleState.java @@ -0,0 +1,65 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Database Infrastructure lifecycle states. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum InfrastructureLifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + RequiresValidation("REQUIRES_VALIDATION"), + Validating("VALIDATING"), + ValidationFailed("VALIDATION_FAILED"), + RequiresActivation("REQUIRES_ACTIVATION"), + Activating("ACTIVATING"), + Active("ACTIVE"), + ActivationFailed("ACTIVATION_FAILED"), + Failed("FAILED"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Disconnected("DISCONNECTED"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + + /** + * 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(InfrastructureLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InfrastructureLifecycleState v : InfrastructureLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InfrastructureLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InfrastructureLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InfrastructureLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureScaleOption.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureScaleOption.java new file mode 100644 index 00000000000..8bdd4975cb8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureScaleOption.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * The available scale options for 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfrastructureScaleOption.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InfrastructureScaleOption + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"possibleSsdConfigurations"}) + public InfrastructureScaleOption(java.util.List possibleSsdConfigurations) { + super(); + this.possibleSsdConfigurations = possibleSsdConfigurations; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The available scale options for the infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("possibleSsdConfigurations") + private java.util.List possibleSsdConfigurations; + + /** + * The available scale options for the infrastructure. + * + * @param possibleSsdConfigurations the value to set + * @return this builder + */ + public Builder possibleSsdConfigurations( + java.util.List possibleSsdConfigurations) { + this.possibleSsdConfigurations = possibleSsdConfigurations; + this.__explicitlySet__.add("possibleSsdConfigurations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfrastructureScaleOption build() { + InfrastructureScaleOption model = + new InfrastructureScaleOption(this.possibleSsdConfigurations); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfrastructureScaleOption model) { + if (model.wasPropertyExplicitlySet("possibleSsdConfigurations")) { + this.possibleSsdConfigurations(model.getPossibleSsdConfigurations()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The available scale options for the infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("possibleSsdConfigurations") + private final java.util.List possibleSsdConfigurations; + + /** + * The available scale options for the infrastructure. + * + * @return the value + */ + public java.util.List getPossibleSsdConfigurations() { + return possibleSsdConfigurations; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfrastructureScaleOption("); + sb.append("super=").append(super.toString()); + sb.append("possibleSsdConfigurations=") + .append(String.valueOf(this.possibleSsdConfigurations)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfrastructureScaleOption)) { + return false; + } + + InfrastructureScaleOption other = (InfrastructureScaleOption) o; + return java.util.Objects.equals( + this.possibleSsdConfigurations, other.possibleSsdConfigurations) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.possibleSsdConfigurations == null + ? 43 + : this.possibleSsdConfigurations.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServer.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServer.java new file mode 100644 index 00000000000..48c587980bf --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServer.java @@ -0,0 +1,449 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Database Infrastructure Server 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfrastructureServer.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InfrastructureServer + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "serverName", + "serverIpAddress", + "ilomName", + "ilomIpAddress", + "lifecycleState", + "baseVmCount", + "instanceVmCount", + "computeCapacity" + }) + public InfrastructureServer( + String id, + String serverName, + String serverIpAddress, + String ilomName, + String ilomIpAddress, + InfrastructureServerLifecycleState lifecycleState, + Integer baseVmCount, + Integer instanceVmCount, + ComputeCapacityDetails computeCapacity) { + super(); + this.id = id; + this.serverName = serverName; + this.serverIpAddress = serverIpAddress; + this.ilomName = ilomName; + this.ilomIpAddress = ilomIpAddress; + this.lifecycleState = lifecycleState; + this.baseVmCount = baseVmCount; + this.instanceVmCount = instanceVmCount; + this.computeCapacity = computeCapacity; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Data Server of Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Data Server of Infrastructure. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Database Infrastructure Server name. */ + @com.fasterxml.jackson.annotation.JsonProperty("serverName") + private String serverName; + + /** + * Database Infrastructure Server name. + * + * @param serverName the value to set + * @return this builder + */ + public Builder serverName(String serverName) { + this.serverName = serverName; + this.__explicitlySet__.add("serverName"); + return this; + } + /** Database Infrastructure Server IP address. */ + @com.fasterxml.jackson.annotation.JsonProperty("serverIpAddress") + private String serverIpAddress; + + /** + * Database Infrastructure Server IP address. + * + * @param serverIpAddress the value to set + * @return this builder + */ + public Builder serverIpAddress(String serverIpAddress) { + this.serverIpAddress = serverIpAddress; + this.__explicitlySet__.add("serverIpAddress"); + return this; + } + /** Database Infrastructure Server ILOM name. */ + @com.fasterxml.jackson.annotation.JsonProperty("ilomName") + private String ilomName; + + /** + * Database Infrastructure Server ILOM name. + * + * @param ilomName the value to set + * @return this builder + */ + public Builder ilomName(String ilomName) { + this.ilomName = ilomName; + this.__explicitlySet__.add("ilomName"); + return this; + } + /** Database Infrastructure Server ILOM IP address. */ + @com.fasterxml.jackson.annotation.JsonProperty("ilomIpAddress") + private String ilomIpAddress; + + /** + * Database Infrastructure Server ILOM IP address. + * + * @param ilomIpAddress the value to set + * @return this builder + */ + public Builder ilomIpAddress(String ilomIpAddress) { + this.ilomIpAddress = ilomIpAddress; + this.__explicitlySet__.add("ilomIpAddress"); + return this; + } + /** The current state of the Database Infrastructure server. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private InfrastructureServerLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure server. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(InfrastructureServerLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Number of database virtual machines hosted on the server. */ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmCount") + private Integer baseVmCount; + + /** + * Number of database virtual machines hosted on the server. + * + * @param baseVmCount the value to set + * @return this builder + */ + public Builder baseVmCount(Integer baseVmCount) { + this.baseVmCount = baseVmCount; + this.__explicitlySet__.add("baseVmCount"); + return this; + } + /** Number of instances hosted on the server. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceVmCount") + private Integer instanceVmCount; + + /** + * Number of instances hosted on the server. + * + * @param instanceVmCount the value to set + * @return this builder + */ + public Builder instanceVmCount(Integer instanceVmCount) { + this.instanceVmCount = instanceVmCount; + this.__explicitlySet__.add("instanceVmCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private ComputeCapacityDetails computeCapacity; + + public Builder computeCapacity(ComputeCapacityDetails computeCapacity) { + this.computeCapacity = computeCapacity; + this.__explicitlySet__.add("computeCapacity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfrastructureServer build() { + InfrastructureServer model = + new InfrastructureServer( + this.id, + this.serverName, + this.serverIpAddress, + this.ilomName, + this.ilomIpAddress, + this.lifecycleState, + this.baseVmCount, + this.instanceVmCount, + this.computeCapacity); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfrastructureServer model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("serverName")) { + this.serverName(model.getServerName()); + } + if (model.wasPropertyExplicitlySet("serverIpAddress")) { + this.serverIpAddress(model.getServerIpAddress()); + } + if (model.wasPropertyExplicitlySet("ilomName")) { + this.ilomName(model.getIlomName()); + } + if (model.wasPropertyExplicitlySet("ilomIpAddress")) { + this.ilomIpAddress(model.getIlomIpAddress()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("baseVmCount")) { + this.baseVmCount(model.getBaseVmCount()); + } + if (model.wasPropertyExplicitlySet("instanceVmCount")) { + this.instanceVmCount(model.getInstanceVmCount()); + } + if (model.wasPropertyExplicitlySet("computeCapacity")) { + this.computeCapacity(model.getComputeCapacity()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Data Server of Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Oracle Data Server of Infrastructure. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Database Infrastructure Server name. */ + @com.fasterxml.jackson.annotation.JsonProperty("serverName") + private final String serverName; + + /** + * Database Infrastructure Server name. + * + * @return the value + */ + public String getServerName() { + return serverName; + } + + /** Database Infrastructure Server IP address. */ + @com.fasterxml.jackson.annotation.JsonProperty("serverIpAddress") + private final String serverIpAddress; + + /** + * Database Infrastructure Server IP address. + * + * @return the value + */ + public String getServerIpAddress() { + return serverIpAddress; + } + + /** Database Infrastructure Server ILOM name. */ + @com.fasterxml.jackson.annotation.JsonProperty("ilomName") + private final String ilomName; + + /** + * Database Infrastructure Server ILOM name. + * + * @return the value + */ + public String getIlomName() { + return ilomName; + } + + /** Database Infrastructure Server ILOM IP address. */ + @com.fasterxml.jackson.annotation.JsonProperty("ilomIpAddress") + private final String ilomIpAddress; + + /** + * Database Infrastructure Server ILOM IP address. + * + * @return the value + */ + public String getIlomIpAddress() { + return ilomIpAddress; + } + + /** The current state of the Database Infrastructure server. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final InfrastructureServerLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure server. + * + * @return the value + */ + public InfrastructureServerLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Number of database virtual machines hosted on the server. */ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmCount") + private final Integer baseVmCount; + + /** + * Number of database virtual machines hosted on the server. + * + * @return the value + */ + public Integer getBaseVmCount() { + return baseVmCount; + } + + /** Number of instances hosted on the server. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceVmCount") + private final Integer instanceVmCount; + + /** + * Number of instances hosted on the server. + * + * @return the value + */ + public Integer getInstanceVmCount() { + return instanceVmCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private final ComputeCapacityDetails computeCapacity; + + public ComputeCapacityDetails getComputeCapacity() { + return computeCapacity; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfrastructureServer("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", serverName=").append(String.valueOf(this.serverName)); + sb.append(", serverIpAddress=").append(String.valueOf(this.serverIpAddress)); + sb.append(", ilomName=").append(String.valueOf(this.ilomName)); + sb.append(", ilomIpAddress=").append(String.valueOf(this.ilomIpAddress)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", baseVmCount=").append(String.valueOf(this.baseVmCount)); + sb.append(", instanceVmCount=").append(String.valueOf(this.instanceVmCount)); + sb.append(", computeCapacity=").append(String.valueOf(this.computeCapacity)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfrastructureServer)) { + return false; + } + + InfrastructureServer other = (InfrastructureServer) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.serverName, other.serverName) + && java.util.Objects.equals(this.serverIpAddress, other.serverIpAddress) + && java.util.Objects.equals(this.ilomName, other.ilomName) + && java.util.Objects.equals(this.ilomIpAddress, other.ilomIpAddress) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.baseVmCount, other.baseVmCount) + && java.util.Objects.equals(this.instanceVmCount, other.instanceVmCount) + && java.util.Objects.equals(this.computeCapacity, other.computeCapacity) + && 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.serverName == null ? 43 : this.serverName.hashCode()); + result = + (result * PRIME) + + (this.serverIpAddress == null ? 43 : this.serverIpAddress.hashCode()); + result = (result * PRIME) + (this.ilomName == null ? 43 : this.ilomName.hashCode()); + result = + (result * PRIME) + + (this.ilomIpAddress == null ? 43 : this.ilomIpAddress.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.baseVmCount == null ? 43 : this.baseVmCount.hashCode()); + result = + (result * PRIME) + + (this.instanceVmCount == null ? 43 : this.instanceVmCount.hashCode()); + result = + (result * PRIME) + + (this.computeCapacity == null ? 43 : this.computeCapacity.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServerLifecycleState.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServerLifecycleState.java new file mode 100644 index 00000000000..c8f912d6e90 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServerLifecycleState.java @@ -0,0 +1,65 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Database Infrastructure server lifecycle states. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum InfrastructureServerLifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + RequiresValidation("REQUIRES_VALIDATION"), + Validating("VALIDATING"), + ValidationFailed("VALIDATION_FAILED"), + RequiresActivation("REQUIRES_ACTIVATION"), + Activating("ACTIVATING"), + Active("ACTIVE"), + ActivationFailed("ACTIVATION_FAILED"), + Failed("FAILED"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Disconnected("DISCONNECTED"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + + /** + * 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(InfrastructureServerLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InfrastructureServerLifecycleState v : InfrastructureServerLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InfrastructureServerLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InfrastructureServerLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InfrastructureServerLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureSummary.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureSummary.java new file mode 100644 index 00000000000..240c4dfdf6b --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureSummary.java @@ -0,0 +1,1820 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Database Infrastructure resource summary.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfrastructureSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InfrastructureSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "description", + "compartmentId", + "displayName", + "systemModel", + "version", + "shape", + "cloudControlPlaneServer1", + "cloudControlPlaneServer2", + "netmask", + "gateway", + "adminNetworkcidr", + "contacts", + "dnsServers", + "ntpServers", + "clientNetworkBondingMode", + "backupNetworkBondingMode", + "cpsNetworkBondingMode", + "clientNetworkBondingInterface", + "backupNetworkBondingInterface", + "cpsNetworkBondingInterface", + "acfsFileSystemStorageInGbs", + "acfsFileSystemUsedStorageInGbs", + "corporateProxy", + "freeformTags", + "definedTags", + "systemTags", + "maintenanceWindow", + "timeCreated", + "timeUpdated", + "timeLastStateUpdated", + "timeActivated", + "timeValidated", + "lifecycleState", + "lifecycleStateDetails", + "computeCapacity", + "storageCapacity", + "systemStorageCapacity", + "subscriptionPlanNumber", + "ssdConfigurationRequested" + }) + public InfrastructureSummary( + String id, + String description, + String compartmentId, + String displayName, + SystemModelEnum systemModel, + String version, + ShapeEnum shape, + String cloudControlPlaneServer1, + String cloudControlPlaneServer2, + String netmask, + String gateway, + String adminNetworkcidr, + java.util.List contacts, + java.util.List dnsServers, + java.util.List ntpServers, + NetworkBondingMode clientNetworkBondingMode, + NetworkBondingMode backupNetworkBondingMode, + NetworkBondingMode cpsNetworkBondingMode, + NetworkBondingInterfaceEnum clientNetworkBondingInterface, + NetworkBondingInterfaceEnum backupNetworkBondingInterface, + NetworkBondingInterfaceEnum cpsNetworkBondingInterface, + Double acfsFileSystemStorageInGbs, + Double acfsFileSystemUsedStorageInGbs, + String corporateProxy, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + MaintenanceWindow maintenanceWindow, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastStateUpdated, + java.util.Date timeActivated, + java.util.Date timeValidated, + InfrastructureLifecycleState lifecycleState, + String lifecycleStateDetails, + ComputeCapacityDetails computeCapacity, + java.util.List storageCapacity, + SystemStorageCapacityDetails systemStorageCapacity, + String subscriptionPlanNumber, + ShapeEnum ssdConfigurationRequested) { + super(); + this.id = id; + this.description = description; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.systemModel = systemModel; + this.version = version; + this.shape = shape; + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.netmask = netmask; + this.gateway = gateway; + this.adminNetworkcidr = adminNetworkcidr; + this.contacts = contacts; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.acfsFileSystemUsedStorageInGbs = acfsFileSystemUsedStorageInGbs; + this.corporateProxy = corporateProxy; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.maintenanceWindow = maintenanceWindow; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeLastStateUpdated = timeLastStateUpdated; + this.timeActivated = timeActivated; + this.timeValidated = timeValidated; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.computeCapacity = computeCapacity; + this.storageCapacity = storageCapacity; + this.systemStorageCapacity = systemStorageCapacity; + this.subscriptionPlanNumber = subscriptionPlanNumber; + this.ssdConfigurationRequested = ssdConfigurationRequested; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Database Infrastructure description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Database Infrastructure description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be + * unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Database Infrastructure. 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; + } + /** + * Database Infrastructure System Model specification. The system model determines the model + * of the Database Infrastructure hardware to be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model + * of the Database Infrastructure hardware to be used. + * + * @param systemModel the value to set + * @return this builder + */ + public Builder systemModel(SystemModelEnum systemModel) { + this.systemModel = systemModel; + this.__explicitlySet__.add("systemModel"); + return this; + } + /** The version of the system software on the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the system software on the Database Infrastructure. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, + * storage, and memory resources allocated to the instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, + * storage, and memory resources allocated to the instance. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(ShapeEnum shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** The IP address for the first control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * + * @param cloudControlPlaneServer1 the value to set + * @return this builder + */ + public Builder cloudControlPlaneServer1(String cloudControlPlaneServer1) { + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.__explicitlySet__.add("cloudControlPlaneServer1"); + return this; + } + /** The IP address for the second control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * + * @param cloudControlPlaneServer2 the value to set + * @return this builder + */ + public Builder cloudControlPlaneServer2(String cloudControlPlaneServer2) { + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.__explicitlySet__.add("cloudControlPlaneServer2"); + return this; + } + /** The netmask for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask for the control plane network. + * + * @param netmask the value to set + * @return this builder + */ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** The gateway for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway for the control plane network. + * + * @param gateway the value to set + * @return this builder + */ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The CIDR block for the system network. The system network is a private network in + * Database Infrastructure and is not connected to your corporate network. The system + * network is used for storage (ASM) traffic, high-performance interconnect traffic and + * administration of infrastructure components. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in + * Database Infrastructure and is not connected to your corporate network. The system + * network is used for storage (ASM) traffic, high-performance interconnect traffic and + * administration of infrastructure components. + * + * @param adminNetworkcidr the value to set + * @return this builder + */ + public Builder adminNetworkcidr(String adminNetworkcidr) { + this.adminNetworkcidr = adminNetworkcidr; + this.__explicitlySet__.add("adminNetworkcidr"); + return this; + } + /** The list of contacts for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * + * @param contacts the value to set + * @return this builder + */ + public Builder contacts(java.util.List contacts) { + this.contacts = contacts; + this.__explicitlySet__.add("contacts"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** The network bonding mode for Client networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * + * @param clientNetworkBondingMode the value to set + * @return this builder + */ + public Builder clientNetworkBondingMode(NetworkBondingMode clientNetworkBondingMode) { + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.__explicitlySet__.add("clientNetworkBondingMode"); + return this; + } + /** The network bonding mode for Backup networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * + * @param backupNetworkBondingMode the value to set + * @return this builder + */ + public Builder backupNetworkBondingMode(NetworkBondingMode backupNetworkBondingMode) { + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.__explicitlySet__.add("backupNetworkBondingMode"); + return this; + } + /** The network bonding mode for CPS networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * + * @param cpsNetworkBondingMode the value to set + * @return this builder + */ + public Builder cpsNetworkBondingMode(NetworkBondingMode cpsNetworkBondingMode) { + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.__explicitlySet__.add("cpsNetworkBondingMode"); + return this; + } + /** The network bonding interface for client network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * + * @param clientNetworkBondingInterface the value to set + * @return this builder + */ + public Builder clientNetworkBondingInterface( + NetworkBondingInterfaceEnum clientNetworkBondingInterface) { + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.__explicitlySet__.add("clientNetworkBondingInterface"); + return this; + } + /** The network bonding interface for backup network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * + * @param backupNetworkBondingInterface the value to set + * @return this builder + */ + public Builder backupNetworkBondingInterface( + NetworkBondingInterfaceEnum backupNetworkBondingInterface) { + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.__explicitlySet__.add("backupNetworkBondingInterface"); + return this; + } + /** The network bonding interface for CPS network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * + * @param cpsNetworkBondingInterface the value to set + * @return this builder + */ + public Builder cpsNetworkBondingInterface( + NetworkBondingInterfaceEnum cpsNetworkBondingInterface) { + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.__explicitlySet__.add("cpsNetworkBondingInterface"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + * + * @param acfsFileSystemStorageInGbs the value to set + * @return this builder + */ + public Builder acfsFileSystemStorageInGbs(Double acfsFileSystemStorageInGbs) { + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemStorageInGbs"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for + * creating local storage for VM Clusters and application VMs. This attribute is deprecated + * and will be removed in a subsequent release. Please read from systemStorageCapacity + * instead. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemUsedStorageInGbs") + private Double acfsFileSystemUsedStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for + * creating local storage for VM Clusters and application VMs. This attribute is deprecated + * and will be removed in a subsequent release. Please read from systemStorageCapacity + * instead. + * + * @param acfsFileSystemUsedStorageInGbs the value to set + * @return this builder + */ + public Builder acfsFileSystemUsedStorageInGbs(Double acfsFileSystemUsedStorageInGbs) { + this.acfsFileSystemUsedStorageInGbs = acfsFileSystemUsedStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemUsedStorageInGbs"); + return this; + } + /** + * The corporate network proxy for access to the control plane network. Oracle recommends + * using an HTTPS proxy when possible for enhanced security. + */ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends + * using an HTTPS proxy when possible for enhanced security. + * + * @param corporateProxy the value to set + * @return this builder + */ + public Builder corporateProxy(String corporateProxy) { + this.corporateProxy = corporateProxy; + this.__explicitlySet__.add("corporateProxy"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private MaintenanceWindow maintenanceWindow; + + public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + this.__explicitlySet__.add("maintenanceWindow"); + return this; + } + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted + * datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime + * string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The time, in RFC3339 format, when the lifecycle state was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastStateUpdated") + private java.util.Date timeLastStateUpdated; + + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + * @param timeLastStateUpdated the value to set + * @return this builder + */ + public Builder timeLastStateUpdated(java.util.Date timeLastStateUpdated) { + this.timeLastStateUpdated = timeLastStateUpdated; + this.__explicitlySet__.add("timeLastStateUpdated"); + return this; + } + /** The time, in RFC3339 format, when the Database Infrastructure was activated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private java.util.Date timeActivated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + * @param timeActivated the value to set + * @return this builder + */ + public Builder timeActivated(java.util.Date timeActivated) { + this.timeActivated = timeActivated; + this.__explicitlySet__.add("timeActivated"); + return this; + } + /** The time, in RFC3339 format, when the Database Infrastructure network was validated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidated") + private java.util.Date timeValidated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + * @param timeValidated the value to set + * @return this builder + */ + public Builder timeValidated(java.util.Date timeValidated) { + this.timeValidated = timeValidated; + this.__explicitlySet__.add("timeValidated"); + return this; + } + /** The current state of the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private InfrastructureLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(InfrastructureLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Lifecycle state details of the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Lifecycle state details of the Database Infrastructure. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private ComputeCapacityDetails computeCapacity; + + public Builder computeCapacity(ComputeCapacityDetails computeCapacity) { + this.computeCapacity = computeCapacity; + this.__explicitlySet__.add("computeCapacity"); + return this; + } + /** + * Capacity details of the Storage disk group. This attribute is deprecated and will be + * removed in a subsequent release. Please use systemStorageCapacity instead. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageCapacity") + private java.util.List storageCapacity; + + /** + * Capacity details of the Storage disk group. This attribute is deprecated and will be + * removed in a subsequent release. Please use systemStorageCapacity instead. + * + * @param storageCapacity the value to set + * @return this builder + */ + public Builder storageCapacity(java.util.List storageCapacity) { + this.storageCapacity = storageCapacity; + this.__explicitlySet__.add("storageCapacity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemStorageCapacity") + private SystemStorageCapacityDetails systemStorageCapacity; + + public Builder systemStorageCapacity(SystemStorageCapacityDetails systemStorageCapacity) { + this.systemStorageCapacity = systemStorageCapacity; + this.__explicitlySet__.add("systemStorageCapacity"); + return this; + } + /** The unique identifier for the subscription plan number. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionPlanNumber") + private String subscriptionPlanNumber; + + /** + * The unique identifier for the subscription plan number. + * + * @param subscriptionPlanNumber the value to set + * @return this builder + */ + public Builder subscriptionPlanNumber(String subscriptionPlanNumber) { + this.subscriptionPlanNumber = subscriptionPlanNumber; + this.__explicitlySet__.add("subscriptionPlanNumber"); + return this; + } + /** SSD configuration requested for the infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private ShapeEnum ssdConfigurationRequested; + + /** + * SSD configuration requested for the infrastructure. + * + * @param ssdConfigurationRequested the value to set + * @return this builder + */ + public Builder ssdConfigurationRequested(ShapeEnum ssdConfigurationRequested) { + this.ssdConfigurationRequested = ssdConfigurationRequested; + this.__explicitlySet__.add("ssdConfigurationRequested"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfrastructureSummary build() { + InfrastructureSummary model = + new InfrastructureSummary( + this.id, + this.description, + this.compartmentId, + this.displayName, + this.systemModel, + this.version, + this.shape, + this.cloudControlPlaneServer1, + this.cloudControlPlaneServer2, + this.netmask, + this.gateway, + this.adminNetworkcidr, + this.contacts, + this.dnsServers, + this.ntpServers, + this.clientNetworkBondingMode, + this.backupNetworkBondingMode, + this.cpsNetworkBondingMode, + this.clientNetworkBondingInterface, + this.backupNetworkBondingInterface, + this.cpsNetworkBondingInterface, + this.acfsFileSystemStorageInGbs, + this.acfsFileSystemUsedStorageInGbs, + this.corporateProxy, + this.freeformTags, + this.definedTags, + this.systemTags, + this.maintenanceWindow, + this.timeCreated, + this.timeUpdated, + this.timeLastStateUpdated, + this.timeActivated, + this.timeValidated, + this.lifecycleState, + this.lifecycleStateDetails, + this.computeCapacity, + this.storageCapacity, + this.systemStorageCapacity, + this.subscriptionPlanNumber, + this.ssdConfigurationRequested); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfrastructureSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("systemModel")) { + this.systemModel(model.getSystemModel()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer1")) { + this.cloudControlPlaneServer1(model.getCloudControlPlaneServer1()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer2")) { + this.cloudControlPlaneServer2(model.getCloudControlPlaneServer2()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("adminNetworkcidr")) { + this.adminNetworkcidr(model.getAdminNetworkcidr()); + } + if (model.wasPropertyExplicitlySet("contacts")) { + this.contacts(model.getContacts()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingMode")) { + this.clientNetworkBondingMode(model.getClientNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingMode")) { + this.backupNetworkBondingMode(model.getBackupNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingMode")) { + this.cpsNetworkBondingMode(model.getCpsNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingInterface")) { + this.clientNetworkBondingInterface(model.getClientNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingInterface")) { + this.backupNetworkBondingInterface(model.getBackupNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingInterface")) { + this.cpsNetworkBondingInterface(model.getCpsNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemStorageInGbs")) { + this.acfsFileSystemStorageInGbs(model.getAcfsFileSystemStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemUsedStorageInGbs")) { + this.acfsFileSystemUsedStorageInGbs(model.getAcfsFileSystemUsedStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("corporateProxy")) { + this.corporateProxy(model.getCorporateProxy()); + } + 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("maintenanceWindow")) { + this.maintenanceWindow(model.getMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastStateUpdated")) { + this.timeLastStateUpdated(model.getTimeLastStateUpdated()); + } + if (model.wasPropertyExplicitlySet("timeActivated")) { + this.timeActivated(model.getTimeActivated()); + } + if (model.wasPropertyExplicitlySet("timeValidated")) { + this.timeValidated(model.getTimeValidated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("computeCapacity")) { + this.computeCapacity(model.getComputeCapacity()); + } + if (model.wasPropertyExplicitlySet("storageCapacity")) { + this.storageCapacity(model.getStorageCapacity()); + } + if (model.wasPropertyExplicitlySet("systemStorageCapacity")) { + this.systemStorageCapacity(model.getSystemStorageCapacity()); + } + if (model.wasPropertyExplicitlySet("subscriptionPlanNumber")) { + this.subscriptionPlanNumber(model.getSubscriptionPlanNumber()); + } + if (model.wasPropertyExplicitlySet("ssdConfigurationRequested")) { + this.ssdConfigurationRequested(model.getSsdConfigurationRequested()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Database Infrastructure description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Database Infrastructure description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Database Infrastructure System Model specification. The system model determines the model of + * the Database Infrastructure hardware to be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private final SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of + * the Database Infrastructure hardware to be used. + * + * @return the value + */ + public SystemModelEnum getSystemModel() { + return systemModel; + } + + /** The version of the system software on the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the system software on the Database Infrastructure. + * + * @return the value + */ + public String getVersion() { + return version; + } + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, + * and memory resources allocated to the instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, + * and memory resources allocated to the instance. + * + * @return the value + */ + public ShapeEnum getShape() { + return shape; + } + + /** The IP address for the first control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private final String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * + * @return the value + */ + public String getCloudControlPlaneServer1() { + return cloudControlPlaneServer1; + } + + /** The IP address for the second control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private final String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * + * @return the value + */ + public String getCloudControlPlaneServer2() { + return cloudControlPlaneServer2; + } + + /** The netmask for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask for the control plane network. + * + * @return the value + */ + public String getNetmask() { + return netmask; + } + + /** The gateway for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway for the control plane network. + * + * @return the value + */ + public String getGateway() { + return gateway; + } + + /** + * The CIDR block for the system network. The system network is a private network in Database + * Infrastructure and is not connected to your corporate network. The system network is used for + * storage (ASM) traffic, high-performance interconnect traffic and administration of + * infrastructure components. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private final String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database + * Infrastructure and is not connected to your corporate network. The system network is used for + * storage (ASM) traffic, high-performance interconnect traffic and administration of + * infrastructure components. + * + * @return the value + */ + public String getAdminNetworkcidr() { + return adminNetworkcidr; + } + + /** The list of contacts for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private final java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * + * @return the value + */ + public java.util.List getContacts() { + return contacts; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** The network bonding mode for Client networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private final NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getClientNetworkBondingMode() { + return clientNetworkBondingMode; + } + + /** The network bonding mode for Backup networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private final NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getBackupNetworkBondingMode() { + return backupNetworkBondingMode; + } + + /** The network bonding mode for CPS networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private final NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getCpsNetworkBondingMode() { + return cpsNetworkBondingMode; + } + + /** The network bonding interface for client network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private final NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getClientNetworkBondingInterface() { + return clientNetworkBondingInterface; + } + + /** The network bonding interface for backup network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private final NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getBackupNetworkBondingInterface() { + return backupNetworkBondingInterface; + } + + /** The network bonding interface for CPS network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private final NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getCpsNetworkBondingInterface() { + return cpsNetworkBondingInterface; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private final Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + * + * @return the value + */ + public Double getAcfsFileSystemStorageInGbs() { + return acfsFileSystemStorageInGbs; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating + * local storage for VM Clusters and application VMs. This attribute is deprecated and will be + * removed in a subsequent release. Please read from systemStorageCapacity instead. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemUsedStorageInGbs") + private final Double acfsFileSystemUsedStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating + * local storage for VM Clusters and application VMs. This attribute is deprecated and will be + * removed in a subsequent release. Please read from systemStorageCapacity instead. + * + * @return the value + */ + public Double getAcfsFileSystemUsedStorageInGbs() { + return acfsFileSystemUsedStorageInGbs; + } + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using + * an HTTPS proxy when possible for enhanced security. + */ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private final String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using + * an HTTPS proxy when possible for enhanced security. + * + * @return the value + */ + public String getCorporateProxy() { + return corporateProxy; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private final MaintenanceWindow maintenanceWindow; + + public MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The time, in RFC3339 format, when the lifecycle state was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastStateUpdated") + private final java.util.Date timeLastStateUpdated; + + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + * @return the value + */ + public java.util.Date getTimeLastStateUpdated() { + return timeLastStateUpdated; + } + + /** The time, in RFC3339 format, when the Database Infrastructure was activated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private final java.util.Date timeActivated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + * @return the value + */ + public java.util.Date getTimeActivated() { + return timeActivated; + } + + /** The time, in RFC3339 format, when the Database Infrastructure network was validated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidated") + private final java.util.Date timeValidated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + * @return the value + */ + public java.util.Date getTimeValidated() { + return timeValidated; + } + + /** The current state of the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final InfrastructureLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure. + * + * @return the value + */ + public InfrastructureLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Lifecycle state details of the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Lifecycle state details of the Database Infrastructure. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private final ComputeCapacityDetails computeCapacity; + + public ComputeCapacityDetails getComputeCapacity() { + return computeCapacity; + } + + /** + * Capacity details of the Storage disk group. This attribute is deprecated and will be removed + * in a subsequent release. Please use systemStorageCapacity instead. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageCapacity") + private final java.util.List storageCapacity; + + /** + * Capacity details of the Storage disk group. This attribute is deprecated and will be removed + * in a subsequent release. Please use systemStorageCapacity instead. + * + * @return the value + */ + public java.util.List getStorageCapacity() { + return storageCapacity; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemStorageCapacity") + private final SystemStorageCapacityDetails systemStorageCapacity; + + public SystemStorageCapacityDetails getSystemStorageCapacity() { + return systemStorageCapacity; + } + + /** The unique identifier for the subscription plan number. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionPlanNumber") + private final String subscriptionPlanNumber; + + /** + * The unique identifier for the subscription plan number. + * + * @return the value + */ + public String getSubscriptionPlanNumber() { + return subscriptionPlanNumber; + } + + /** SSD configuration requested for the infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private final ShapeEnum ssdConfigurationRequested; + + /** + * SSD configuration requested for the infrastructure. + * + * @return the value + */ + public ShapeEnum getSsdConfigurationRequested() { + return ssdConfigurationRequested; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfrastructureSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", systemModel=").append(String.valueOf(this.systemModel)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", cloudControlPlaneServer1=") + .append(String.valueOf(this.cloudControlPlaneServer1)); + sb.append(", cloudControlPlaneServer2=") + .append(String.valueOf(this.cloudControlPlaneServer2)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", adminNetworkcidr=").append(String.valueOf(this.adminNetworkcidr)); + sb.append(", contacts=").append(String.valueOf(this.contacts)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", clientNetworkBondingMode=") + .append(String.valueOf(this.clientNetworkBondingMode)); + sb.append(", backupNetworkBondingMode=") + .append(String.valueOf(this.backupNetworkBondingMode)); + sb.append(", cpsNetworkBondingMode=").append(String.valueOf(this.cpsNetworkBondingMode)); + sb.append(", clientNetworkBondingInterface=") + .append(String.valueOf(this.clientNetworkBondingInterface)); + sb.append(", backupNetworkBondingInterface=") + .append(String.valueOf(this.backupNetworkBondingInterface)); + sb.append(", cpsNetworkBondingInterface=") + .append(String.valueOf(this.cpsNetworkBondingInterface)); + sb.append(", acfsFileSystemStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemStorageInGbs)); + sb.append(", acfsFileSystemUsedStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemUsedStorageInGbs)); + sb.append(", corporateProxy=").append(String.valueOf(this.corporateProxy)); + 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(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeLastStateUpdated=").append(String.valueOf(this.timeLastStateUpdated)); + sb.append(", timeActivated=").append(String.valueOf(this.timeActivated)); + sb.append(", timeValidated=").append(String.valueOf(this.timeValidated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", computeCapacity=").append(String.valueOf(this.computeCapacity)); + sb.append(", storageCapacity=").append(String.valueOf(this.storageCapacity)); + sb.append(", systemStorageCapacity=").append(String.valueOf(this.systemStorageCapacity)); + sb.append(", subscriptionPlanNumber=").append(String.valueOf(this.subscriptionPlanNumber)); + sb.append(", ssdConfigurationRequested=") + .append(String.valueOf(this.ssdConfigurationRequested)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfrastructureSummary)) { + return false; + } + + InfrastructureSummary other = (InfrastructureSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.systemModel, other.systemModel) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals( + this.cloudControlPlaneServer1, other.cloudControlPlaneServer1) + && java.util.Objects.equals( + this.cloudControlPlaneServer2, other.cloudControlPlaneServer2) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.adminNetworkcidr, other.adminNetworkcidr) + && java.util.Objects.equals(this.contacts, other.contacts) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals( + this.clientNetworkBondingMode, other.clientNetworkBondingMode) + && java.util.Objects.equals( + this.backupNetworkBondingMode, other.backupNetworkBondingMode) + && java.util.Objects.equals(this.cpsNetworkBondingMode, other.cpsNetworkBondingMode) + && java.util.Objects.equals( + this.clientNetworkBondingInterface, other.clientNetworkBondingInterface) + && java.util.Objects.equals( + this.backupNetworkBondingInterface, other.backupNetworkBondingInterface) + && java.util.Objects.equals( + this.cpsNetworkBondingInterface, other.cpsNetworkBondingInterface) + && java.util.Objects.equals( + this.acfsFileSystemStorageInGbs, other.acfsFileSystemStorageInGbs) + && java.util.Objects.equals( + this.acfsFileSystemUsedStorageInGbs, other.acfsFileSystemUsedStorageInGbs) + && java.util.Objects.equals(this.corporateProxy, other.corporateProxy) + && 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.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeLastStateUpdated, other.timeLastStateUpdated) + && java.util.Objects.equals(this.timeActivated, other.timeActivated) + && java.util.Objects.equals(this.timeValidated, other.timeValidated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.computeCapacity, other.computeCapacity) + && java.util.Objects.equals(this.storageCapacity, other.storageCapacity) + && java.util.Objects.equals(this.systemStorageCapacity, other.systemStorageCapacity) + && java.util.Objects.equals( + this.subscriptionPlanNumber, other.subscriptionPlanNumber) + && java.util.Objects.equals( + this.ssdConfigurationRequested, other.ssdConfigurationRequested) + && 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.description == null ? 43 : this.description.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.systemModel == null ? 43 : this.systemModel.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer1 == null + ? 43 + : this.cloudControlPlaneServer1.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer2 == null + ? 43 + : this.cloudControlPlaneServer2.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = + (result * PRIME) + + (this.adminNetworkcidr == null ? 43 : this.adminNetworkcidr.hashCode()); + result = (result * PRIME) + (this.contacts == null ? 43 : this.contacts.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingMode == null + ? 43 + : this.clientNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingMode == null + ? 43 + : this.backupNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingMode == null + ? 43 + : this.cpsNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingInterface == null + ? 43 + : this.clientNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingInterface == null + ? 43 + : this.backupNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingInterface == null + ? 43 + : this.cpsNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemStorageInGbs == null + ? 43 + : this.acfsFileSystemStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemUsedStorageInGbs == null + ? 43 + : this.acfsFileSystemUsedStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.corporateProxy == null ? 43 : this.corporateProxy.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.maintenanceWindow == null ? 43 : this.maintenanceWindow.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.timeLastStateUpdated == null + ? 43 + : this.timeLastStateUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeActivated == null ? 43 : this.timeActivated.hashCode()); + result = + (result * PRIME) + + (this.timeValidated == null ? 43 : this.timeValidated.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.computeCapacity == null ? 43 : this.computeCapacity.hashCode()); + result = + (result * PRIME) + + (this.storageCapacity == null ? 43 : this.storageCapacity.hashCode()); + result = + (result * PRIME) + + (this.systemStorageCapacity == null + ? 43 + : this.systemStorageCapacity.hashCode()); + result = + (result * PRIME) + + (this.subscriptionPlanNumber == null + ? 43 + : this.subscriptionPlanNumber.hashCode()); + result = + (result * PRIME) + + (this.ssdConfigurationRequested == null + ? 43 + : this.ssdConfigurationRequested.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureType.java new file mode 100644 index 00000000000..07ee56f3414 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureType.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** The infrastructure type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum InfrastructureType implements com.oracle.bmc.http.internal.BmcEnum { + Cloud("CLOUD"), + CloudAtCustomer("CLOUD_AT_CUSTOMER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InfrastructureType v : InfrastructureType.values()) { + map.put(v.getValue(), v); + } + } + + InfrastructureType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InfrastructureType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid InfrastructureType: " + key); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecution.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecution.java new file mode 100644 index 00000000000..5f8ea95b776 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecution.java @@ -0,0 +1,1096 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Details of a maintenance executions.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceExecution.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaintenanceExecution + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleDetails", + "timeStarted", + "timeEnded", + "targetResourceType", + "infrastructureId", + "maintenanceRunId", + "maintenanceType", + "maintenanceSubtype", + "patchingMode", + "sourceVersion", + "targetVersion", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "workflowId", + "systemTags", + "definedTags", + "freeformTags", + "totalTimeTakenInMins" + }) + public MaintenanceExecution( + String id, + String compartmentId, + String displayName, + String description, + MaintenanceRunLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeStarted, + java.util.Date timeEnded, + TargetResourceTypeEnum targetResourceType, + String infrastructureId, + String maintenanceRunId, + MaintenanceTypeEnum maintenanceType, + MaintenanceSubtypeEnum maintenanceSubtype, + PatchingModeEnum patchingMode, + String sourceVersion, + String targetVersion, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + String workflowId, + java.util.Map> systemTags, + java.util.Map> definedTags, + java.util.Map freeformTags, + Integer totalTimeTakenInMins) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.targetResourceType = targetResourceType; + this.infrastructureId = infrastructureId; + this.maintenanceRunId = maintenanceRunId; + this.maintenanceType = maintenanceType; + this.maintenanceSubtype = maintenanceSubtype; + this.patchingMode = patchingMode; + this.sourceVersion = sourceVersion; + this.targetVersion = targetVersion; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.workflowId = workflowId; + this.systemTags = systemTags; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.totalTimeTakenInMins = totalTimeTakenInMins; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run execution. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run execution. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The user-friendly name for the maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the maintenance run execution. + * + * @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 maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the maintenance run execution. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The state of the maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MaintenanceRunLifecycleState lifecycleState; + + /** + * The state of the maintenance run execution. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(MaintenanceRunLifecycleState 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 maintenance run execution started. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the maintenance run execution 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 the maintenance run was completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * + * @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 type of the target resource on which the maintenance run execution occurred. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run execution occurred. + * + * @param targetResourceType the value to set + * @return this builder + */ + public Builder targetResourceType(TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + this.__explicitlySet__.add("targetResourceType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurred. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurred. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run to which this maintenance execution belongs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceRunId") + private String maintenanceRunId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run to which this maintenance execution belongs. + * + * @param maintenanceRunId the value to set + * @return this builder + */ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + this.__explicitlySet__.add("maintenanceRunId"); + return this; + } + /** Maintenance type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * + * @param maintenanceType the value to set + * @return this builder + */ + public Builder maintenanceType(MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + this.__explicitlySet__.add("maintenanceType"); + return this; + } + /** Maintenance run execution sub-type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run execution sub-type. + * + * @param maintenanceSubtype the value to set + * @return this builder + */ + public Builder maintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + this.__explicitlySet__.add("maintenanceSubtype"); + return this; + } + /** The patching mode for the maintenance run that is being executed. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private PatchingModeEnum patchingMode; + + /** + * The patching mode for the maintenance run that is being executed. + * + * @param patchingMode the value to set + * @return this builder + */ + public Builder patchingMode(PatchingModeEnum patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** The source software version for the Oracle infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * + * @param sourceVersion the value to set + * @return this builder + */ + public Builder sourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + this.__explicitlySet__.add("sourceVersion"); + return this; + } + /** The target software version for the Database Infrastructure patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * + * @param targetVersion the value to set + * @return this builder + */ + public Builder targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + this.__explicitlySet__.add("targetVersion"); + return this; + } + /** + * At the time of execution whether the custom action time out is enabled for the + * maintenance run that is being executed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * At the time of execution whether the custom action time out is enabled for the + * maintenance run that is being executed. + * + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + */ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each compute + * server patching operation. Supported values are 15 to 120 minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute + * server patching operation. Supported values are 15 to 120 minutes. + * + * @param customActionTimeoutInMins the value to set + * @return this builder + */ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request executed by this execution. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workflowId") + private String workflowId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request executed by this execution. + * + * @param workflowId the value to set + * @return this builder + */ + public Builder workflowId(String workflowId) { + this.workflowId = workflowId; + this.__explicitlySet__.add("workflowId"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** The total time taken by this execution in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by this execution 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 MaintenanceExecution build() { + MaintenanceExecution model = + new MaintenanceExecution( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.timeStarted, + this.timeEnded, + this.targetResourceType, + this.infrastructureId, + this.maintenanceRunId, + this.maintenanceType, + this.maintenanceSubtype, + this.patchingMode, + this.sourceVersion, + this.targetVersion, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.workflowId, + this.systemTags, + this.definedTags, + this.freeformTags, + this.totalTimeTakenInMins); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceExecution 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("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("targetResourceType")) { + this.targetResourceType(model.getTargetResourceType()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("maintenanceRunId")) { + this.maintenanceRunId(model.getMaintenanceRunId()); + } + if (model.wasPropertyExplicitlySet("maintenanceType")) { + this.maintenanceType(model.getMaintenanceType()); + } + if (model.wasPropertyExplicitlySet("maintenanceSubtype")) { + this.maintenanceSubtype(model.getMaintenanceSubtype()); + } + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("sourceVersion")) { + this.sourceVersion(model.getSourceVersion()); + } + if (model.wasPropertyExplicitlySet("targetVersion")) { + this.targetVersion(model.getTargetVersion()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("workflowId")) { + this.workflowId(model.getWorkflowId()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run execution. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run execution. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the maintenance run execution. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the maintenance run execution. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The state of the maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MaintenanceRunLifecycleState lifecycleState; + + /** + * The state of the maintenance run execution. + * + * @return the value + */ + public MaintenanceRunLifecycleState 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 maintenance run execution started. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the maintenance run execution started. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The date and time the maintenance run was completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** The type of the target resource on which the maintenance run execution occurred. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private final TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run execution occurred. + * + * @return the value + */ + public TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurred. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurred. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run to which this maintenance execution belongs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceRunId") + private final String maintenanceRunId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run to which this maintenance execution belongs. + * + * @return the value + */ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + + /** Maintenance type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private final MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * + * @return the value + */ + public MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + + /** Maintenance run execution sub-type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private final MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run execution sub-type. + * + * @return the value + */ + public MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + + /** The patching mode for the maintenance run that is being executed. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final PatchingModeEnum patchingMode; + + /** + * The patching mode for the maintenance run that is being executed. + * + * @return the value + */ + public PatchingModeEnum getPatchingMode() { + return patchingMode; + } + + /** The source software version for the Oracle infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private final String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * + * @return the value + */ + public String getSourceVersion() { + return sourceVersion; + } + + /** The target software version for the Database Infrastructure patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private final String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * + * @return the value + */ + public String getTargetVersion() { + return targetVersion; + } + + /** + * At the time of execution whether the custom action time out is enabled for the maintenance + * run that is being executed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * At the time of execution whether the custom action time out is enabled for the maintenance + * run that is being executed. + * + * @return the value + */ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each compute server + * patching operation. Supported values are 15 to 120 minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server + * patching operation. Supported values are 15 to 120 minutes. + * + * @return the value + */ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request executed by this execution. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workflowId") + private final String workflowId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request executed by this execution. + * + * @return the value + */ + public String getWorkflowId() { + return workflowId; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** The total time taken by this execution in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by this execution 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("MaintenanceExecution("); + 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(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + sb.append(", maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(", maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", sourceVersion=").append(String.valueOf(this.sourceVersion)); + sb.append(", targetVersion=").append(String.valueOf(this.targetVersion)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", workflowId=").append(String.valueOf(this.workflowId)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + 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 MaintenanceExecution)) { + return false; + } + + MaintenanceExecution other = (MaintenanceExecution) 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.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals(this.sourceVersion, other.sourceVersion) + && java.util.Objects.equals(this.targetVersion, other.targetVersion) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals(this.workflowId, other.workflowId) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.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.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.sourceVersion == null ? 43 : this.sourceVersion.hashCode()); + result = + (result * PRIME) + + (this.targetVersion == null ? 43 : this.targetVersion.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = (result * PRIME) + (this.workflowId == null ? 43 : this.workflowId.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionCollection.java new file mode 100644 index 00000000000..a072d31e427 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * A collection of maintenance run execution 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceExecutionCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaintenanceExecutionCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MaintenanceExecutionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of maintenance run execution history. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of maintenance run execution history. + * + * @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 MaintenanceExecutionCollection build() { + MaintenanceExecutionCollection model = new MaintenanceExecutionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceExecutionCollection 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); + } + + /** A list of maintenance run execution history. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of maintenance run execution history. + * + * @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("MaintenanceExecutionCollection("); + 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 MaintenanceExecutionCollection)) { + return false; + } + + MaintenanceExecutionCollection other = (MaintenanceExecutionCollection) 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-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionSummary.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionSummary.java new file mode 100644 index 00000000000..51439a09f79 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionSummary.java @@ -0,0 +1,1096 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Summary of a maintenance executions.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceExecutionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaintenanceExecutionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleDetails", + "timeStarted", + "timeEnded", + "targetResourceType", + "infrastructureId", + "maintenanceRunId", + "maintenanceType", + "maintenanceSubtype", + "patchingMode", + "sourceVersion", + "targetVersion", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "workflowId", + "systemTags", + "definedTags", + "freeformTags", + "totalTimeTakenInMins" + }) + public MaintenanceExecutionSummary( + String id, + String compartmentId, + String displayName, + String description, + MaintenanceRunLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeStarted, + java.util.Date timeEnded, + TargetResourceTypeEnum targetResourceType, + String infrastructureId, + String maintenanceRunId, + MaintenanceTypeEnum maintenanceType, + MaintenanceSubtypeEnum maintenanceSubtype, + PatchingModeEnum patchingMode, + String sourceVersion, + String targetVersion, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + String workflowId, + java.util.Map> systemTags, + java.util.Map> definedTags, + java.util.Map freeformTags, + Integer totalTimeTakenInMins) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.targetResourceType = targetResourceType; + this.infrastructureId = infrastructureId; + this.maintenanceRunId = maintenanceRunId; + this.maintenanceType = maintenanceType; + this.maintenanceSubtype = maintenanceSubtype; + this.patchingMode = patchingMode; + this.sourceVersion = sourceVersion; + this.targetVersion = targetVersion; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.workflowId = workflowId; + this.systemTags = systemTags; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.totalTimeTakenInMins = totalTimeTakenInMins; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run execution. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run execution. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The user-friendly name for the maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the maintenance run execution. + * + * @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 maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the maintenance run execution. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The state of the maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MaintenanceRunLifecycleState lifecycleState; + + /** + * The state of the maintenance run execution. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(MaintenanceRunLifecycleState 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 maintenance run execution started. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the maintenance run execution 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 the maintenance run was completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * + * @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 type of the target resource on which the maintenance run execution occurred. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run execution occurred. + * + * @param targetResourceType the value to set + * @return this builder + */ + public Builder targetResourceType(TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + this.__explicitlySet__.add("targetResourceType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurred. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurred. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run to which this maintenance execution belongs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceRunId") + private String maintenanceRunId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run to which this maintenance execution belongs. + * + * @param maintenanceRunId the value to set + * @return this builder + */ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + this.__explicitlySet__.add("maintenanceRunId"); + return this; + } + /** Maintenance type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * + * @param maintenanceType the value to set + * @return this builder + */ + public Builder maintenanceType(MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + this.__explicitlySet__.add("maintenanceType"); + return this; + } + /** Maintenance run execution sub-type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run execution sub-type. + * + * @param maintenanceSubtype the value to set + * @return this builder + */ + public Builder maintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + this.__explicitlySet__.add("maintenanceSubtype"); + return this; + } + /** The patching mode for the maintenance run that is being executed. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private PatchingModeEnum patchingMode; + + /** + * The patching mode for the maintenance run that is being executed. + * + * @param patchingMode the value to set + * @return this builder + */ + public Builder patchingMode(PatchingModeEnum patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** The source software version for the Oracle infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * + * @param sourceVersion the value to set + * @return this builder + */ + public Builder sourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + this.__explicitlySet__.add("sourceVersion"); + return this; + } + /** The target software version for the Database Infrastructure patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * + * @param targetVersion the value to set + * @return this builder + */ + public Builder targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + this.__explicitlySet__.add("targetVersion"); + return this; + } + /** + * At the time of execution whether the custom action time out is enabled for the + * maintenance run that is being executed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * At the time of execution whether the custom action time out is enabled for the + * maintenance run that is being executed. + * + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + */ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each compute + * server patching operation. Supported values are 15 to 120 minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute + * server patching operation. Supported values are 15 to 120 minutes. + * + * @param customActionTimeoutInMins the value to set + * @return this builder + */ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request executed by this execution. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workflowId") + private String workflowId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request executed by this execution. + * + * @param workflowId the value to set + * @return this builder + */ + public Builder workflowId(String workflowId) { + this.workflowId = workflowId; + this.__explicitlySet__.add("workflowId"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** The total time taken by this execution in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by this execution 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 MaintenanceExecutionSummary build() { + MaintenanceExecutionSummary model = + new MaintenanceExecutionSummary( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.timeStarted, + this.timeEnded, + this.targetResourceType, + this.infrastructureId, + this.maintenanceRunId, + this.maintenanceType, + this.maintenanceSubtype, + this.patchingMode, + this.sourceVersion, + this.targetVersion, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.workflowId, + this.systemTags, + this.definedTags, + this.freeformTags, + this.totalTimeTakenInMins); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceExecutionSummary 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("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("targetResourceType")) { + this.targetResourceType(model.getTargetResourceType()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("maintenanceRunId")) { + this.maintenanceRunId(model.getMaintenanceRunId()); + } + if (model.wasPropertyExplicitlySet("maintenanceType")) { + this.maintenanceType(model.getMaintenanceType()); + } + if (model.wasPropertyExplicitlySet("maintenanceSubtype")) { + this.maintenanceSubtype(model.getMaintenanceSubtype()); + } + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("sourceVersion")) { + this.sourceVersion(model.getSourceVersion()); + } + if (model.wasPropertyExplicitlySet("targetVersion")) { + this.targetVersion(model.getTargetVersion()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("workflowId")) { + this.workflowId(model.getWorkflowId()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run execution. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run execution. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the maintenance run execution. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the maintenance run execution. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The state of the maintenance run execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MaintenanceRunLifecycleState lifecycleState; + + /** + * The state of the maintenance run execution. + * + * @return the value + */ + public MaintenanceRunLifecycleState 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 maintenance run execution started. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the maintenance run execution started. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The date and time the maintenance run was completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** The type of the target resource on which the maintenance run execution occurred. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private final TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run execution occurred. + * + * @return the value + */ + public TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurred. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurred. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run to which this maintenance execution belongs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceRunId") + private final String maintenanceRunId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run to which this maintenance execution belongs. + * + * @return the value + */ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + + /** Maintenance type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private final MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * + * @return the value + */ + public MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + + /** Maintenance run execution sub-type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private final MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run execution sub-type. + * + * @return the value + */ + public MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + + /** The patching mode for the maintenance run that is being executed. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final PatchingModeEnum patchingMode; + + /** + * The patching mode for the maintenance run that is being executed. + * + * @return the value + */ + public PatchingModeEnum getPatchingMode() { + return patchingMode; + } + + /** The source software version for the Oracle infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private final String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * + * @return the value + */ + public String getSourceVersion() { + return sourceVersion; + } + + /** The target software version for the Database Infrastructure patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private final String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * + * @return the value + */ + public String getTargetVersion() { + return targetVersion; + } + + /** + * At the time of execution whether the custom action time out is enabled for the maintenance + * run that is being executed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * At the time of execution whether the custom action time out is enabled for the maintenance + * run that is being executed. + * + * @return the value + */ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each compute server + * patching operation. Supported values are 15 to 120 minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server + * patching operation. Supported values are 15 to 120 minutes. + * + * @return the value + */ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request executed by this execution. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workflowId") + private final String workflowId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request executed by this execution. + * + * @return the value + */ + public String getWorkflowId() { + return workflowId; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** The total time taken by this execution in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by this execution 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("MaintenanceExecutionSummary("); + 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(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + sb.append(", maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(", maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", sourceVersion=").append(String.valueOf(this.sourceVersion)); + sb.append(", targetVersion=").append(String.valueOf(this.targetVersion)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", workflowId=").append(String.valueOf(this.workflowId)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + 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 MaintenanceExecutionSummary)) { + return false; + } + + MaintenanceExecutionSummary other = (MaintenanceExecutionSummary) 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.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals(this.sourceVersion, other.sourceVersion) + && java.util.Objects.equals(this.targetVersion, other.targetVersion) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals(this.workflowId, other.workflowId) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.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.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.sourceVersion == null ? 43 : this.sourceVersion.hashCode()); + result = + (result * PRIME) + + (this.targetVersion == null ? 43 : this.targetVersion.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = (result * PRIME) + (this.workflowId == null ? 43 : this.workflowId.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenancePreference.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenancePreference.java new file mode 100644 index 00000000000..b06d100bbbf --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenancePreference.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** The maintenance window scheduling preference. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum MaintenancePreference implements com.oracle.bmc.http.internal.BmcEnum { + NoPreference("NO_PREFERENCE"), + CustomPreference("CUSTOM_PREFERENCE"), + + /** + * 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(MaintenancePreference.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaintenancePreference v : MaintenancePreference.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenancePreference(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenancePreference create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenancePreference', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRun.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRun.java new file mode 100644 index 00000000000..930e7620c47 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRun.java @@ -0,0 +1,1440 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Details of a maintenance run.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MaintenanceRun.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaintenanceRun + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleDetails", + "initialScheduledTime", + "timeScheduled", + "timeStarted", + "timeEnded", + "targetResourceType", + "infrastructureId", + "maintenanceType", + "patchIdentifier", + "maintenanceSubtype", + "patchingMode", + "patchFailureCount", + "sourceVersion", + "targetVersion", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "patchingStatus", + "patchingStartTime", + "patchingEndTime", + "estimatedPatchingTime", + "currentPatchingComponent", + "estimatedComponentPatchingStartTime", + "systemTags", + "definedTags", + "freeformTags", + "totalTimeTakenInMins" + }) + public MaintenanceRun( + String id, + String compartmentId, + String displayName, + String description, + MaintenanceRunLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date initialScheduledTime, + java.util.Date timeScheduled, + java.util.Date timeStarted, + java.util.Date timeEnded, + TargetResourceTypeEnum targetResourceType, + String infrastructureId, + MaintenanceTypeEnum maintenanceType, + String patchIdentifier, + MaintenanceSubtypeEnum maintenanceSubtype, + PatchingModeEnum patchingMode, + Integer patchFailureCount, + String sourceVersion, + String targetVersion, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + PatchingStatusEnum patchingStatus, + java.util.Date patchingStartTime, + java.util.Date patchingEndTime, + Integer estimatedPatchingTime, + String currentPatchingComponent, + java.util.Date estimatedComponentPatchingStartTime, + java.util.Map> systemTags, + java.util.Map> definedTags, + java.util.Map freeformTags, + Integer totalTimeTakenInMins) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.initialScheduledTime = initialScheduledTime; + this.timeScheduled = timeScheduled; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.targetResourceType = targetResourceType; + this.infrastructureId = infrastructureId; + this.maintenanceType = maintenanceType; + this.patchIdentifier = patchIdentifier; + this.maintenanceSubtype = maintenanceSubtype; + this.patchingMode = patchingMode; + this.patchFailureCount = patchFailureCount; + this.sourceVersion = sourceVersion; + this.targetVersion = targetVersion; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.patchingStatus = patchingStatus; + this.patchingStartTime = patchingStartTime; + this.patchingEndTime = patchingEndTime; + this.estimatedPatchingTime = estimatedPatchingTime; + this.currentPatchingComponent = currentPatchingComponent; + this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.systemTags = systemTags; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.totalTimeTakenInMins = totalTimeTakenInMins; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The user-friendly name for the maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the maintenance run. + * + * @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 maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the maintenance run. + * + * @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 maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MaintenanceRunLifecycleState lifecycleState; + + /** + * The current state of the maintenance run. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(MaintenanceRunLifecycleState 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 maintenance run was originally scheduled. */ + @com.fasterxml.jackson.annotation.JsonProperty("initialScheduledTime") + private java.util.Date initialScheduledTime; + + /** + * The date and time the maintenance run was originally scheduled. + * + * @param initialScheduledTime the value to set + * @return this builder + */ + public Builder initialScheduledTime(java.util.Date initialScheduledTime) { + this.initialScheduledTime = initialScheduledTime; + this.__explicitlySet__.add("initialScheduledTime"); + return this; + } + /** The date and time the maintenance run is scheduled to occur. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The date and time the maintenance run is scheduled to occur. + * + * @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; + } + /** The date and time the maintenance run starts. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the maintenance run starts. + * + * @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 maintenance run was completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * + * @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 type of the target resource on which the maintenance run occurs. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run occurs. + * + * @param targetResourceType the value to set + * @return this builder + */ + public Builder targetResourceType(TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + this.__explicitlySet__.add("targetResourceType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurs. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** Maintenance type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * + * @param maintenanceType the value to set + * @return this builder + */ + public Builder maintenanceType(MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + this.__explicitlySet__.add("maintenanceType"); + return this; + } + /** + * The unique identifier of the patch. The identifier string includes the patch type and the + * version of the Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchIdentifier") + private String patchIdentifier; + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the + * version of the Database Infrastructure. + * + * @param patchIdentifier the value to set + * @return this builder + */ + public Builder patchIdentifier(String patchIdentifier) { + this.patchIdentifier = patchIdentifier; + this.__explicitlySet__.add("patchIdentifier"); + return this; + } + /** Maintenance run sub-type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run sub-type. + * + * @param maintenanceSubtype the value to set + * @return this builder + */ + public Builder maintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + this.__explicitlySet__.add("maintenanceSubtype"); + return this; + } + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + * + * @param patchingMode the value to set + * @return this builder + */ + public Builder patchingMode(PatchingModeEnum patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** Contain the patch failure count. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchFailureCount") + private Integer patchFailureCount; + + /** + * Contain the patch failure count. + * + * @param patchFailureCount the value to set + * @return this builder + */ + public Builder patchFailureCount(Integer patchFailureCount) { + this.patchFailureCount = patchFailureCount; + this.__explicitlySet__.add("patchFailureCount"); + return this; + } + /** The source software version for the Oracle infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * + * @param sourceVersion the value to set + * @return this builder + */ + public Builder sourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + this.__explicitlySet__.add("sourceVersion"); + return this; + } + /** The target software version for the Database Infrastructure patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * + * @param targetVersion the value to set + * @return this builder + */ + public Builder targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + this.__explicitlySet__.add("targetVersion"); + return this; + } + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * compute servers patching operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * compute servers patching operations. + * + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + */ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each compute + * server patching operation. Supported values are 15 to 120 minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute + * server patching operation. Supported values are 15 to 120 minutes. + * + * @param customActionTimeoutInMins the value to set + * @return this builder + */ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** The status of the patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStatus") + private PatchingStatusEnum patchingStatus; + + /** + * The status of the patching operation. + * + * @param patchingStatus the value to set + * @return this builder + */ + public Builder patchingStatus(PatchingStatusEnum patchingStatus) { + this.patchingStatus = patchingStatus; + this.__explicitlySet__.add("patchingStatus"); + return this; + } + /** The time when the patching operation started. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStartTime") + private java.util.Date patchingStartTime; + + /** + * The time when the patching operation started. + * + * @param patchingStartTime the value to set + * @return this builder + */ + public Builder patchingStartTime(java.util.Date patchingStartTime) { + this.patchingStartTime = patchingStartTime; + this.__explicitlySet__.add("patchingStartTime"); + return this; + } + /** The time when the patching operation ended. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingEndTime") + private java.util.Date patchingEndTime; + + /** + * The time when the patching operation ended. + * + * @param patchingEndTime the value to set + * @return this builder + */ + public Builder patchingEndTime(java.util.Date patchingEndTime) { + this.patchingEndTime = patchingEndTime; + this.__explicitlySet__.add("patchingEndTime"); + return this; + } + /** + * The estimated total time required in minutes for all patching operations (compute + * servers, storage). + */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedPatchingTime") + private Integer estimatedPatchingTime; + + /** + * The estimated total time required in minutes for all patching operations (compute + * servers, storage). + * + * @param estimatedPatchingTime the value to set + * @return this builder + */ + public Builder estimatedPatchingTime(Integer estimatedPatchingTime) { + this.estimatedPatchingTime = estimatedPatchingTime; + this.__explicitlySet__.add("estimatedPatchingTime"); + return this; + } + /** The name of the current infrastructure component that is getting patched. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentPatchingComponent") + private String currentPatchingComponent; + + /** + * The name of the current infrastructure component that is getting patched. + * + * @param currentPatchingComponent the value to set + * @return this builder + */ + public Builder currentPatchingComponent(String currentPatchingComponent) { + this.currentPatchingComponent = currentPatchingComponent; + this.__explicitlySet__.add("currentPatchingComponent"); + return this; + } + /** The estimated start time of the next infrastructure component patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedComponentPatchingStartTime") + private java.util.Date estimatedComponentPatchingStartTime; + + /** + * The estimated start time of the next infrastructure component patching operation. + * + * @param estimatedComponentPatchingStartTime the value to set + * @return this builder + */ + public Builder estimatedComponentPatchingStartTime( + java.util.Date estimatedComponentPatchingStartTime) { + this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.__explicitlySet__.add("estimatedComponentPatchingStartTime"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** 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 MaintenanceRun build() { + MaintenanceRun model = + new MaintenanceRun( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.initialScheduledTime, + this.timeScheduled, + this.timeStarted, + this.timeEnded, + this.targetResourceType, + this.infrastructureId, + this.maintenanceType, + this.patchIdentifier, + this.maintenanceSubtype, + this.patchingMode, + this.patchFailureCount, + this.sourceVersion, + this.targetVersion, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.patchingStatus, + this.patchingStartTime, + this.patchingEndTime, + this.estimatedPatchingTime, + this.currentPatchingComponent, + this.estimatedComponentPatchingStartTime, + this.systemTags, + this.definedTags, + this.freeformTags, + this.totalTimeTakenInMins); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceRun 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("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("initialScheduledTime")) { + this.initialScheduledTime(model.getInitialScheduledTime()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("targetResourceType")) { + this.targetResourceType(model.getTargetResourceType()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("maintenanceType")) { + this.maintenanceType(model.getMaintenanceType()); + } + if (model.wasPropertyExplicitlySet("patchIdentifier")) { + this.patchIdentifier(model.getPatchIdentifier()); + } + if (model.wasPropertyExplicitlySet("maintenanceSubtype")) { + this.maintenanceSubtype(model.getMaintenanceSubtype()); + } + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("patchFailureCount")) { + this.patchFailureCount(model.getPatchFailureCount()); + } + if (model.wasPropertyExplicitlySet("sourceVersion")) { + this.sourceVersion(model.getSourceVersion()); + } + if (model.wasPropertyExplicitlySet("targetVersion")) { + this.targetVersion(model.getTargetVersion()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("patchingStatus")) { + this.patchingStatus(model.getPatchingStatus()); + } + if (model.wasPropertyExplicitlySet("patchingStartTime")) { + this.patchingStartTime(model.getPatchingStartTime()); + } + if (model.wasPropertyExplicitlySet("patchingEndTime")) { + this.patchingEndTime(model.getPatchingEndTime()); + } + if (model.wasPropertyExplicitlySet("estimatedPatchingTime")) { + this.estimatedPatchingTime(model.getEstimatedPatchingTime()); + } + if (model.wasPropertyExplicitlySet("currentPatchingComponent")) { + this.currentPatchingComponent(model.getCurrentPatchingComponent()); + } + if (model.wasPropertyExplicitlySet("estimatedComponentPatchingStartTime")) { + this.estimatedComponentPatchingStartTime( + model.getEstimatedComponentPatchingStartTime()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the maintenance run. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the maintenance run. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The current state of the maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MaintenanceRunLifecycleState lifecycleState; + + /** + * The current state of the maintenance run. + * + * @return the value + */ + public MaintenanceRunLifecycleState 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 maintenance run was originally scheduled. */ + @com.fasterxml.jackson.annotation.JsonProperty("initialScheduledTime") + private final java.util.Date initialScheduledTime; + + /** + * The date and time the maintenance run was originally scheduled. + * + * @return the value + */ + public java.util.Date getInitialScheduledTime() { + return initialScheduledTime; + } + + /** The date and time the maintenance run is scheduled to occur. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The date and time the maintenance run is scheduled to occur. + * + * @return the value + */ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** The date and time the maintenance run starts. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the maintenance run starts. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The date and time the maintenance run was completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** The type of the target resource on which the maintenance run occurs. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private final TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run occurs. + * + * @return the value + */ + public TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurs. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** Maintenance type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private final MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * + * @return the value + */ + public MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the + * version of the Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchIdentifier") + private final String patchIdentifier; + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the + * version of the Database Infrastructure. + * + * @return the value + */ + public String getPatchIdentifier() { + return patchIdentifier; + } + + /** Maintenance run sub-type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private final MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run sub-type. + * + * @return the value + */ + public MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + * + * @return the value + */ + public PatchingModeEnum getPatchingMode() { + return patchingMode; + } + + /** Contain the patch failure count. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchFailureCount") + private final Integer patchFailureCount; + + /** + * Contain the patch failure count. + * + * @return the value + */ + public Integer getPatchFailureCount() { + return patchFailureCount; + } + + /** The source software version for the Oracle infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private final String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * + * @return the value + */ + public String getSourceVersion() { + return sourceVersion; + } + + /** The target software version for the Database Infrastructure patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private final String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * + * @return the value + */ + public String getTargetVersion() { + return targetVersion; + } + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * compute servers patching operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * compute servers patching operations. + * + * @return the value + */ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each compute server + * patching operation. Supported values are 15 to 120 minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server + * patching operation. Supported values are 15 to 120 minutes. + * + * @return the value + */ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** The status of the patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStatus") + private final PatchingStatusEnum patchingStatus; + + /** + * The status of the patching operation. + * + * @return the value + */ + public PatchingStatusEnum getPatchingStatus() { + return patchingStatus; + } + + /** The time when the patching operation started. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStartTime") + private final java.util.Date patchingStartTime; + + /** + * The time when the patching operation started. + * + * @return the value + */ + public java.util.Date getPatchingStartTime() { + return patchingStartTime; + } + + /** The time when the patching operation ended. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingEndTime") + private final java.util.Date patchingEndTime; + + /** + * The time when the patching operation ended. + * + * @return the value + */ + public java.util.Date getPatchingEndTime() { + return patchingEndTime; + } + + /** + * The estimated total time required in minutes for all patching operations (compute servers, + * storage). + */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedPatchingTime") + private final Integer estimatedPatchingTime; + + /** + * The estimated total time required in minutes for all patching operations (compute servers, + * storage). + * + * @return the value + */ + public Integer getEstimatedPatchingTime() { + return estimatedPatchingTime; + } + + /** The name of the current infrastructure component that is getting patched. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentPatchingComponent") + private final String currentPatchingComponent; + + /** + * The name of the current infrastructure component that is getting patched. + * + * @return the value + */ + public String getCurrentPatchingComponent() { + return currentPatchingComponent; + } + + /** The estimated start time of the next infrastructure component patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedComponentPatchingStartTime") + private final java.util.Date estimatedComponentPatchingStartTime; + + /** + * The estimated start time of the next infrastructure component patching operation. + * + * @return the value + */ + public java.util.Date getEstimatedComponentPatchingStartTime() { + return estimatedComponentPatchingStartTime; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** 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("MaintenanceRun("); + 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(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", initialScheduledTime=").append(String.valueOf(this.initialScheduledTime)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(", patchIdentifier=").append(String.valueOf(this.patchIdentifier)); + sb.append(", maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", patchFailureCount=").append(String.valueOf(this.patchFailureCount)); + sb.append(", sourceVersion=").append(String.valueOf(this.sourceVersion)); + sb.append(", targetVersion=").append(String.valueOf(this.targetVersion)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", patchingStatus=").append(String.valueOf(this.patchingStatus)); + sb.append(", patchingStartTime=").append(String.valueOf(this.patchingStartTime)); + sb.append(", patchingEndTime=").append(String.valueOf(this.patchingEndTime)); + sb.append(", estimatedPatchingTime=").append(String.valueOf(this.estimatedPatchingTime)); + sb.append(", currentPatchingComponent=") + .append(String.valueOf(this.currentPatchingComponent)); + sb.append(", estimatedComponentPatchingStartTime=") + .append(String.valueOf(this.estimatedComponentPatchingStartTime)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + 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 MaintenanceRun)) { + return false; + } + + MaintenanceRun other = (MaintenanceRun) 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.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.initialScheduledTime, other.initialScheduledTime) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.patchIdentifier, other.patchIdentifier) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals(this.patchFailureCount, other.patchFailureCount) + && java.util.Objects.equals(this.sourceVersion, other.sourceVersion) + && java.util.Objects.equals(this.targetVersion, other.targetVersion) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals(this.patchingStatus, other.patchingStatus) + && java.util.Objects.equals(this.patchingStartTime, other.patchingStartTime) + && java.util.Objects.equals(this.patchingEndTime, other.patchingEndTime) + && java.util.Objects.equals(this.estimatedPatchingTime, other.estimatedPatchingTime) + && java.util.Objects.equals( + this.currentPatchingComponent, other.currentPatchingComponent) + && java.util.Objects.equals( + this.estimatedComponentPatchingStartTime, + other.estimatedComponentPatchingStartTime) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.initialScheduledTime == null + ? 43 + : this.initialScheduledTime.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.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.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.patchIdentifier == null ? 43 : this.patchIdentifier.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.patchFailureCount == null ? 43 : this.patchFailureCount.hashCode()); + result = + (result * PRIME) + + (this.sourceVersion == null ? 43 : this.sourceVersion.hashCode()); + result = + (result * PRIME) + + (this.targetVersion == null ? 43 : this.targetVersion.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.patchingStatus == null ? 43 : this.patchingStatus.hashCode()); + result = + (result * PRIME) + + (this.patchingStartTime == null ? 43 : this.patchingStartTime.hashCode()); + result = + (result * PRIME) + + (this.patchingEndTime == null ? 43 : this.patchingEndTime.hashCode()); + result = + (result * PRIME) + + (this.estimatedPatchingTime == null + ? 43 + : this.estimatedPatchingTime.hashCode()); + result = + (result * PRIME) + + (this.currentPatchingComponent == null + ? 43 + : this.currentPatchingComponent.hashCode()); + result = + (result * PRIME) + + (this.estimatedComponentPatchingStartTime == null + ? 43 + : this.estimatedComponentPatchingStartTime.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunCollection.java new file mode 100644 index 00000000000..80798162c65 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * A collection of maintenance runs.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceRunCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaintenanceRunCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MaintenanceRunCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of maintenance runs. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of maintenance runs. + * + * @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 MaintenanceRunCollection build() { + MaintenanceRunCollection model = new MaintenanceRunCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceRunCollection 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); + } + + /** A list of maintenance runs. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of maintenance runs. + * + * @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("MaintenanceRunCollection("); + 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 MaintenanceRunCollection)) { + return false; + } + + MaintenanceRunCollection other = (MaintenanceRunCollection) 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-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunLifecycleState.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunLifecycleState.java new file mode 100644 index 00000000000..71265720b44 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunLifecycleState.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Maintenance run lifecycle state */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum MaintenanceRunLifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Scheduled("SCHEDULED"), + InProgress("IN_PROGRESS"), + Succeeded("SUCCEEDED"), + Skipped("SKIPPED"), + Failed("FAILED"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Canceled("CANCELED"), + 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(MaintenanceRunLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaintenanceRunLifecycleState v : MaintenanceRunLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenanceRunLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenanceRunLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenanceRunLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunSummary.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunSummary.java new file mode 100644 index 00000000000..dde7a4b7d33 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunSummary.java @@ -0,0 +1,1441 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Summary of a maintenance run.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceRunSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaintenanceRunSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleDetails", + "initialScheduledTime", + "timeScheduled", + "timeStarted", + "timeEnded", + "targetResourceType", + "infrastructureId", + "maintenanceType", + "patchIdentifier", + "maintenanceSubtype", + "patchingMode", + "patchFailureCount", + "sourceVersion", + "targetVersion", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "patchingStatus", + "patchingStartTime", + "patchingEndTime", + "estimatedPatchingTime", + "currentPatchingComponent", + "estimatedComponentPatchingStartTime", + "systemTags", + "definedTags", + "freeformTags", + "totalTimeTakenInMins" + }) + public MaintenanceRunSummary( + String id, + String compartmentId, + String displayName, + String description, + MaintenanceRunLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date initialScheduledTime, + java.util.Date timeScheduled, + java.util.Date timeStarted, + java.util.Date timeEnded, + TargetResourceTypeEnum targetResourceType, + String infrastructureId, + MaintenanceTypeEnum maintenanceType, + String patchIdentifier, + MaintenanceSubtypeEnum maintenanceSubtype, + PatchingModeEnum patchingMode, + Integer patchFailureCount, + String sourceVersion, + String targetVersion, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + PatchingStatusEnum patchingStatus, + java.util.Date patchingStartTime, + java.util.Date patchingEndTime, + Integer estimatedPatchingTime, + String currentPatchingComponent, + java.util.Date estimatedComponentPatchingStartTime, + java.util.Map> systemTags, + java.util.Map> definedTags, + java.util.Map freeformTags, + Integer totalTimeTakenInMins) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.initialScheduledTime = initialScheduledTime; + this.timeScheduled = timeScheduled; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.targetResourceType = targetResourceType; + this.infrastructureId = infrastructureId; + this.maintenanceType = maintenanceType; + this.patchIdentifier = patchIdentifier; + this.maintenanceSubtype = maintenanceSubtype; + this.patchingMode = patchingMode; + this.patchFailureCount = patchFailureCount; + this.sourceVersion = sourceVersion; + this.targetVersion = targetVersion; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.patchingStatus = patchingStatus; + this.patchingStartTime = patchingStartTime; + this.patchingEndTime = patchingEndTime; + this.estimatedPatchingTime = estimatedPatchingTime; + this.currentPatchingComponent = currentPatchingComponent; + this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.systemTags = systemTags; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.totalTimeTakenInMins = totalTimeTakenInMins; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The user-friendly name for the maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the maintenance run. + * + * @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 maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the maintenance run. + * + * @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 maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MaintenanceRunLifecycleState lifecycleState; + + /** + * The current state of the maintenance run. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(MaintenanceRunLifecycleState 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 maintenance run was originally scheduled. */ + @com.fasterxml.jackson.annotation.JsonProperty("initialScheduledTime") + private java.util.Date initialScheduledTime; + + /** + * The date and time the maintenance run was originally scheduled. + * + * @param initialScheduledTime the value to set + * @return this builder + */ + public Builder initialScheduledTime(java.util.Date initialScheduledTime) { + this.initialScheduledTime = initialScheduledTime; + this.__explicitlySet__.add("initialScheduledTime"); + return this; + } + /** The date and time the maintenance run is scheduled to occur. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The date and time the maintenance run is scheduled to occur. + * + * @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; + } + /** The date and time the maintenance run starts. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the maintenance run starts. + * + * @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 maintenance run was completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * + * @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 type of the target resource on which the maintenance run occurs. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run occurs. + * + * @param targetResourceType the value to set + * @return this builder + */ + public Builder targetResourceType(TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + this.__explicitlySet__.add("targetResourceType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurs. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** Maintenance type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * + * @param maintenanceType the value to set + * @return this builder + */ + public Builder maintenanceType(MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + this.__explicitlySet__.add("maintenanceType"); + return this; + } + /** + * The unique identifier of the patch. The identifier string includes the patch type and the + * version of the Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchIdentifier") + private String patchIdentifier; + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the + * version of the Database Infrastructure. + * + * @param patchIdentifier the value to set + * @return this builder + */ + public Builder patchIdentifier(String patchIdentifier) { + this.patchIdentifier = patchIdentifier; + this.__explicitlySet__.add("patchIdentifier"); + return this; + } + /** Maintenance run sub-type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run sub-type. + * + * @param maintenanceSubtype the value to set + * @return this builder + */ + public Builder maintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + this.__explicitlySet__.add("maintenanceSubtype"); + return this; + } + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + * + * @param patchingMode the value to set + * @return this builder + */ + public Builder patchingMode(PatchingModeEnum patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** Contain the patch failure count. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchFailureCount") + private Integer patchFailureCount; + + /** + * Contain the patch failure count. + * + * @param patchFailureCount the value to set + * @return this builder + */ + public Builder patchFailureCount(Integer patchFailureCount) { + this.patchFailureCount = patchFailureCount; + this.__explicitlySet__.add("patchFailureCount"); + return this; + } + /** The source software version for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private String sourceVersion; + + /** + * The source software version for the Database Infrastructure. + * + * @param sourceVersion the value to set + * @return this builder + */ + public Builder sourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + this.__explicitlySet__.add("sourceVersion"); + return this; + } + /** The target software version for the Database Infrastructure patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * + * @param targetVersion the value to set + * @return this builder + */ + public Builder targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + this.__explicitlySet__.add("targetVersion"); + return this; + } + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * compute servers patching operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * compute servers patching operations. + * + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + */ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each compute + * server patching operation. Supported values are 15 to 120 minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute + * server patching operation. Supported values are 15 to 120 minutes. + * + * @param customActionTimeoutInMins the value to set + * @return this builder + */ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** The status of the patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStatus") + private PatchingStatusEnum patchingStatus; + + /** + * The status of the patching operation. + * + * @param patchingStatus the value to set + * @return this builder + */ + public Builder patchingStatus(PatchingStatusEnum patchingStatus) { + this.patchingStatus = patchingStatus; + this.__explicitlySet__.add("patchingStatus"); + return this; + } + /** The time when the patching operation started. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStartTime") + private java.util.Date patchingStartTime; + + /** + * The time when the patching operation started. + * + * @param patchingStartTime the value to set + * @return this builder + */ + public Builder patchingStartTime(java.util.Date patchingStartTime) { + this.patchingStartTime = patchingStartTime; + this.__explicitlySet__.add("patchingStartTime"); + return this; + } + /** The time when the patching operation ended. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingEndTime") + private java.util.Date patchingEndTime; + + /** + * The time when the patching operation ended. + * + * @param patchingEndTime the value to set + * @return this builder + */ + public Builder patchingEndTime(java.util.Date patchingEndTime) { + this.patchingEndTime = patchingEndTime; + this.__explicitlySet__.add("patchingEndTime"); + return this; + } + /** + * The estimated total time required in minutes for all patching operations (compute + * servers, storage). + */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedPatchingTime") + private Integer estimatedPatchingTime; + + /** + * The estimated total time required in minutes for all patching operations (compute + * servers, storage). + * + * @param estimatedPatchingTime the value to set + * @return this builder + */ + public Builder estimatedPatchingTime(Integer estimatedPatchingTime) { + this.estimatedPatchingTime = estimatedPatchingTime; + this.__explicitlySet__.add("estimatedPatchingTime"); + return this; + } + /** The name of the current infrastructure component that is getting patched. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentPatchingComponent") + private String currentPatchingComponent; + + /** + * The name of the current infrastructure component that is getting patched. + * + * @param currentPatchingComponent the value to set + * @return this builder + */ + public Builder currentPatchingComponent(String currentPatchingComponent) { + this.currentPatchingComponent = currentPatchingComponent; + this.__explicitlySet__.add("currentPatchingComponent"); + return this; + } + /** The estimated start time of the next infrastructure component patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedComponentPatchingStartTime") + private java.util.Date estimatedComponentPatchingStartTime; + + /** + * The estimated start time of the next infrastructure component patching operation. + * + * @param estimatedComponentPatchingStartTime the value to set + * @return this builder + */ + public Builder estimatedComponentPatchingStartTime( + java.util.Date estimatedComponentPatchingStartTime) { + this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.__explicitlySet__.add("estimatedComponentPatchingStartTime"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** 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 MaintenanceRunSummary build() { + MaintenanceRunSummary model = + new MaintenanceRunSummary( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.initialScheduledTime, + this.timeScheduled, + this.timeStarted, + this.timeEnded, + this.targetResourceType, + this.infrastructureId, + this.maintenanceType, + this.patchIdentifier, + this.maintenanceSubtype, + this.patchingMode, + this.patchFailureCount, + this.sourceVersion, + this.targetVersion, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.patchingStatus, + this.patchingStartTime, + this.patchingEndTime, + this.estimatedPatchingTime, + this.currentPatchingComponent, + this.estimatedComponentPatchingStartTime, + this.systemTags, + this.definedTags, + this.freeformTags, + this.totalTimeTakenInMins); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceRunSummary 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("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("initialScheduledTime")) { + this.initialScheduledTime(model.getInitialScheduledTime()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("targetResourceType")) { + this.targetResourceType(model.getTargetResourceType()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("maintenanceType")) { + this.maintenanceType(model.getMaintenanceType()); + } + if (model.wasPropertyExplicitlySet("patchIdentifier")) { + this.patchIdentifier(model.getPatchIdentifier()); + } + if (model.wasPropertyExplicitlySet("maintenanceSubtype")) { + this.maintenanceSubtype(model.getMaintenanceSubtype()); + } + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("patchFailureCount")) { + this.patchFailureCount(model.getPatchFailureCount()); + } + if (model.wasPropertyExplicitlySet("sourceVersion")) { + this.sourceVersion(model.getSourceVersion()); + } + if (model.wasPropertyExplicitlySet("targetVersion")) { + this.targetVersion(model.getTargetVersion()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("patchingStatus")) { + this.patchingStatus(model.getPatchingStatus()); + } + if (model.wasPropertyExplicitlySet("patchingStartTime")) { + this.patchingStartTime(model.getPatchingStartTime()); + } + if (model.wasPropertyExplicitlySet("patchingEndTime")) { + this.patchingEndTime(model.getPatchingEndTime()); + } + if (model.wasPropertyExplicitlySet("estimatedPatchingTime")) { + this.estimatedPatchingTime(model.getEstimatedPatchingTime()); + } + if (model.wasPropertyExplicitlySet("currentPatchingComponent")) { + this.currentPatchingComponent(model.getCurrentPatchingComponent()); + } + if (model.wasPropertyExplicitlySet("estimatedComponentPatchingStartTime")) { + this.estimatedComponentPatchingStartTime( + model.getEstimatedComponentPatchingStartTime()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * maintenance run. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the maintenance run. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the maintenance run. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The current state of the maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MaintenanceRunLifecycleState lifecycleState; + + /** + * The current state of the maintenance run. + * + * @return the value + */ + public MaintenanceRunLifecycleState 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 maintenance run was originally scheduled. */ + @com.fasterxml.jackson.annotation.JsonProperty("initialScheduledTime") + private final java.util.Date initialScheduledTime; + + /** + * The date and time the maintenance run was originally scheduled. + * + * @return the value + */ + public java.util.Date getInitialScheduledTime() { + return initialScheduledTime; + } + + /** The date and time the maintenance run is scheduled to occur. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The date and time the maintenance run is scheduled to occur. + * + * @return the value + */ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** The date and time the maintenance run starts. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the maintenance run starts. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The date and time the maintenance run was completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** The type of the target resource on which the maintenance run occurs. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private final TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run occurs. + * + * @return the value + */ + public TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure on which the maintenance run execution occurs. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** Maintenance type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private final MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * + * @return the value + */ + public MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the + * version of the Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchIdentifier") + private final String patchIdentifier; + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the + * version of the Database Infrastructure. + * + * @return the value + */ + public String getPatchIdentifier() { + return patchIdentifier; + } + + /** Maintenance run sub-type. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private final MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run sub-type. + * + * @return the value + */ + public MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + * + * @return the value + */ + public PatchingModeEnum getPatchingMode() { + return patchingMode; + } + + /** Contain the patch failure count. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchFailureCount") + private final Integer patchFailureCount; + + /** + * Contain the patch failure count. + * + * @return the value + */ + public Integer getPatchFailureCount() { + return patchFailureCount; + } + + /** The source software version for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private final String sourceVersion; + + /** + * The source software version for the Database Infrastructure. + * + * @return the value + */ + public String getSourceVersion() { + return sourceVersion; + } + + /** The target software version for the Database Infrastructure patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private final String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * + * @return the value + */ + public String getTargetVersion() { + return targetVersion; + } + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * compute servers patching operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * compute servers patching operations. + * + * @return the value + */ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each compute server + * patching operation. Supported values are 15 to 120 minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server + * patching operation. Supported values are 15 to 120 minutes. + * + * @return the value + */ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** The status of the patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStatus") + private final PatchingStatusEnum patchingStatus; + + /** + * The status of the patching operation. + * + * @return the value + */ + public PatchingStatusEnum getPatchingStatus() { + return patchingStatus; + } + + /** The time when the patching operation started. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStartTime") + private final java.util.Date patchingStartTime; + + /** + * The time when the patching operation started. + * + * @return the value + */ + public java.util.Date getPatchingStartTime() { + return patchingStartTime; + } + + /** The time when the patching operation ended. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingEndTime") + private final java.util.Date patchingEndTime; + + /** + * The time when the patching operation ended. + * + * @return the value + */ + public java.util.Date getPatchingEndTime() { + return patchingEndTime; + } + + /** + * The estimated total time required in minutes for all patching operations (compute servers, + * storage). + */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedPatchingTime") + private final Integer estimatedPatchingTime; + + /** + * The estimated total time required in minutes for all patching operations (compute servers, + * storage). + * + * @return the value + */ + public Integer getEstimatedPatchingTime() { + return estimatedPatchingTime; + } + + /** The name of the current infrastructure component that is getting patched. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentPatchingComponent") + private final String currentPatchingComponent; + + /** + * The name of the current infrastructure component that is getting patched. + * + * @return the value + */ + public String getCurrentPatchingComponent() { + return currentPatchingComponent; + } + + /** The estimated start time of the next infrastructure component patching operation. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedComponentPatchingStartTime") + private final java.util.Date estimatedComponentPatchingStartTime; + + /** + * The estimated start time of the next infrastructure component patching operation. + * + * @return the value + */ + public java.util.Date getEstimatedComponentPatchingStartTime() { + return estimatedComponentPatchingStartTime; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** 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("MaintenanceRunSummary("); + 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(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", initialScheduledTime=").append(String.valueOf(this.initialScheduledTime)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(", patchIdentifier=").append(String.valueOf(this.patchIdentifier)); + sb.append(", maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", patchFailureCount=").append(String.valueOf(this.patchFailureCount)); + sb.append(", sourceVersion=").append(String.valueOf(this.sourceVersion)); + sb.append(", targetVersion=").append(String.valueOf(this.targetVersion)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", patchingStatus=").append(String.valueOf(this.patchingStatus)); + sb.append(", patchingStartTime=").append(String.valueOf(this.patchingStartTime)); + sb.append(", patchingEndTime=").append(String.valueOf(this.patchingEndTime)); + sb.append(", estimatedPatchingTime=").append(String.valueOf(this.estimatedPatchingTime)); + sb.append(", currentPatchingComponent=") + .append(String.valueOf(this.currentPatchingComponent)); + sb.append(", estimatedComponentPatchingStartTime=") + .append(String.valueOf(this.estimatedComponentPatchingStartTime)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + 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 MaintenanceRunSummary)) { + return false; + } + + MaintenanceRunSummary other = (MaintenanceRunSummary) 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.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.initialScheduledTime, other.initialScheduledTime) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.patchIdentifier, other.patchIdentifier) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals(this.patchFailureCount, other.patchFailureCount) + && java.util.Objects.equals(this.sourceVersion, other.sourceVersion) + && java.util.Objects.equals(this.targetVersion, other.targetVersion) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals(this.patchingStatus, other.patchingStatus) + && java.util.Objects.equals(this.patchingStartTime, other.patchingStartTime) + && java.util.Objects.equals(this.patchingEndTime, other.patchingEndTime) + && java.util.Objects.equals(this.estimatedPatchingTime, other.estimatedPatchingTime) + && java.util.Objects.equals( + this.currentPatchingComponent, other.currentPatchingComponent) + && java.util.Objects.equals( + this.estimatedComponentPatchingStartTime, + other.estimatedComponentPatchingStartTime) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.initialScheduledTime == null + ? 43 + : this.initialScheduledTime.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.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.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.patchIdentifier == null ? 43 : this.patchIdentifier.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.patchFailureCount == null ? 43 : this.patchFailureCount.hashCode()); + result = + (result * PRIME) + + (this.sourceVersion == null ? 43 : this.sourceVersion.hashCode()); + result = + (result * PRIME) + + (this.targetVersion == null ? 43 : this.targetVersion.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.patchingStatus == null ? 43 : this.patchingStatus.hashCode()); + result = + (result * PRIME) + + (this.patchingStartTime == null ? 43 : this.patchingStartTime.hashCode()); + result = + (result * PRIME) + + (this.patchingEndTime == null ? 43 : this.patchingEndTime.hashCode()); + result = + (result * PRIME) + + (this.estimatedPatchingTime == null + ? 43 + : this.estimatedPatchingTime.hashCode()); + result = + (result * PRIME) + + (this.currentPatchingComponent == null + ? 43 + : this.currentPatchingComponent.hashCode()); + result = + (result * PRIME) + + (this.estimatedComponentPatchingStartTime == null + ? 43 + : this.estimatedComponentPatchingStartTime.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceSubtypeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceSubtypeEnum.java new file mode 100644 index 00000000000..718ae6bf30b --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceSubtypeEnum.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Maintenance sub-type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum MaintenanceSubtypeEnum implements com.oracle.bmc.http.internal.BmcEnum { + Yearly("YEARLY"), + Halfyearly("HALFYEARLY"), + Quarterly("QUARTERLY"), + Monthly("MONTHLY"), + Daily("DAILY"), + Hardware("HARDWARE"), + Critical("CRITICAL"), + InfraUpdate("INFRA_UPDATE"), + CpsServicesUpdate("CPS_SERVICES_UPDATE"), + CpsVmUpdate("CPS_VM_UPDATE"), + SecurityMonthly("SECURITY_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(MaintenanceSubtypeEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaintenanceSubtypeEnum v : MaintenanceSubtypeEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenanceSubtypeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenanceSubtypeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenanceSubtypeEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceTypeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceTypeEnum.java new file mode 100644 index 00000000000..152a196d119 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceTypeEnum.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Maintenance type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum MaintenanceTypeEnum 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(MaintenanceTypeEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaintenanceTypeEnum v : MaintenanceTypeEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenanceTypeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenanceTypeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenanceTypeEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceWindow.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceWindow.java new file mode 100644 index 00000000000..e0fe6b5077f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceWindow.java @@ -0,0 +1,704 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * The scheduling details for the quarterly maintenance window. Patching and system updates take + * place during the maintenance 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceWindow.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaintenanceWindow + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "preference", + "patchingMode", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "isMonthlyPatchingEnabled", + "months", + "weeksOfMonth", + "daysOfWeek", + "hoursOfDay", + "leadTimeInWeeks" + }) + public MaintenanceWindow( + MaintenancePreference preference, + BasePatchingMode patchingMode, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + Boolean isMonthlyPatchingEnabled, + java.util.List months, + java.util.List weeksOfMonth, + java.util.List daysOfWeek, + java.util.List hoursOfDay, + Integer leadTimeInWeeks) { + super(); + this.preference = preference; + this.patchingMode = patchingMode; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.isMonthlyPatchingEnabled = isMonthlyPatchingEnabled; + this.months = months; + this.weeksOfMonth = weeksOfMonth; + this.daysOfWeek = daysOfWeek; + this.hoursOfDay = hoursOfDay; + this.leadTimeInWeeks = leadTimeInWeeks; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The maintenance window scheduling preference. */ + @com.fasterxml.jackson.annotation.JsonProperty("preference") + private MaintenancePreference preference; + + /** + * The maintenance window scheduling preference. + * + * @param preference the value to set + * @return this builder + */ + public Builder preference(MaintenancePreference preference) { + this.preference = preference; + this.__explicitlySet__.add("preference"); + return this; + } + /** + * Cloud Database Infrastructure node patching method. *IMPORTANT*: Non-rolling + * infrastructure patching involves system down time. See [Oracle-Managed Database + * Infrastructure Maintenance + * Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) + * for more information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private BasePatchingMode patchingMode; + + /** + * Cloud Database Infrastructure node patching method. *IMPORTANT*: Non-rolling + * infrastructure patching involves system down time. See [Oracle-Managed Database + * Infrastructure Maintenance + * Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) + * for more information. + * + * @param patchingMode the value to set + * @return this builder + */ + public Builder patchingMode(BasePatchingMode patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * Database Infrastructure server patching operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * Database Infrastructure server patching operations. + * + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + */ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each Database + * Infrastructure server patching operation. Custom action timeout is in minutes and valid + * value is between 15 to 120 (inclusive). + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each Database + * Infrastructure server patching operation. Custom action timeout is in minutes and valid + * value is between 15 to 120 (inclusive). + * + * @param customActionTimeoutInMins the value to set + * @return this builder + */ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** If true, enables the monthly patching option. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMonthlyPatchingEnabled") + private Boolean isMonthlyPatchingEnabled; + + /** + * If true, enables the monthly patching option. + * + * @param isMonthlyPatchingEnabled the value to set + * @return this builder + */ + public Builder isMonthlyPatchingEnabled(Boolean isMonthlyPatchingEnabled) { + this.isMonthlyPatchingEnabled = isMonthlyPatchingEnabled; + this.__explicitlySet__.add("isMonthlyPatchingEnabled"); + return this; + } + /** Months during the year when maintenance should be performed. */ + @com.fasterxml.jackson.annotation.JsonProperty("months") + private java.util.List months; + + /** + * Months during the year when maintenance 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 maintenance 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 maintenance during + * the 2nd week of the month (from the 8th day to the 14th day of the month), use the value + * 2. Maintenance 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 hoursOfDay + * parameters to allow you to specify specific days of the week and hours that maintenance + * will be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("weeksOfMonth") + private java.util.List weeksOfMonth; + + /** + * Weeks during the month when maintenance 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 maintenance during + * the 2nd week of the month (from the 8th day to the 14th day of the month), use the value + * 2. Maintenance 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 hoursOfDay + * parameters to allow you to specify specific days of the week and hours that maintenance + * 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 maintenance should be performed. */ + @com.fasterxml.jackson.annotation.JsonProperty("daysOfWeek") + private java.util.List daysOfWeek; + + /** + * Days during the week when maintenance 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 window of hours during the day when maintenance should be performed. The window is a + * 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents + * time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents + * time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - + * represents time slot 20:00 - 23:59 UTC + */ + @com.fasterxml.jackson.annotation.JsonProperty("hoursOfDay") + private java.util.List hoursOfDay; + + /** + * The window of hours during the day when maintenance should be performed. The window is a + * 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents + * time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents + * time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - + * represents time slot 20:00 - 23:59 UTC + * + * @param hoursOfDay the value to set + * @return this builder + */ + public Builder hoursOfDay(java.util.List hoursOfDay) { + this.hoursOfDay = hoursOfDay; + this.__explicitlySet__.add("hoursOfDay"); + return this; + } + /** + * Lead time window allows user to set a lead time to prepare for a down time. The lead time + * is in weeks and valid value is between 1 to 4. + */ + @com.fasterxml.jackson.annotation.JsonProperty("leadTimeInWeeks") + private Integer leadTimeInWeeks; + + /** + * Lead time window allows user to set a lead time to prepare for a down time. The lead time + * is in weeks and valid value is between 1 to 4. + * + * @param leadTimeInWeeks the value to set + * @return this builder + */ + public Builder leadTimeInWeeks(Integer leadTimeInWeeks) { + this.leadTimeInWeeks = leadTimeInWeeks; + this.__explicitlySet__.add("leadTimeInWeeks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceWindow build() { + MaintenanceWindow model = + new MaintenanceWindow( + this.preference, + this.patchingMode, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.isMonthlyPatchingEnabled, + this.months, + this.weeksOfMonth, + this.daysOfWeek, + this.hoursOfDay, + this.leadTimeInWeeks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceWindow model) { + if (model.wasPropertyExplicitlySet("preference")) { + this.preference(model.getPreference()); + } + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("isMonthlyPatchingEnabled")) { + this.isMonthlyPatchingEnabled(model.getIsMonthlyPatchingEnabled()); + } + 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("hoursOfDay")) { + this.hoursOfDay(model.getHoursOfDay()); + } + if (model.wasPropertyExplicitlySet("leadTimeInWeeks")) { + this.leadTimeInWeeks(model.getLeadTimeInWeeks()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The maintenance window scheduling preference. */ + @com.fasterxml.jackson.annotation.JsonProperty("preference") + private final MaintenancePreference preference; + + /** + * The maintenance window scheduling preference. + * + * @return the value + */ + public MaintenancePreference getPreference() { + return preference; + } + + /** + * Cloud Database Infrastructure node patching method. *IMPORTANT*: Non-rolling infrastructure + * patching involves system down time. See [Oracle-Managed Database Infrastructure Maintenance + * Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) + * for more information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final BasePatchingMode patchingMode; + + /** + * Cloud Database Infrastructure node patching method. *IMPORTANT*: Non-rolling infrastructure + * patching involves system down time. See [Oracle-Managed Database Infrastructure Maintenance + * Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) + * for more information. + * + * @return the value + */ + public BasePatchingMode getPatchingMode() { + return patchingMode; + } + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * Database Infrastructure server patching operations. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between + * Database Infrastructure server patching operations. + * + * @return the value + */ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each Database + * Infrastructure server patching operation. Custom action timeout is in minutes and valid value + * is between 15 to 120 (inclusive). + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each Database + * Infrastructure server patching operation. Custom action timeout is in minutes and valid value + * is between 15 to 120 (inclusive). + * + * @return the value + */ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** If true, enables the monthly patching option. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMonthlyPatchingEnabled") + private final Boolean isMonthlyPatchingEnabled; + + /** + * If true, enables the monthly patching option. + * + * @return the value + */ + public Boolean getIsMonthlyPatchingEnabled() { + return isMonthlyPatchingEnabled; + } + + /** */ + public enum Months implements com.oracle.bmc.http.internal.BmcEnum { + January("JANUARY"), + February("FEBRUARY"), + March("MARCH"), + April("APRIL"), + May("MAY"), + June("JUNE"), + July("JULY"), + August("AUGUST"), + September("SEPTEMBER"), + October("OCTOBER"), + November("NOVEMBER"), + December("DECEMBER"), + + /** + * 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(Months.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Months v : Months.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Months(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Months create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Months', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Months during the year when maintenance should be performed. */ + @com.fasterxml.jackson.annotation.JsonProperty("months") + private final java.util.List months; + + /** + * Months during the year when maintenance should be performed. + * + * @return the value + */ + public java.util.List getMonths() { + return months; + } + + /** + * Weeks during the month when maintenance 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 maintenance during the 2nd week of + * the month (from the 8th day to the 14th day of the month), use the value 2. Maintenance + * 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 hoursOfDay parameters to allow + * you to specify specific days of the week and hours that maintenance will be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("weeksOfMonth") + private final java.util.List weeksOfMonth; + + /** + * Weeks during the month when maintenance 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 maintenance during the 2nd week of + * the month (from the 8th day to the 14th day of the month), use the value 2. Maintenance + * 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 hoursOfDay parameters to allow + * you to specify specific days of the week and hours that maintenance will be performed. + * + * @return the value + */ + public java.util.List getWeeksOfMonth() { + return weeksOfMonth; + } + + /** */ + public enum DaysOfWeek implements com.oracle.bmc.http.internal.BmcEnum { + Monday("MONDAY"), + Tuesday("TUESDAY"), + Wednesday("WEDNESDAY"), + Thursday("THURSDAY"), + Friday("FRIDAY"), + Saturday("SATURDAY"), + Sunday("SUNDAY"), + + /** + * 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(DaysOfWeek.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DaysOfWeek v : DaysOfWeek.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DaysOfWeek(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DaysOfWeek create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DaysOfWeek', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Days during the week when maintenance should be performed. */ + @com.fasterxml.jackson.annotation.JsonProperty("daysOfWeek") + private final java.util.List daysOfWeek; + + /** + * Days during the week when maintenance should be performed. + * + * @return the value + */ + public java.util.List getDaysOfWeek() { + return daysOfWeek; + } + + /** + * The window of hours during the day when maintenance should be performed. The window is a 4 + * hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time + * slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot + * 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot + * 20:00 - 23:59 UTC + */ + @com.fasterxml.jackson.annotation.JsonProperty("hoursOfDay") + private final java.util.List hoursOfDay; + + /** + * The window of hours during the day when maintenance should be performed. The window is a 4 + * hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time + * slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot + * 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot + * 20:00 - 23:59 UTC + * + * @return the value + */ + public java.util.List getHoursOfDay() { + return hoursOfDay; + } + + /** + * Lead time window allows user to set a lead time to prepare for a down time. The lead time is + * in weeks and valid value is between 1 to 4. + */ + @com.fasterxml.jackson.annotation.JsonProperty("leadTimeInWeeks") + private final Integer leadTimeInWeeks; + + /** + * Lead time window allows user to set a lead time to prepare for a down time. The lead time is + * in weeks and valid value is between 1 to 4. + * + * @return the value + */ + public Integer getLeadTimeInWeeks() { + return leadTimeInWeeks; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceWindow("); + sb.append("super=").append(super.toString()); + sb.append("preference=").append(String.valueOf(this.preference)); + sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", isMonthlyPatchingEnabled=") + .append(String.valueOf(this.isMonthlyPatchingEnabled)); + 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(", hoursOfDay=").append(String.valueOf(this.hoursOfDay)); + sb.append(", leadTimeInWeeks=").append(String.valueOf(this.leadTimeInWeeks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceWindow)) { + return false; + } + + MaintenanceWindow other = (MaintenanceWindow) o; + return java.util.Objects.equals(this.preference, other.preference) + && java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals( + this.isMonthlyPatchingEnabled, other.isMonthlyPatchingEnabled) + && 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.hoursOfDay, other.hoursOfDay) + && java.util.Objects.equals(this.leadTimeInWeeks, other.leadTimeInWeeks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.preference == null ? 43 : this.preference.hashCode()); + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.isMonthlyPatchingEnabled == null + ? 43 + : this.isMonthlyPatchingEnabled.hashCode()); + 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.hoursOfDay == null ? 43 : this.hoursOfDay.hashCode()); + result = + (result * PRIME) + + (this.leadTimeInWeeks == null ? 43 : this.leadTimeInWeeks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingInterfaceEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingInterfaceEnum.java new file mode 100644 index 00000000000..bce6b1395ca --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingInterfaceEnum.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Network Bonding Interface */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum NetworkBondingInterfaceEnum implements com.oracle.bmc.http.internal.BmcEnum { + Btbond1("BTBOND1"), + Btbond2("BTBOND2"), + Btbond3("BTBOND3"), + Btbond4("BTBOND4"), + Btbond5("BTBOND5"), + Btbond6("BTBOND6"), + + /** + * 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(NetworkBondingInterfaceEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NetworkBondingInterfaceEnum v : NetworkBondingInterfaceEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + NetworkBondingInterfaceEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NetworkBondingInterfaceEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'NetworkBondingInterfaceEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingMode.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingMode.java new file mode 100644 index 00000000000..f58b98d190a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingMode.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** The network bonding mode for the Database Infrastructure. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum NetworkBondingMode implements com.oracle.bmc.http.internal.BmcEnum { + ActiveBackup("ACTIVE_BACKUP"), + Lacp("LACP"), + + /** + * 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(NetworkBondingMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NetworkBondingMode v : NetworkBondingMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + NetworkBondingMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NetworkBondingMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'NetworkBondingMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NodeDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NodeDetails.java new file mode 100644 index 00000000000..9d8270d1f80 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NodeDetails.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Node details associated with a VM cluster network.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = NodeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"hostname", "ip", "vipHostname", "vip"}) + public NodeDetails(String hostname, String ip, String vipHostname, String vip) { + super(); + this.hostname = hostname; + this.ip = ip; + this.vipHostname = vipHostname; + this.vip = vip; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The node host name. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The node host name. + * + * @param hostname the value to set + * @return this builder + */ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } + /** The node IP address. */ + @com.fasterxml.jackson.annotation.JsonProperty("ip") + private String ip; + + /** + * The node IP address. + * + * @param ip the value to set + * @return this builder + */ + public Builder ip(String ip) { + this.ip = ip; + this.__explicitlySet__.add("ip"); + return this; + } + /** The node virtual IP (VIP) host name. */ + @com.fasterxml.jackson.annotation.JsonProperty("vipHostname") + private String vipHostname; + + /** + * The node virtual IP (VIP) host name. + * + * @param vipHostname the value to set + * @return this builder + */ + public Builder vipHostname(String vipHostname) { + this.vipHostname = vipHostname; + this.__explicitlySet__.add("vipHostname"); + return this; + } + /** The node virtual IP (VIP) address. */ + @com.fasterxml.jackson.annotation.JsonProperty("vip") + private String vip; + + /** + * The node virtual IP (VIP) address. + * + * @param vip the value to set + * @return this builder + */ + public Builder vip(String vip) { + this.vip = vip; + this.__explicitlySet__.add("vip"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeDetails build() { + NodeDetails model = new NodeDetails(this.hostname, this.ip, this.vipHostname, this.vip); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeDetails model) { + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } + if (model.wasPropertyExplicitlySet("ip")) { + this.ip(model.getIp()); + } + if (model.wasPropertyExplicitlySet("vipHostname")) { + this.vipHostname(model.getVipHostname()); + } + if (model.wasPropertyExplicitlySet("vip")) { + this.vip(model.getVip()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The node host name. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The node host name. + * + * @return the value + */ + public String getHostname() { + return hostname; + } + + /** The node IP address. */ + @com.fasterxml.jackson.annotation.JsonProperty("ip") + private final String ip; + + /** + * The node IP address. + * + * @return the value + */ + public String getIp() { + return ip; + } + + /** The node virtual IP (VIP) host name. */ + @com.fasterxml.jackson.annotation.JsonProperty("vipHostname") + private final String vipHostname; + + /** + * The node virtual IP (VIP) host name. + * + * @return the value + */ + public String getVipHostname() { + return vipHostname; + } + + /** The node virtual IP (VIP) address. */ + @com.fasterxml.jackson.annotation.JsonProperty("vip") + private final String vip; + + /** + * The node virtual IP (VIP) address. + * + * @return the value + */ + public String getVip() { + return vip; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeDetails("); + sb.append("super=").append(super.toString()); + sb.append("hostname=").append(String.valueOf(this.hostname)); + sb.append(", ip=").append(String.valueOf(this.ip)); + sb.append(", vipHostname=").append(String.valueOf(this.vipHostname)); + sb.append(", vip=").append(String.valueOf(this.vip)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeDetails)) { + return false; + } + + NodeDetails other = (NodeDetails) o; + return java.util.Objects.equals(this.hostname, other.hostname) + && java.util.Objects.equals(this.ip, other.ip) + && java.util.Objects.equals(this.vipHostname, other.vipHostname) + && java.util.Objects.equals(this.vip, other.vip) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); + result = (result * PRIME) + (this.ip == null ? 43 : this.ip.hashCode()); + result = (result * PRIME) + (this.vipHostname == null ? 43 : this.vipHostname.hashCode()); + result = (result * PRIME) + (this.vip == null ? 43 : this.vip.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationStatus.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationStatus.java new file mode 100644 index 00000000000..a7d7cb59b09 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationStatus.java @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Possible operation status. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + Waiting("WAITING"), + + /** + * 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-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationType.java new file mode 100644 index 00000000000..59119317113 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationType.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Possible operation types. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + CreateInstance("CREATE_INSTANCE"), + DeleteInstance("DELETE_INSTANCE"), + UpdateInstance("UPDATE_INSTANCE"), + ChangeInstanceCompartment("CHANGE_INSTANCE_COMPARTMENT"), + CreateBaseVmClusterNetwork("CREATE_BASE_VM_CLUSTER_NETWORK"), + DeleteBaseVmClusterNetwork("DELETE_BASE_VM_CLUSTER_NETWORK"), + ValidateBaseVmClusterNetwork("VALIDATE_BASE_VM_CLUSTER_NETWORK"), + UpdateBaseVmClusterNetwork("UPDATE_BASE_VM_CLUSTER_NETWORK"), + ChangeBaseVmClusterNetworkCompartment("CHANGE_BASE_VM_CLUSTER_NETWORK_COMPARTMENT"), + StartBaseVm("START_BASE_VM"), + StopBaseVm("STOP_BASE_VM"), + StartInstance("START_INSTANCE"), + StopInstance("STOP_INSTANCE"), + ScaleInstance("SCALE_INSTANCE"), + RestartInstance("RESTART_INSTANCE"), + RestartBaseVm("RESTART_BASE_VM"), + MigrateInstance("MIGRATE_INSTANCE"), + ScaleBaseVm("SCALE_BASE_VM"), + UpdateSoftwareImage("UPDATE_SOFTWARE_IMAGE"), + ChangeSoftwareImageCompartment("CHANGE_SOFTWARE_IMAGE_COMPARTMENT"), + ValidateProxy("VALIDATE_PROXY"), + CreateBaseInfraCapacity("CREATE_BASE_INFRA_CAPACITY"), + UpdateBaseInfraCapacity("UPDATE_BASE_INFRA_CAPACITY"), + DeleteBaseInfraCapacity("DELETE_BASE_INFRA_CAPACITY"), + ActivateBaseInfrastructure("ACTIVATE_BASE_INFRASTRUCTURE"), + CreateBaseInfrastructure("CREATE_BASE_INFRASTRUCTURE"), + DeleteBaseInfrastructure("DELETE_BASE_INFRASTRUCTURE"), + UpdateBaseInfrastructure("UPDATE_BASE_INFRASTRUCTURE"), + UpdateBaseInfrastructureSoftware("UPDATE_BASE_INFRASTRUCTURE_SOFTWARE"), + ValidateBaseInfrastructure("VALIDATE_BASE_INFRASTRUCTURE"), + ChangeBaseInfrastructureCompartment("CHANGE_BASE_INFRASTRUCTURE_COMPARTMENT"), + AnalyzeInfrastructure("ANALYZE_INFRASTRUCTURE"), + AnalyzeBaseInfraNetwork("ANALYZE_BASE_INFRA_NETWORK"), + InfrastructureSreValidation("INFRASTRUCTURE_SRE_VALIDATION"), + CreateMaintenanceRun("CREATE_MAINTENANCE_RUN"), + UpdateMaintenanceRun("UPDATE_MAINTENANCE_RUN"), + RescheduleMaintenanceRun("RESCHEDULE_MAINTENANCE_RUN"), + InfrastructureScaleStorage("INFRASTRUCTURE_SCALE_STORAGE"), + + /** + * 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-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingModeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingModeEnum.java new file mode 100644 index 00000000000..366ce5a9ac7 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingModeEnum.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Patching mode of the maintenance run */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum PatchingModeEnum implements com.oracle.bmc.http.internal.BmcEnum { + Rolling("ROLLING"), + Nonrolling("NONROLLING"), + + /** + * 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(PatchingModeEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PatchingModeEnum v : PatchingModeEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PatchingModeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PatchingModeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PatchingModeEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingStatusEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingStatusEnum.java new file mode 100644 index 00000000000..410ccea96c1 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingStatusEnum.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** The status of the patching operation. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum PatchingStatusEnum implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Patching("PATCHING"), + Waiting("WAITING"), + Scheduled("SCHEDULED"), + Complete("COMPLETE"), + 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(PatchingStatusEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PatchingStatusEnum v : PatchingStatusEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PatchingStatusEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PatchingStatusEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PatchingStatusEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/RescheduleMaintenanceRunDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/RescheduleMaintenanceRunDetails.java new file mode 100644 index 00000000000..9a05562433d --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/RescheduleMaintenanceRunDetails.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Request parameters for rescheduling a maintenance run.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RescheduleMaintenanceRunDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RescheduleMaintenanceRunDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"timeScheduled", "reason"}) + public RescheduleMaintenanceRunDetails(java.util.Date timeScheduled, String reason) { + super(); + this.timeScheduled = timeScheduled; + this.reason = reason; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The new date and time for the scheduled maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The new date and time for the scheduled maintenance run. + * + * @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; + } + /** The reason for rescheduling the maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("reason") + private String reason; + + /** + * The reason for rescheduling the maintenance run. + * + * @param reason the value to set + * @return this builder + */ + public Builder reason(String reason) { + this.reason = reason; + this.__explicitlySet__.add("reason"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RescheduleMaintenanceRunDetails build() { + RescheduleMaintenanceRunDetails model = + new RescheduleMaintenanceRunDetails(this.timeScheduled, this.reason); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RescheduleMaintenanceRunDetails model) { + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("reason")) { + this.reason(model.getReason()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The new date and time for the scheduled maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The new date and time for the scheduled maintenance run. + * + * @return the value + */ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** The reason for rescheduling the maintenance run. */ + @com.fasterxml.jackson.annotation.JsonProperty("reason") + private final String reason; + + /** + * The reason for rescheduling the maintenance run. + * + * @return the value + */ + public String getReason() { + return reason; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RescheduleMaintenanceRunDetails("); + sb.append("super=").append(super.toString()); + sb.append("timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", reason=").append(String.valueOf(this.reason)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RescheduleMaintenanceRunDetails)) { + return false; + } + + RescheduleMaintenanceRunDetails other = (RescheduleMaintenanceRunDetails) o; + return java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.reason, other.reason) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = (result * PRIME) + (this.reason == null ? 43 : this.reason.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleInfrastructureStorageDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleInfrastructureStorageDetails.java new file mode 100644 index 00000000000..d8a11421cba --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleInfrastructureStorageDetails.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * The scale option to be selected for 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScaleInfrastructureStorageDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScaleInfrastructureStorageDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ssdConfigurationRequested"}) + public ScaleInfrastructureStorageDetails(ShapeEnum ssdConfigurationRequested) { + super(); + this.ssdConfigurationRequested = ssdConfigurationRequested; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The scale option to be selected for the infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private ShapeEnum ssdConfigurationRequested; + + /** + * The scale option to be selected for the infrastructure. + * + * @param ssdConfigurationRequested the value to set + * @return this builder + */ + public Builder ssdConfigurationRequested(ShapeEnum ssdConfigurationRequested) { + this.ssdConfigurationRequested = ssdConfigurationRequested; + this.__explicitlySet__.add("ssdConfigurationRequested"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScaleInfrastructureStorageDetails build() { + ScaleInfrastructureStorageDetails model = + new ScaleInfrastructureStorageDetails(this.ssdConfigurationRequested); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScaleInfrastructureStorageDetails model) { + if (model.wasPropertyExplicitlySet("ssdConfigurationRequested")) { + this.ssdConfigurationRequested(model.getSsdConfigurationRequested()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The scale option to be selected for the infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private final ShapeEnum ssdConfigurationRequested; + + /** + * The scale option to be selected for the infrastructure. + * + * @return the value + */ + public ShapeEnum getSsdConfigurationRequested() { + return ssdConfigurationRequested; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScaleInfrastructureStorageDetails("); + sb.append("super=").append(super.toString()); + sb.append("ssdConfigurationRequested=") + .append(String.valueOf(this.ssdConfigurationRequested)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleInfrastructureStorageDetails)) { + return false; + } + + ScaleInfrastructureStorageDetails other = (ScaleInfrastructureStorageDetails) o; + return java.util.Objects.equals( + this.ssdConfigurationRequested, other.ssdConfigurationRequested) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.ssdConfigurationRequested == null + ? 43 + : this.ssdConfigurationRequested.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleVmInstanceDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleVmInstanceDetails.java new file mode 100644 index 00000000000..bea81088a68 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleVmInstanceDetails.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Scale the VM instance.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScaleVmInstanceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScaleVmInstanceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"memorySizeInGBs", "cpusEnabled"}) + public ScaleVmInstanceDetails(Double memorySizeInGBs, Integer cpusEnabled) { + super(); + this.memorySizeInGBs = memorySizeInGBs; + this.cpusEnabled = cpusEnabled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * + * @param memorySizeInGBs the value to set + * @return this builder + */ + public Builder memorySizeInGBs(Double memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** The number of CPU cores to be enabled for VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private Integer cpusEnabled; + + /** + * The number of CPU cores to be enabled for VM instance. + * + * @param cpusEnabled the value to set + * @return this builder + */ + public Builder cpusEnabled(Integer cpusEnabled) { + this.cpusEnabled = cpusEnabled; + this.__explicitlySet__.add("cpusEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScaleVmInstanceDetails build() { + ScaleVmInstanceDetails model = + new ScaleVmInstanceDetails(this.memorySizeInGBs, this.cpusEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScaleVmInstanceDetails model) { + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("cpusEnabled")) { + this.cpusEnabled(model.getCpusEnabled()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * + * @return the value + */ + public Double getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** The number of CPU cores to be enabled for VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private final Integer cpusEnabled; + + /** + * The number of CPU cores to be enabled for VM instance. + * + * @return the value + */ + public Integer getCpusEnabled() { + return cpusEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScaleVmInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleVmInstanceDetails)) { + return false; + } + + ScaleVmInstanceDetails other = (ScaleVmInstanceDetails) o; + return java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = (result * PRIME) + (this.cpusEnabled == null ? 43 : this.cpusEnabled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScanDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScanDetails.java new file mode 100644 index 00000000000..bfd98b07575 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScanDetails.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * The Single Client Access Name (SCAN) 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ScanDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScanDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"hostname", "ips"}) + public ScanDetails(String hostname, java.util.List ips) { + super(); + this.hostname = hostname; + this.ips = ips; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The SCAN hostname. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The SCAN hostname. + * + * @param hostname the value to set + * @return this builder + */ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } + /** The list of SCAN IP addresses. Three addresses should be provided. */ + @com.fasterxml.jackson.annotation.JsonProperty("ips") + private java.util.List ips; + + /** + * The list of SCAN IP addresses. Three addresses should be provided. + * + * @param ips the value to set + * @return this builder + */ + public Builder ips(java.util.List ips) { + this.ips = ips; + this.__explicitlySet__.add("ips"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScanDetails build() { + ScanDetails model = new ScanDetails(this.hostname, this.ips); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScanDetails model) { + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } + if (model.wasPropertyExplicitlySet("ips")) { + this.ips(model.getIps()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The SCAN hostname. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The SCAN hostname. + * + * @return the value + */ + public String getHostname() { + return hostname; + } + + /** The list of SCAN IP addresses. Three addresses should be provided. */ + @com.fasterxml.jackson.annotation.JsonProperty("ips") + private final java.util.List ips; + + /** + * The list of SCAN IP addresses. Three addresses should be provided. + * + * @return the value + */ + public java.util.List getIps() { + return ips; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScanDetails("); + sb.append("super=").append(super.toString()); + sb.append("hostname=").append(String.valueOf(this.hostname)); + sb.append(", ips=").append(String.valueOf(this.ips)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScanDetails)) { + return false; + } + + ScanDetails other = (ScanDetails) o; + return java.util.Objects.equals(this.hostname, other.hostname) + && java.util.Objects.equals(this.ips, other.ips) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); + result = (result * PRIME) + (this.ips == null ? 43 : this.ips.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ShapeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ShapeEnum.java new file mode 100644 index 00000000000..9f0d25f9f0a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ShapeEnum.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Model Shapes for Database Infrastructure. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum ShapeEnum implements com.oracle.bmc.http.internal.BmcEnum { + SixSsds("SIX_SSDS"), + TwelveSsds("TWELVE_SSDS"), + EighteenSsds("EIGHTEEN_SSDS"), + TwentyFourSsds("TWENTY_FOUR_SSDS"), + + /** + * 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(ShapeEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ShapeEnum v : ShapeEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ShapeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ShapeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ShapeEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SortOrder.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SortOrder.java new file mode 100644 index 00000000000..e093b3c8f36 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SortOrder.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Sort orders. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageCapacityDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageCapacityDetails.java new file mode 100644 index 00000000000..f41bda5668b --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageCapacityDetails.java @@ -0,0 +1,371 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Capacity details of the Storage disk group.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StorageCapacityDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class StorageCapacityDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "storageDiskRedundancy", + "diskGroup", + "phyTotalSpaceInGBs", + "phyReservedSpaceInGBs", + "phyFreeSpaceInGBs", + "logicalFreeSpaceInGBs" + }) + public StorageCapacityDetails( + StorageDiskRedundancy storageDiskRedundancy, + String diskGroup, + Long phyTotalSpaceInGBs, + Long phyReservedSpaceInGBs, + Long phyFreeSpaceInGBs, + Long logicalFreeSpaceInGBs) { + super(); + this.storageDiskRedundancy = storageDiskRedundancy; + this.diskGroup = diskGroup; + this.phyTotalSpaceInGBs = phyTotalSpaceInGBs; + this.phyReservedSpaceInGBs = phyReservedSpaceInGBs; + this.phyFreeSpaceInGBs = phyFreeSpaceInGBs; + this.logicalFreeSpaceInGBs = logicalFreeSpaceInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The Disk redundancy for Database Infrastructure storage. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageDiskRedundancy") + private StorageDiskRedundancy storageDiskRedundancy; + + /** + * The Disk redundancy for Database Infrastructure storage. + * + * @param storageDiskRedundancy the value to set + * @return this builder + */ + public Builder storageDiskRedundancy(StorageDiskRedundancy storageDiskRedundancy) { + this.storageDiskRedundancy = storageDiskRedundancy; + this.__explicitlySet__.add("storageDiskRedundancy"); + return this; + } + /** Disk group name. */ + @com.fasterxml.jackson.annotation.JsonProperty("diskGroup") + private String diskGroup; + + /** + * Disk group name. + * + * @param diskGroup the value to set + * @return this builder + */ + public Builder diskGroup(String diskGroup) { + this.diskGroup = diskGroup; + this.__explicitlySet__.add("diskGroup"); + return this; + } + /** The total amount of physical disk space available in a disk group, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("phyTotalSpaceInGBs") + private Long phyTotalSpaceInGBs; + + /** + * The total amount of physical disk space available in a disk group, in gigabytes (GB). + * + * @param phyTotalSpaceInGBs the value to set + * @return this builder + */ + public Builder phyTotalSpaceInGBs(Long phyTotalSpaceInGBs) { + this.phyTotalSpaceInGBs = phyTotalSpaceInGBs; + this.__explicitlySet__.add("phyTotalSpaceInGBs"); + return this; + } + /** + * The total amount of physical disk space that is reserved for system use in a disk group, + * in gigabytes (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("phyReservedSpaceInGBs") + private Long phyReservedSpaceInGBs; + + /** + * The total amount of physical disk space that is reserved for system use in a disk group, + * in gigabytes (GB). + * + * @param phyReservedSpaceInGBs the value to set + * @return this builder + */ + public Builder phyReservedSpaceInGBs(Long phyReservedSpaceInGBs) { + this.phyReservedSpaceInGBs = phyReservedSpaceInGBs; + this.__explicitlySet__.add("phyReservedSpaceInGBs"); + return this; + } + /** + * The total amount of physical disk space that is currently available for use in a disk + * group, in gigabytes (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("phyFreeSpaceInGBs") + private Long phyFreeSpaceInGBs; + + /** + * The total amount of physical disk space that is currently available for use in a disk + * group, in gigabytes (GB). + * + * @param phyFreeSpaceInGBs the value to set + * @return this builder + */ + public Builder phyFreeSpaceInGBs(Long phyFreeSpaceInGBs) { + this.phyFreeSpaceInGBs = phyFreeSpaceInGBs; + this.__explicitlySet__.add("phyFreeSpaceInGBs"); + return this; + } + /** + * The total amount of logical disk space that is currently available for use in a disk + * group, in gigabytes (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("logicalFreeSpaceInGBs") + private Long logicalFreeSpaceInGBs; + + /** + * The total amount of logical disk space that is currently available for use in a disk + * group, in gigabytes (GB). + * + * @param logicalFreeSpaceInGBs the value to set + * @return this builder + */ + public Builder logicalFreeSpaceInGBs(Long logicalFreeSpaceInGBs) { + this.logicalFreeSpaceInGBs = logicalFreeSpaceInGBs; + this.__explicitlySet__.add("logicalFreeSpaceInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StorageCapacityDetails build() { + StorageCapacityDetails model = + new StorageCapacityDetails( + this.storageDiskRedundancy, + this.diskGroup, + this.phyTotalSpaceInGBs, + this.phyReservedSpaceInGBs, + this.phyFreeSpaceInGBs, + this.logicalFreeSpaceInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StorageCapacityDetails model) { + if (model.wasPropertyExplicitlySet("storageDiskRedundancy")) { + this.storageDiskRedundancy(model.getStorageDiskRedundancy()); + } + if (model.wasPropertyExplicitlySet("diskGroup")) { + this.diskGroup(model.getDiskGroup()); + } + if (model.wasPropertyExplicitlySet("phyTotalSpaceInGBs")) { + this.phyTotalSpaceInGBs(model.getPhyTotalSpaceInGBs()); + } + if (model.wasPropertyExplicitlySet("phyReservedSpaceInGBs")) { + this.phyReservedSpaceInGBs(model.getPhyReservedSpaceInGBs()); + } + if (model.wasPropertyExplicitlySet("phyFreeSpaceInGBs")) { + this.phyFreeSpaceInGBs(model.getPhyFreeSpaceInGBs()); + } + if (model.wasPropertyExplicitlySet("logicalFreeSpaceInGBs")) { + this.logicalFreeSpaceInGBs(model.getLogicalFreeSpaceInGBs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The Disk redundancy for Database Infrastructure storage. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageDiskRedundancy") + private final StorageDiskRedundancy storageDiskRedundancy; + + /** + * The Disk redundancy for Database Infrastructure storage. + * + * @return the value + */ + public StorageDiskRedundancy getStorageDiskRedundancy() { + return storageDiskRedundancy; + } + + /** Disk group name. */ + @com.fasterxml.jackson.annotation.JsonProperty("diskGroup") + private final String diskGroup; + + /** + * Disk group name. + * + * @return the value + */ + public String getDiskGroup() { + return diskGroup; + } + + /** The total amount of physical disk space available in a disk group, in gigabytes (GB). */ + @com.fasterxml.jackson.annotation.JsonProperty("phyTotalSpaceInGBs") + private final Long phyTotalSpaceInGBs; + + /** + * The total amount of physical disk space available in a disk group, in gigabytes (GB). + * + * @return the value + */ + public Long getPhyTotalSpaceInGBs() { + return phyTotalSpaceInGBs; + } + + /** + * The total amount of physical disk space that is reserved for system use in a disk group, in + * gigabytes (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("phyReservedSpaceInGBs") + private final Long phyReservedSpaceInGBs; + + /** + * The total amount of physical disk space that is reserved for system use in a disk group, in + * gigabytes (GB). + * + * @return the value + */ + public Long getPhyReservedSpaceInGBs() { + return phyReservedSpaceInGBs; + } + + /** + * The total amount of physical disk space that is currently available for use in a disk group, + * in gigabytes (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("phyFreeSpaceInGBs") + private final Long phyFreeSpaceInGBs; + + /** + * The total amount of physical disk space that is currently available for use in a disk group, + * in gigabytes (GB). + * + * @return the value + */ + public Long getPhyFreeSpaceInGBs() { + return phyFreeSpaceInGBs; + } + + /** + * The total amount of logical disk space that is currently available for use in a disk group, + * in gigabytes (GB). + */ + @com.fasterxml.jackson.annotation.JsonProperty("logicalFreeSpaceInGBs") + private final Long logicalFreeSpaceInGBs; + + /** + * The total amount of logical disk space that is currently available for use in a disk group, + * in gigabytes (GB). + * + * @return the value + */ + public Long getLogicalFreeSpaceInGBs() { + return logicalFreeSpaceInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StorageCapacityDetails("); + sb.append("super=").append(super.toString()); + sb.append("storageDiskRedundancy=").append(String.valueOf(this.storageDiskRedundancy)); + sb.append(", diskGroup=").append(String.valueOf(this.diskGroup)); + sb.append(", phyTotalSpaceInGBs=").append(String.valueOf(this.phyTotalSpaceInGBs)); + sb.append(", phyReservedSpaceInGBs=").append(String.valueOf(this.phyReservedSpaceInGBs)); + sb.append(", phyFreeSpaceInGBs=").append(String.valueOf(this.phyFreeSpaceInGBs)); + sb.append(", logicalFreeSpaceInGBs=").append(String.valueOf(this.logicalFreeSpaceInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StorageCapacityDetails)) { + return false; + } + + StorageCapacityDetails other = (StorageCapacityDetails) o; + return java.util.Objects.equals(this.storageDiskRedundancy, other.storageDiskRedundancy) + && java.util.Objects.equals(this.diskGroup, other.diskGroup) + && java.util.Objects.equals(this.phyTotalSpaceInGBs, other.phyTotalSpaceInGBs) + && java.util.Objects.equals(this.phyReservedSpaceInGBs, other.phyReservedSpaceInGBs) + && java.util.Objects.equals(this.phyFreeSpaceInGBs, other.phyFreeSpaceInGBs) + && java.util.Objects.equals(this.logicalFreeSpaceInGBs, other.logicalFreeSpaceInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.storageDiskRedundancy == null + ? 43 + : this.storageDiskRedundancy.hashCode()); + result = (result * PRIME) + (this.diskGroup == null ? 43 : this.diskGroup.hashCode()); + result = + (result * PRIME) + + (this.phyTotalSpaceInGBs == null + ? 43 + : this.phyTotalSpaceInGBs.hashCode()); + result = + (result * PRIME) + + (this.phyReservedSpaceInGBs == null + ? 43 + : this.phyReservedSpaceInGBs.hashCode()); + result = + (result * PRIME) + + (this.phyFreeSpaceInGBs == null ? 43 : this.phyFreeSpaceInGBs.hashCode()); + result = + (result * PRIME) + + (this.logicalFreeSpaceInGBs == null + ? 43 + : this.logicalFreeSpaceInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageDiskRedundancy.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageDiskRedundancy.java new file mode 100644 index 00000000000..be840701641 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageDiskRedundancy.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * The type of redundancy configured for the Database Infrastructure storage disk. MIRROR is 2-way + * redundancy. HIGH is 3-way redundancy. FLEX redundancy can be either HIGH or MIRROR. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum StorageDiskRedundancy implements com.oracle.bmc.http.internal.BmcEnum { + High("HIGH"), + Mirror("MIRROR"), + Flex("FLEX"), + + /** + * 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(StorageDiskRedundancy.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageDiskRedundancy v : StorageDiskRedundancy.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + StorageDiskRedundancy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageDiskRedundancy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'StorageDiskRedundancy', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageType.java new file mode 100644 index 00000000000..3c0b7465e9c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageType.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Storage type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum StorageType implements com.oracle.bmc.http.internal.BmcEnum { + HighCapacity("HIGH_CAPACITY"), + Extended("EXTENDED"), + ExtremeFlash("EXTREME_FLASH"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageType v : StorageType.values()) { + map.put(v.getValue(), v); + } + } + + StorageType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StorageType: " + key); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemModelEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemModelEnum.java new file mode 100644 index 00000000000..d4ffa9c26d2 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemModelEnum.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** System Model for Database Infrastructure. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum SystemModelEnum implements com.oracle.bmc.http.internal.BmcEnum { + X11Ha768("X11_HA_768"), + X10Ha512("X10_HA_512"), + X8Ha384("X8_HA_384"), + + /** + * 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(SystemModelEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SystemModelEnum v : SystemModelEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SystemModelEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SystemModelEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SystemModelEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemStorageCapacityDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemStorageCapacityDetails.java new file mode 100644 index 00000000000..0688cabd89f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemStorageCapacityDetails.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Capacity details of different storage types.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SystemStorageCapacityDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SystemStorageCapacityDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"diskGroups", "acfs"}) + public SystemStorageCapacityDetails( + java.util.List diskGroups, AcfsCapacityDetails acfs) { + super(); + this.diskGroups = diskGroups; + this.acfs = acfs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of storage disk group capacity details. */ + @com.fasterxml.jackson.annotation.JsonProperty("diskGroups") + private java.util.List diskGroups; + + /** + * List of storage disk group capacity details. + * + * @param diskGroups the value to set + * @return this builder + */ + public Builder diskGroups(java.util.List diskGroups) { + this.diskGroups = diskGroups; + this.__explicitlySet__.add("diskGroups"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("acfs") + private AcfsCapacityDetails acfs; + + public Builder acfs(AcfsCapacityDetails acfs) { + this.acfs = acfs; + this.__explicitlySet__.add("acfs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SystemStorageCapacityDetails build() { + SystemStorageCapacityDetails model = + new SystemStorageCapacityDetails(this.diskGroups, this.acfs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SystemStorageCapacityDetails model) { + if (model.wasPropertyExplicitlySet("diskGroups")) { + this.diskGroups(model.getDiskGroups()); + } + if (model.wasPropertyExplicitlySet("acfs")) { + this.acfs(model.getAcfs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of storage disk group capacity details. */ + @com.fasterxml.jackson.annotation.JsonProperty("diskGroups") + private final java.util.List diskGroups; + + /** + * List of storage disk group capacity details. + * + * @return the value + */ + public java.util.List getDiskGroups() { + return diskGroups; + } + + @com.fasterxml.jackson.annotation.JsonProperty("acfs") + private final AcfsCapacityDetails acfs; + + public AcfsCapacityDetails getAcfs() { + return acfs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SystemStorageCapacityDetails("); + sb.append("super=").append(super.toString()); + sb.append("diskGroups=").append(String.valueOf(this.diskGroups)); + sb.append(", acfs=").append(String.valueOf(this.acfs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SystemStorageCapacityDetails)) { + return false; + } + + SystemStorageCapacityDetails other = (SystemStorageCapacityDetails) o; + return java.util.Objects.equals(this.diskGroups, other.diskGroups) + && java.util.Objects.equals(this.acfs, other.acfs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.diskGroups == null ? 43 : this.diskGroups.hashCode()); + result = (result * PRIME) + (this.acfs == null ? 43 : this.acfs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TargetResourceTypeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TargetResourceTypeEnum.java new file mode 100644 index 00000000000..dd924433c0f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TargetResourceTypeEnum.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** The type of the target resource. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum TargetResourceTypeEnum implements com.oracle.bmc.http.internal.BmcEnum { + DbCcInfrastructure("DB_CC_INFRASTRUCTURE"), + + /** + * 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(TargetResourceTypeEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TargetResourceTypeEnum v : TargetResourceTypeEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TargetResourceTypeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TargetResourceTypeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TargetResourceTypeEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TypeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TypeEnum.java new file mode 100644 index 00000000000..059861c53e7 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TypeEnum.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** Type of the maintenance execution */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum TypeEnum implements com.oracle.bmc.http.internal.BmcEnum { + Notify("NOTIFY"), + Execute("EXECUTE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TypeEnum v : TypeEnum.values()) { + map.put(v.getValue(), v); + } + } + + TypeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TypeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TypeEnum: " + key); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateInfrastructureDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateInfrastructureDetails.java new file mode 100644 index 00000000000..c91f6264ecb --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateInfrastructureDetails.java @@ -0,0 +1,1183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Request to update Database Infrastructure 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateInfrastructureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateInfrastructureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "systemModel", + "shape", + "cloudControlPlaneServer1", + "cloudControlPlaneServer2", + "netmask", + "gateway", + "adminNetworkcidr", + "dataDiskPercentage", + "contacts", + "dnsServers", + "ntpServers", + "clientNetworkBondingMode", + "backupNetworkBondingMode", + "cpsNetworkBondingMode", + "clientNetworkBondingInterface", + "backupNetworkBondingInterface", + "cpsNetworkBondingInterface", + "acfsFileSystemStorageInGbs", + "corporateProxy", + "vlanId", + "maintenanceWindow", + "definedTags", + "freeformTags" + }) + public UpdateInfrastructureDetails( + String displayName, + String description, + SystemModelEnum systemModel, + ShapeEnum shape, + String cloudControlPlaneServer1, + String cloudControlPlaneServer2, + String netmask, + String gateway, + String adminNetworkcidr, + Integer dataDiskPercentage, + java.util.List contacts, + java.util.List dnsServers, + java.util.List ntpServers, + NetworkBondingMode clientNetworkBondingMode, + NetworkBondingMode backupNetworkBondingMode, + NetworkBondingMode cpsNetworkBondingMode, + NetworkBondingInterfaceEnum clientNetworkBondingInterface, + NetworkBondingInterfaceEnum backupNetworkBondingInterface, + NetworkBondingInterfaceEnum cpsNetworkBondingInterface, + Double acfsFileSystemStorageInGbs, + String corporateProxy, + String vlanId, + MaintenanceWindow maintenanceWindow, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.displayName = displayName; + this.description = description; + this.systemModel = systemModel; + this.shape = shape; + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.netmask = netmask; + this.gateway = gateway; + this.adminNetworkcidr = adminNetworkcidr; + this.dataDiskPercentage = dataDiskPercentage; + this.contacts = contacts; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.corporateProxy = corporateProxy; + this.vlanId = vlanId; + this.maintenanceWindow = maintenanceWindow; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be + * unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Database Infrastructure. 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; + } + /** Database Infrastructure description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Database Infrastructure description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Database Infrastructure System Model specification. The system model determines the model + * of the Database Infrastructure hardware to be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model + * of the Database Infrastructure hardware to be used. + * + * @param systemModel the value to set + * @return this builder + */ + public Builder systemModel(SystemModelEnum systemModel) { + this.systemModel = systemModel; + this.__explicitlySet__.add("systemModel"); + return this; + } + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, + * storage, and memory resources allocated to the instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, + * storage, and memory resources allocated to the instance. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(ShapeEnum shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** The IP address for the first control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * + * @param cloudControlPlaneServer1 the value to set + * @return this builder + */ + public Builder cloudControlPlaneServer1(String cloudControlPlaneServer1) { + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.__explicitlySet__.add("cloudControlPlaneServer1"); + return this; + } + /** The IP address for the second control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * + * @param cloudControlPlaneServer2 the value to set + * @return this builder + */ + public Builder cloudControlPlaneServer2(String cloudControlPlaneServer2) { + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.__explicitlySet__.add("cloudControlPlaneServer2"); + return this; + } + /** The netmask for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask for the control plane network. + * + * @param netmask the value to set + * @return this builder + */ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** The gateway for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway for the control plane network. + * + * @param gateway the value to set + * @return this builder + */ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The CIDR block for the system network. The system network is a private network in + * Database Infrastructure and is not connected to your corporate network. The system + * network is used for storage (ASM) traffic, high-performance interconnect traffic and + * administration of infrastructure components. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in + * Database Infrastructure and is not connected to your corporate network. The system + * network is used for storage (ASM) traffic, high-performance interconnect traffic and + * administration of infrastructure components. + * + * @param adminNetworkcidr the value to set + * @return this builder + */ + public Builder adminNetworkcidr(String adminNetworkcidr) { + this.adminNetworkcidr = adminNetworkcidr; + this.__explicitlySet__.add("adminNetworkcidr"); + return this; + } + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get + * assiged to RECO disk group + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get + * assiged to RECO disk group + * + * @param dataDiskPercentage the value to set + * @return this builder + */ + public Builder dataDiskPercentage(Integer dataDiskPercentage) { + this.dataDiskPercentage = dataDiskPercentage; + this.__explicitlySet__.add("dataDiskPercentage"); + return this; + } + /** The list of contacts for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * + * @param contacts the value to set + * @return this builder + */ + public Builder contacts(java.util.List contacts) { + this.contacts = contacts; + this.__explicitlySet__.add("contacts"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** The network bonding mode for Client networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * + * @param clientNetworkBondingMode the value to set + * @return this builder + */ + public Builder clientNetworkBondingMode(NetworkBondingMode clientNetworkBondingMode) { + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.__explicitlySet__.add("clientNetworkBondingMode"); + return this; + } + /** The network bonding mode for Backup networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * + * @param backupNetworkBondingMode the value to set + * @return this builder + */ + public Builder backupNetworkBondingMode(NetworkBondingMode backupNetworkBondingMode) { + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.__explicitlySet__.add("backupNetworkBondingMode"); + return this; + } + /** The network bonding mode for CPS networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * + * @param cpsNetworkBondingMode the value to set + * @return this builder + */ + public Builder cpsNetworkBondingMode(NetworkBondingMode cpsNetworkBondingMode) { + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.__explicitlySet__.add("cpsNetworkBondingMode"); + return this; + } + /** The network bonding interface for client network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * + * @param clientNetworkBondingInterface the value to set + * @return this builder + */ + public Builder clientNetworkBondingInterface( + NetworkBondingInterfaceEnum clientNetworkBondingInterface) { + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.__explicitlySet__.add("clientNetworkBondingInterface"); + return this; + } + /** The network bonding interface for backup network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * + * @param backupNetworkBondingInterface the value to set + * @return this builder + */ + public Builder backupNetworkBondingInterface( + NetworkBondingInterfaceEnum backupNetworkBondingInterface) { + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.__explicitlySet__.add("backupNetworkBondingInterface"); + return this; + } + /** The network bonding interface for CPS network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * + * @param cpsNetworkBondingInterface the value to set + * @return this builder + */ + public Builder cpsNetworkBondingInterface( + NetworkBondingInterfaceEnum cpsNetworkBondingInterface) { + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.__explicitlySet__.add("cpsNetworkBondingInterface"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + * + * @param acfsFileSystemStorageInGbs the value to set + * @return this builder + */ + public Builder acfsFileSystemStorageInGbs(Double acfsFileSystemStorageInGbs) { + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemStorageInGbs"); + return this; + } + /** + * The corporate network proxy for access to the control plane network. Oracle recommends + * using an HTTPS proxy when possible for enhanced security. + */ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends + * using an HTTPS proxy when possible for enhanced security. + * + * @param corporateProxy the value to set + * @return this builder + */ + public Builder corporateProxy(String corporateProxy) { + this.corporateProxy = corporateProxy; + this.__explicitlySet__.add("corporateProxy"); + return this; + } + /** The CPS network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The CPS network VLAN ID. + * + * @param vlanId the value to set + * @return this builder + */ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private MaintenanceWindow maintenanceWindow; + + public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + this.__explicitlySet__.add("maintenanceWindow"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateInfrastructureDetails build() { + UpdateInfrastructureDetails model = + new UpdateInfrastructureDetails( + this.displayName, + this.description, + this.systemModel, + this.shape, + this.cloudControlPlaneServer1, + this.cloudControlPlaneServer2, + this.netmask, + this.gateway, + this.adminNetworkcidr, + this.dataDiskPercentage, + this.contacts, + this.dnsServers, + this.ntpServers, + this.clientNetworkBondingMode, + this.backupNetworkBondingMode, + this.cpsNetworkBondingMode, + this.clientNetworkBondingInterface, + this.backupNetworkBondingInterface, + this.cpsNetworkBondingInterface, + this.acfsFileSystemStorageInGbs, + this.corporateProxy, + this.vlanId, + this.maintenanceWindow, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateInfrastructureDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("systemModel")) { + this.systemModel(model.getSystemModel()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer1")) { + this.cloudControlPlaneServer1(model.getCloudControlPlaneServer1()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer2")) { + this.cloudControlPlaneServer2(model.getCloudControlPlaneServer2()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("adminNetworkcidr")) { + this.adminNetworkcidr(model.getAdminNetworkcidr()); + } + if (model.wasPropertyExplicitlySet("dataDiskPercentage")) { + this.dataDiskPercentage(model.getDataDiskPercentage()); + } + if (model.wasPropertyExplicitlySet("contacts")) { + this.contacts(model.getContacts()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingMode")) { + this.clientNetworkBondingMode(model.getClientNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingMode")) { + this.backupNetworkBondingMode(model.getBackupNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingMode")) { + this.cpsNetworkBondingMode(model.getCpsNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingInterface")) { + this.clientNetworkBondingInterface(model.getClientNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingInterface")) { + this.backupNetworkBondingInterface(model.getBackupNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingInterface")) { + this.cpsNetworkBondingInterface(model.getCpsNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemStorageInGbs")) { + this.acfsFileSystemStorageInGbs(model.getAcfsFileSystemStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("corporateProxy")) { + this.corporateProxy(model.getCorporateProxy()); + } + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindow")) { + this.maintenanceWindow(model.getMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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 Database Infrastructure. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Database Infrastructure description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Database Infrastructure description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * Database Infrastructure System Model specification. The system model determines the model of + * the Database Infrastructure hardware to be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private final SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of + * the Database Infrastructure hardware to be used. + * + * @return the value + */ + public SystemModelEnum getSystemModel() { + return systemModel; + } + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, + * and memory resources allocated to the instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, + * and memory resources allocated to the instance. + * + * @return the value + */ + public ShapeEnum getShape() { + return shape; + } + + /** The IP address for the first control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private final String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * + * @return the value + */ + public String getCloudControlPlaneServer1() { + return cloudControlPlaneServer1; + } + + /** The IP address for the second control plane server. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private final String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * + * @return the value + */ + public String getCloudControlPlaneServer2() { + return cloudControlPlaneServer2; + } + + /** The netmask for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask for the control plane network. + * + * @return the value + */ + public String getNetmask() { + return netmask; + } + + /** The gateway for the control plane network. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway for the control plane network. + * + * @return the value + */ + public String getGateway() { + return gateway; + } + + /** + * The CIDR block for the system network. The system network is a private network in Database + * Infrastructure and is not connected to your corporate network. The system network is used for + * storage (ASM) traffic, high-performance interconnect traffic and administration of + * infrastructure components. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private final String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database + * Infrastructure and is not connected to your corporate network. The system network is used for + * storage (ASM) traffic, high-performance interconnect traffic and administration of + * infrastructure components. + * + * @return the value + */ + public String getAdminNetworkcidr() { + return adminNetworkcidr; + } + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged + * to RECO disk group + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private final Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged + * to RECO disk group + * + * @return the value + */ + public Integer getDataDiskPercentage() { + return dataDiskPercentage; + } + + /** The list of contacts for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private final java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * + * @return the value + */ + public java.util.List getContacts() { + return contacts; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** The network bonding mode for Client networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private final NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getClientNetworkBondingMode() { + return clientNetworkBondingMode; + } + + /** The network bonding mode for Backup networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private final NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getBackupNetworkBondingMode() { + return backupNetworkBondingMode; + } + + /** The network bonding mode for CPS networks for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private final NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingMode getCpsNetworkBondingMode() { + return cpsNetworkBondingMode; + } + + /** The network bonding interface for client network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private final NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getClientNetworkBondingInterface() { + return clientNetworkBondingInterface; + } + + /** The network bonding interface for backup network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private final NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getBackupNetworkBondingInterface() { + return backupNetworkBondingInterface; + } + + /** The network bonding interface for CPS network for the Database Infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private final NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * + * @return the value + */ + public NetworkBondingInterfaceEnum getCpsNetworkBondingInterface() { + return cpsNetworkBondingInterface; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private final Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local + * storage for VM Clusters and application VMs. + * + * @return the value + */ + public Double getAcfsFileSystemStorageInGbs() { + return acfsFileSystemStorageInGbs; + } + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using + * an HTTPS proxy when possible for enhanced security. + */ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private final String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using + * an HTTPS proxy when possible for enhanced security. + * + * @return the value + */ + public String getCorporateProxy() { + return corporateProxy; + } + + /** The CPS network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The CPS network VLAN ID. + * + * @return the value + */ + public String getVlanId() { + return vlanId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private final MaintenanceWindow maintenanceWindow; + + public MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateInfrastructureDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", systemModel=").append(String.valueOf(this.systemModel)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", cloudControlPlaneServer1=") + .append(String.valueOf(this.cloudControlPlaneServer1)); + sb.append(", cloudControlPlaneServer2=") + .append(String.valueOf(this.cloudControlPlaneServer2)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", adminNetworkcidr=").append(String.valueOf(this.adminNetworkcidr)); + sb.append(", dataDiskPercentage=").append(String.valueOf(this.dataDiskPercentage)); + sb.append(", contacts=").append(String.valueOf(this.contacts)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", clientNetworkBondingMode=") + .append(String.valueOf(this.clientNetworkBondingMode)); + sb.append(", backupNetworkBondingMode=") + .append(String.valueOf(this.backupNetworkBondingMode)); + sb.append(", cpsNetworkBondingMode=").append(String.valueOf(this.cpsNetworkBondingMode)); + sb.append(", clientNetworkBondingInterface=") + .append(String.valueOf(this.clientNetworkBondingInterface)); + sb.append(", backupNetworkBondingInterface=") + .append(String.valueOf(this.backupNetworkBondingInterface)); + sb.append(", cpsNetworkBondingInterface=") + .append(String.valueOf(this.cpsNetworkBondingInterface)); + sb.append(", acfsFileSystemStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemStorageInGbs)); + sb.append(", corporateProxy=").append(String.valueOf(this.corporateProxy)); + sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInfrastructureDetails)) { + return false; + } + + UpdateInfrastructureDetails other = (UpdateInfrastructureDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.systemModel, other.systemModel) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals( + this.cloudControlPlaneServer1, other.cloudControlPlaneServer1) + && java.util.Objects.equals( + this.cloudControlPlaneServer2, other.cloudControlPlaneServer2) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.adminNetworkcidr, other.adminNetworkcidr) + && java.util.Objects.equals(this.dataDiskPercentage, other.dataDiskPercentage) + && java.util.Objects.equals(this.contacts, other.contacts) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals( + this.clientNetworkBondingMode, other.clientNetworkBondingMode) + && java.util.Objects.equals( + this.backupNetworkBondingMode, other.backupNetworkBondingMode) + && java.util.Objects.equals(this.cpsNetworkBondingMode, other.cpsNetworkBondingMode) + && java.util.Objects.equals( + this.clientNetworkBondingInterface, other.clientNetworkBondingInterface) + && java.util.Objects.equals( + this.backupNetworkBondingInterface, other.backupNetworkBondingInterface) + && java.util.Objects.equals( + this.cpsNetworkBondingInterface, other.cpsNetworkBondingInterface) + && java.util.Objects.equals( + this.acfsFileSystemStorageInGbs, other.acfsFileSystemStorageInGbs) + && java.util.Objects.equals(this.corporateProxy, other.corporateProxy) + && java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.systemModel == null ? 43 : this.systemModel.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer1 == null + ? 43 + : this.cloudControlPlaneServer1.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer2 == null + ? 43 + : this.cloudControlPlaneServer2.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = + (result * PRIME) + + (this.adminNetworkcidr == null ? 43 : this.adminNetworkcidr.hashCode()); + result = + (result * PRIME) + + (this.dataDiskPercentage == null + ? 43 + : this.dataDiskPercentage.hashCode()); + result = (result * PRIME) + (this.contacts == null ? 43 : this.contacts.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingMode == null + ? 43 + : this.clientNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingMode == null + ? 43 + : this.backupNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingMode == null + ? 43 + : this.cpsNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingInterface == null + ? 43 + : this.clientNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingInterface == null + ? 43 + : this.backupNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingInterface == null + ? 43 + : this.cpsNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemStorageInGbs == null + ? 43 + : this.acfsFileSystemStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.corporateProxy == null ? 43 : this.corporateProxy.hashCode()); + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateMaintenanceRunDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateMaintenanceRunDetails.java new file mode 100644 index 00000000000..3493a6fbf1d --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateMaintenanceRunDetails.java @@ -0,0 +1,344 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Request to update maintenance run 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMaintenanceRunDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateMaintenanceRunDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "patchingMode", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "definedTags", + "freeformTags" + }) + public UpdateMaintenanceRunDetails( + PatchingModeEnum patchingMode, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.patchingMode = patchingMode; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + * + * @param patchingMode the value to set + * @return this builder + */ + public Builder patchingMode(PatchingModeEnum patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** + * If true, enables configuration of customActionTimeoutInMins for this maintenance run + * update request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables configuration of customActionTimeoutInMins for this maintenance run + * update request. + * + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + */ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each compute + * server patching operation. Supported values are 15 to 120 minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute + * server patching operation. Supported values are 15 to 120 minutes. + * + * @param customActionTimeoutInMins the value to set + * @return this builder + */ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateMaintenanceRunDetails build() { + UpdateMaintenanceRunDetails model = + new UpdateMaintenanceRunDetails( + this.patchingMode, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMaintenanceRunDetails model) { + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is + * ROLLING. + * + * @return the value + */ + public PatchingModeEnum getPatchingMode() { + return patchingMode; + } + + /** + * If true, enables configuration of customActionTimeoutInMins for this maintenance run update + * request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables configuration of customActionTimeoutInMins for this maintenance run update + * request. + * + * @return the value + */ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each compute server + * patching operation. Supported values are 15 to 120 minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server + * patching operation. Supported values are 15 to 120 minutes. + * + * @return the value + */ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMaintenanceRunDetails("); + sb.append("super=").append(super.toString()); + sb.append("patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMaintenanceRunDetails)) { + return false; + } + + UpdateMaintenanceRunDetails other = (UpdateMaintenanceRunDetails) o; + return java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmClusterNetworkDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmClusterNetworkDetails.java new file mode 100644 index 00000000000..dd541b8e428 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmClusterNetworkDetails.java @@ -0,0 +1,464 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Details for an VM cluster network.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateVmClusterNetworkDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateVmClusterNetworkDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "scans", + "listenerPort", + "listenerPortSsl", + "dnsServers", + "ntpServers", + "vmNetworks", + "freeformTags", + "definedTags" + }) + public UpdateVmClusterNetworkDetails( + String displayName, + java.util.List scans, + Integer listenerPort, + Integer listenerPortSsl, + java.util.List dnsServers, + java.util.List ntpServers, + java.util.List vmNetworks, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.scans = scans; + this.listenerPort = listenerPort; + this.listenerPortSsl = listenerPortSsl; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.vmNetworks = vmNetworks; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the VM cluster network. 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 SCAN details. */ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private java.util.List scans; + + /** + * The SCAN details. + * + * @param scans the value to set + * @return this builder + */ + public Builder scans(java.util.List scans) { + this.scans = scans; + this.__explicitlySet__.add("scans"); + return this; + } + /** The listener TCP/IP port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener TCP/IP port. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** The listener TCP/IP SSL port. Default is 2484. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * + * @param listenerPortSsl the value to set + * @return this builder + */ + public Builder listenerPortSsl(Integer listenerPortSsl) { + this.listenerPortSsl = listenerPortSsl; + this.__explicitlySet__.add("listenerPortSsl"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** Details of the client and backup networks. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * + * @param vmNetworks the value to set + * @return this builder + */ + public Builder vmNetworks(java.util.List vmNetworks) { + this.vmNetworks = vmNetworks; + this.__explicitlySet__.add("vmNetworks"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateVmClusterNetworkDetails build() { + UpdateVmClusterNetworkDetails model = + new UpdateVmClusterNetworkDetails( + this.displayName, + this.scans, + this.listenerPort, + this.listenerPortSsl, + this.dnsServers, + this.ntpServers, + this.vmNetworks, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateVmClusterNetworkDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("scans")) { + this.scans(model.getScans()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortSsl")) { + this.listenerPortSsl(model.getListenerPortSsl()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("vmNetworks")) { + this.vmNetworks(model.getVmNetworks()); + } + 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 VM cluster network. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The SCAN details. */ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private final java.util.List scans; + + /** + * The SCAN details. + * + * @return the value + */ + public java.util.List getScans() { + return scans; + } + + /** The listener TCP/IP port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener TCP/IP port. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** The listener TCP/IP SSL port. Default is 2484. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private final Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * + * @return the value + */ + public Integer getListenerPortSsl() { + return listenerPortSsl; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** Details of the client and backup networks. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private final java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * + * @return the value + */ + public java.util.List getVmNetworks() { + return vmNetworks; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateVmClusterNetworkDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", scans=").append(String.valueOf(this.scans)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortSsl=").append(String.valueOf(this.listenerPortSsl)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", vmNetworks=").append(String.valueOf(this.vmNetworks)); + 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 UpdateVmClusterNetworkDetails)) { + return false; + } + + UpdateVmClusterNetworkDetails other = (UpdateVmClusterNetworkDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.scans, other.scans) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortSsl, other.listenerPortSsl) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.vmNetworks, other.vmNetworks) + && 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.scans == null ? 43 : this.scans.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortSsl == null ? 43 : this.listenerPortSsl.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.vmNetworks == null ? 43 : this.vmNetworks.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-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmInstanceDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmInstanceDetails.java new file mode 100644 index 00000000000..2c47244a105 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmInstanceDetails.java @@ -0,0 +1,312 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Updated VM instance 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateVmInstanceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateVmInstanceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "description", + "displayName", + "dataStorageSizeInGBs", + "definedTags", + "freeformTags" + }) + public UpdateVmInstanceDetails( + String description, + String displayName, + Double dataStorageSizeInGBs, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.description = description; + this.displayName = displayName; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** VM instance description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * VM instance description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** VM instance display name. This name does not have to be unique, and is changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Data storage to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGBs(Double dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateVmInstanceDetails build() { + UpdateVmInstanceDetails model = + new UpdateVmInstanceDetails( + this.description, + this.displayName, + this.dataStorageSizeInGBs, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateVmInstanceDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** VM instance description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * VM instance description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** VM instance display name. This name does not have to be unique, and is changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Data storage to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * + * @return the value + */ + public Double getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateVmInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVmInstanceDetails)) { + return false; + } + + UpdateVmInstanceDetails other = (UpdateVmInstanceDetails) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ValidateInfrastructureDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ValidateInfrastructureDetails.java new file mode 100644 index 00000000000..4061ca04c35 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ValidateInfrastructureDetails.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * The validation details for the Database 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidateInfrastructureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ValidateInfrastructureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"validationZipFile"}) + public ValidateInfrastructureDetails(byte[] validationZipFile) { + super(); + this.validationZipFile = validationZipFile; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The validation zip file. */ + @com.fasterxml.jackson.annotation.JsonProperty("validationZipFile") + private byte[] validationZipFile; + + /** + * The validation zip file. + * + * @param validationZipFile the value to set + * @return this builder + */ + public Builder validationZipFile(byte[] validationZipFile) { + this.validationZipFile = validationZipFile; + this.__explicitlySet__.add("validationZipFile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidateInfrastructureDetails build() { + ValidateInfrastructureDetails model = + new ValidateInfrastructureDetails(this.validationZipFile); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidateInfrastructureDetails model) { + if (model.wasPropertyExplicitlySet("validationZipFile")) { + this.validationZipFile(model.getValidationZipFile()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The validation zip file. */ + @com.fasterxml.jackson.annotation.JsonProperty("validationZipFile") + private final byte[] validationZipFile; + + /** + * The validation zip file. + * + * @return the value + */ + public byte[] getValidationZipFile() { + return validationZipFile; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidateInfrastructureDetails("); + sb.append("super=").append(super.toString()); + sb.append("validationZipFile=") + .append( + (includeByteArrayContents + ? java.util.Arrays.toString(this.validationZipFile) + : (String.valueOf(this.validationZipFile) + + (this.validationZipFile != null + ? " (byte[" + this.validationZipFile.length + "])" + : "")))); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateInfrastructureDetails)) { + return false; + } + + ValidateInfrastructureDetails other = (ValidateInfrastructureDetails) o; + return java.util.Arrays.equals(this.validationZipFile, other.validationZipFile) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + java.util.Arrays.hashCode(this.validationZipFile); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetwork.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetwork.java new file mode 100644 index 00000000000..c56fd4c078c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetwork.java @@ -0,0 +1,1029 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Details of the VM cluster network on Database 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VmClusterNetwork.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmClusterNetwork + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "nodeCount", + "infrastructureId", + "baseVmClusterId", + "displayName", + "isScanEnabled", + "scans", + "listenerPort", + "listenerPortSsl", + "dnsServers", + "ntpServers", + "vmNetworks", + "lifecycleState", + "timeCreated", + "timeUpdated", + "lifecycleDetails", + "associatedResourceId", + "consumerType", + "freeformTags", + "definedTags", + "systemTags" + }) + public VmClusterNetwork( + String id, + String compartmentId, + Integer nodeCount, + String infrastructureId, + String baseVmClusterId, + String displayName, + Boolean isScanEnabled, + java.util.List scans, + Integer listenerPort, + Integer listenerPortSsl, + java.util.List dnsServers, + java.util.List ntpServers, + java.util.List vmNetworks, + VmClusterNetworkLifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String lifecycleDetails, + String associatedResourceId, + VmNetworkConsumerType consumerType, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.nodeCount = nodeCount; + this.infrastructureId = infrastructureId; + this.baseVmClusterId = baseVmClusterId; + this.displayName = displayName; + this.isScanEnabled = isScanEnabled; + this.scans = scans; + this.listenerPort = listenerPort; + this.listenerPortSsl = listenerPortSsl; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.vmNetworks = vmNetworks; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleDetails = lifecycleDetails; + this.associatedResourceId = associatedResourceId; + this.consumerType = consumerType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Count of virtual machines in this VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * + * @param nodeCount the value to set + * @return this builder + */ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated VM cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterId") + private String baseVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated VM cluster. + * + * @param baseVmClusterId the value to set + * @return this builder + */ + public Builder baseVmClusterId(String baseVmClusterId) { + this.baseVmClusterId = baseVmClusterId; + this.__explicitlySet__.add("baseVmClusterId"); + return this; + } + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the VM cluster network. 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; + } + /** Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("isScanEnabled") + private Boolean isScanEnabled; + + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + * @param isScanEnabled the value to set + * @return this builder + */ + public Builder isScanEnabled(Boolean isScanEnabled) { + this.isScanEnabled = isScanEnabled; + this.__explicitlySet__.add("isScanEnabled"); + return this; + } + /** The SCAN details. */ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private java.util.List scans; + + /** + * The SCAN details. + * + * @param scans the value to set + * @return this builder + */ + public Builder scans(java.util.List scans) { + this.scans = scans; + this.__explicitlySet__.add("scans"); + return this; + } + /** The listener TCP/IP port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener TCP/IP port. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** The listener TCP/IP SSL port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. + * + * @param listenerPortSsl the value to set + * @return this builder + */ + public Builder listenerPortSsl(Integer listenerPortSsl) { + this.listenerPortSsl = listenerPortSsl; + this.__explicitlySet__.add("listenerPortSsl"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** Details of the client and backup networks. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * + * @param vmNetworks the value to set + * @return this builder + */ + public Builder vmNetworks(java.util.List vmNetworks) { + this.vmNetworks = vmNetworks; + this.__explicitlySet__.add("vmNetworks"); + return this; + } + /** The current state of the virtual machine cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private VmClusterNetworkLifecycleState lifecycleState; + + /** + * The current state of the virtual machine cluster network. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(VmClusterNetworkLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime + * string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Lifecycle state details of the VM cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Lifecycle state details of the VM cluster network. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResourceId") + private String associatedResourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated resource. + * + * @param associatedResourceId the value to set + * @return this builder + */ + public Builder associatedResourceId(String associatedResourceId) { + this.associatedResourceId = associatedResourceId; + this.__explicitlySet__.add("associatedResourceId"); + return this; + } + /** Consumer type for the VM cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * + * @param consumerType the value to set + * @return this builder + */ + public Builder consumerType(VmNetworkConsumerType consumerType) { + this.consumerType = consumerType; + this.__explicitlySet__.add("consumerType"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmClusterNetwork build() { + VmClusterNetwork model = + new VmClusterNetwork( + this.id, + this.compartmentId, + this.nodeCount, + this.infrastructureId, + this.baseVmClusterId, + this.displayName, + this.isScanEnabled, + this.scans, + this.listenerPort, + this.listenerPortSsl, + this.dnsServers, + this.ntpServers, + this.vmNetworks, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.lifecycleDetails, + this.associatedResourceId, + this.consumerType, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmClusterNetwork model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("baseVmClusterId")) { + this.baseVmClusterId(model.getBaseVmClusterId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("isScanEnabled")) { + this.isScanEnabled(model.getIsScanEnabled()); + } + if (model.wasPropertyExplicitlySet("scans")) { + this.scans(model.getScans()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortSsl")) { + this.listenerPortSsl(model.getListenerPortSsl()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("vmNetworks")) { + this.vmNetworks(model.getVmNetworks()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("associatedResourceId")) { + this.associatedResourceId(model.getAssociatedResourceId()); + } + if (model.wasPropertyExplicitlySet("consumerType")) { + this.consumerType(model.getConsumerType()); + } + 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Count of virtual machines in this VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * + * @return the value + */ + public Integer getNodeCount() { + return nodeCount; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated VM cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterId") + private final String baseVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated VM cluster. + * + * @return the value + */ + public String getBaseVmClusterId() { + return baseVmClusterId; + } + + /** The user-friendly name for the VM cluster network. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("isScanEnabled") + private final Boolean isScanEnabled; + + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + * @return the value + */ + public Boolean getIsScanEnabled() { + return isScanEnabled; + } + + /** The SCAN details. */ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private final java.util.List scans; + + /** + * The SCAN details. + * + * @return the value + */ + public java.util.List getScans() { + return scans; + } + + /** The listener TCP/IP port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener TCP/IP port. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** The listener TCP/IP SSL port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private final Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. + * + * @return the value + */ + public Integer getListenerPortSsl() { + return listenerPortSsl; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** Details of the client and backup networks. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private final java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * + * @return the value + */ + public java.util.List getVmNetworks() { + return vmNetworks; + } + + /** The current state of the virtual machine cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final VmClusterNetworkLifecycleState lifecycleState; + + /** + * The current state of the virtual machine cluster network. + * + * @return the value + */ + public VmClusterNetworkLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The time that the VM cluster network was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Lifecycle state details of the VM cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Lifecycle state details of the VM cluster network. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResourceId") + private final String associatedResourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated resource. + * + * @return the value + */ + public String getAssociatedResourceId() { + return associatedResourceId; + } + + /** Consumer type for the VM cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private final VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * + * @return the value + */ + public VmNetworkConsumerType getConsumerType() { + return consumerType; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmClusterNetwork("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", baseVmClusterId=").append(String.valueOf(this.baseVmClusterId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", isScanEnabled=").append(String.valueOf(this.isScanEnabled)); + sb.append(", scans=").append(String.valueOf(this.scans)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortSsl=").append(String.valueOf(this.listenerPortSsl)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", vmNetworks=").append(String.valueOf(this.vmNetworks)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", associatedResourceId=").append(String.valueOf(this.associatedResourceId)); + sb.append(", consumerType=").append(String.valueOf(this.consumerType)); + 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 VmClusterNetwork)) { + return false; + } + + VmClusterNetwork other = (VmClusterNetwork) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.baseVmClusterId, other.baseVmClusterId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.isScanEnabled, other.isScanEnabled) + && java.util.Objects.equals(this.scans, other.scans) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortSsl, other.listenerPortSsl) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.vmNetworks, other.vmNetworks) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.associatedResourceId, other.associatedResourceId) + && java.util.Objects.equals(this.consumerType, other.consumerType) + && 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.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.baseVmClusterId == null ? 43 : this.baseVmClusterId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.isScanEnabled == null ? 43 : this.isScanEnabled.hashCode()); + result = (result * PRIME) + (this.scans == null ? 43 : this.scans.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortSsl == null ? 43 : this.listenerPortSsl.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.vmNetworks == null ? 43 : this.vmNetworks.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.associatedResourceId == null + ? 43 + : this.associatedResourceId.hashCode()); + result = (result * PRIME) + (this.consumerType == null ? 43 : this.consumerType.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-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkCollection.java new file mode 100644 index 00000000000..effead7c7c6 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * A collection of VM cluster network Database Infrastructure 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmClusterNetworkCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmClusterNetworkCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public VmClusterNetworkCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of VM cluster network resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of VM cluster network 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 VmClusterNetworkCollection build() { + VmClusterNetworkCollection model = new VmClusterNetworkCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmClusterNetworkCollection 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); + } + + /** A list of VM cluster network resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of VM cluster network 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("VmClusterNetworkCollection("); + 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 VmClusterNetworkCollection)) { + return false; + } + + VmClusterNetworkCollection other = (VmClusterNetworkCollection) 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-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkLifecycleState.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkLifecycleState.java new file mode 100644 index 00000000000..ce79b5fd294 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkLifecycleState.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** VM cluster network lifecycle states. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum VmClusterNetworkLifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + RequiresValidation("REQUIRES_VALIDATION"), + Validating("VALIDATING"), + Validated("VALIDATED"), + ValidationFailed("VALIDATION_FAILED"), + Updating("UPDATING"), + Allocated("ALLOCATED"), + 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(VmClusterNetworkLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmClusterNetworkLifecycleState v : VmClusterNetworkLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VmClusterNetworkLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmClusterNetworkLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VmClusterNetworkLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkSummary.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkSummary.java new file mode 100644 index 00000000000..46a5950bf53 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkSummary.java @@ -0,0 +1,1030 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Summary of the VM cluster network on Database 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmClusterNetworkSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmClusterNetworkSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "nodeCount", + "infrastructureId", + "baseVmClusterId", + "displayName", + "isScanEnabled", + "scans", + "listenerPort", + "listenerPortSsl", + "dnsServers", + "ntpServers", + "vmNetworks", + "lifecycleState", + "timeCreated", + "timeUpdated", + "lifecycleDetails", + "associatedResourceId", + "consumerType", + "freeformTags", + "definedTags", + "systemTags" + }) + public VmClusterNetworkSummary( + String id, + String compartmentId, + Integer nodeCount, + String infrastructureId, + String baseVmClusterId, + String displayName, + Boolean isScanEnabled, + java.util.List scans, + Integer listenerPort, + Integer listenerPortSsl, + java.util.List dnsServers, + java.util.List ntpServers, + java.util.List vmNetworks, + VmClusterNetworkLifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String lifecycleDetails, + String associatedResourceId, + VmNetworkConsumerType consumerType, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.nodeCount = nodeCount; + this.infrastructureId = infrastructureId; + this.baseVmClusterId = baseVmClusterId; + this.displayName = displayName; + this.isScanEnabled = isScanEnabled; + this.scans = scans; + this.listenerPort = listenerPort; + this.listenerPortSsl = listenerPortSsl; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.vmNetworks = vmNetworks; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleDetails = lifecycleDetails; + this.associatedResourceId = associatedResourceId; + this.consumerType = consumerType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Count of virtual machines in this VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * + * @param nodeCount the value to set + * @return this builder + */ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated VM cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterId") + private String baseVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated VM cluster. + * + * @param baseVmClusterId the value to set + * @return this builder + */ + public Builder baseVmClusterId(String baseVmClusterId) { + this.baseVmClusterId = baseVmClusterId; + this.__explicitlySet__.add("baseVmClusterId"); + return this; + } + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the VM cluster network. 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; + } + /** Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("isScanEnabled") + private Boolean isScanEnabled; + + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + * @param isScanEnabled the value to set + * @return this builder + */ + public Builder isScanEnabled(Boolean isScanEnabled) { + this.isScanEnabled = isScanEnabled; + this.__explicitlySet__.add("isScanEnabled"); + return this; + } + /** The SCAN details. */ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private java.util.List scans; + + /** + * The SCAN details. + * + * @param scans the value to set + * @return this builder + */ + public Builder scans(java.util.List scans) { + this.scans = scans; + this.__explicitlySet__.add("scans"); + return this; + } + /** The listener TCP/IP port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener TCP/IP port. + * + * @param listenerPort the value to set + * @return this builder + */ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** The listener TCP/IP SSL port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. + * + * @param listenerPortSsl the value to set + * @return this builder + */ + public Builder listenerPortSsl(Integer listenerPortSsl) { + this.listenerPortSsl = listenerPortSsl; + this.__explicitlySet__.add("listenerPortSsl"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** Details of the client and backup networks. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * + * @param vmNetworks the value to set + * @return this builder + */ + public Builder vmNetworks(java.util.List vmNetworks) { + this.vmNetworks = vmNetworks; + this.__explicitlySet__.add("vmNetworks"); + return this; + } + /** The current state of the virtual machine cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private VmClusterNetworkLifecycleState lifecycleState; + + /** + * The current state of the virtual machine cluster network. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(VmClusterNetworkLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime + * string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Lifecycle state details of the VM cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Lifecycle state details of the VM cluster network. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResourceId") + private String associatedResourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated resource. + * + * @param associatedResourceId the value to set + * @return this builder + */ + public Builder associatedResourceId(String associatedResourceId) { + this.associatedResourceId = associatedResourceId; + this.__explicitlySet__.add("associatedResourceId"); + return this; + } + /** Consumer type for the VM cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * + * @param consumerType the value to set + * @return this builder + */ + public Builder consumerType(VmNetworkConsumerType consumerType) { + this.consumerType = consumerType; + this.__explicitlySet__.add("consumerType"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmClusterNetworkSummary build() { + VmClusterNetworkSummary model = + new VmClusterNetworkSummary( + this.id, + this.compartmentId, + this.nodeCount, + this.infrastructureId, + this.baseVmClusterId, + this.displayName, + this.isScanEnabled, + this.scans, + this.listenerPort, + this.listenerPortSsl, + this.dnsServers, + this.ntpServers, + this.vmNetworks, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.lifecycleDetails, + this.associatedResourceId, + this.consumerType, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmClusterNetworkSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("baseVmClusterId")) { + this.baseVmClusterId(model.getBaseVmClusterId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("isScanEnabled")) { + this.isScanEnabled(model.getIsScanEnabled()); + } + if (model.wasPropertyExplicitlySet("scans")) { + this.scans(model.getScans()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortSsl")) { + this.listenerPortSsl(model.getListenerPortSsl()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("vmNetworks")) { + this.vmNetworks(model.getVmNetworks()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("associatedResourceId")) { + this.associatedResourceId(model.getAssociatedResourceId()); + } + if (model.wasPropertyExplicitlySet("consumerType")) { + this.consumerType(model.getConsumerType()); + } + 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM cluster network. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Count of virtual machines in this VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * + * @return the value + */ + public Integer getNodeCount() { + return nodeCount; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated VM cluster. + */ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterId") + private final String baseVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated VM cluster. + * + * @return the value + */ + public String getBaseVmClusterId() { + return baseVmClusterId; + } + + /** The user-friendly name for the VM cluster network. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("isScanEnabled") + private final Boolean isScanEnabled; + + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + * @return the value + */ + public Boolean getIsScanEnabled() { + return isScanEnabled; + } + + /** The SCAN details. */ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private final java.util.List scans; + + /** + * The SCAN details. + * + * @return the value + */ + public java.util.List getScans() { + return scans; + } + + /** The listener TCP/IP port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener TCP/IP port. + * + * @return the value + */ + public Integer getListenerPort() { + return listenerPort; + } + + /** The listener TCP/IP SSL port. */ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private final Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. + * + * @return the value + */ + public Integer getListenerPortSsl() { + return listenerPortSsl; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** Details of the client and backup networks. */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private final java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * + * @return the value + */ + public java.util.List getVmNetworks() { + return vmNetworks; + } + + /** The current state of the virtual machine cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final VmClusterNetworkLifecycleState lifecycleState; + + /** + * The current state of the virtual machine cluster network. + * + * @return the value + */ + public VmClusterNetworkLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The time that the VM cluster network was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Lifecycle state details of the VM cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Lifecycle state details of the VM cluster network. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResourceId") + private final String associatedResourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * associated resource. + * + * @return the value + */ + public String getAssociatedResourceId() { + return associatedResourceId; + } + + /** Consumer type for the VM cluster network. */ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private final VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * + * @return the value + */ + public VmNetworkConsumerType getConsumerType() { + return consumerType; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmClusterNetworkSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", baseVmClusterId=").append(String.valueOf(this.baseVmClusterId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", isScanEnabled=").append(String.valueOf(this.isScanEnabled)); + sb.append(", scans=").append(String.valueOf(this.scans)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortSsl=").append(String.valueOf(this.listenerPortSsl)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", vmNetworks=").append(String.valueOf(this.vmNetworks)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", associatedResourceId=").append(String.valueOf(this.associatedResourceId)); + sb.append(", consumerType=").append(String.valueOf(this.consumerType)); + 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 VmClusterNetworkSummary)) { + return false; + } + + VmClusterNetworkSummary other = (VmClusterNetworkSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.baseVmClusterId, other.baseVmClusterId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.isScanEnabled, other.isScanEnabled) + && java.util.Objects.equals(this.scans, other.scans) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortSsl, other.listenerPortSsl) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.vmNetworks, other.vmNetworks) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.associatedResourceId, other.associatedResourceId) + && java.util.Objects.equals(this.consumerType, other.consumerType) + && 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.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.baseVmClusterId == null ? 43 : this.baseVmClusterId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.isScanEnabled == null ? 43 : this.isScanEnabled.hashCode()); + result = (result * PRIME) + (this.scans == null ? 43 : this.scans.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortSsl == null ? 43 : this.listenerPortSsl.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.vmNetworks == null ? 43 : this.vmNetworks.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.associatedResourceId == null + ? 43 + : this.associatedResourceId.hashCode()); + result = (result * PRIME) + (this.consumerType == null ? 43 : this.consumerType.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-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkType.java new file mode 100644 index 00000000000..a54f110ad5c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkType.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** VM cluster network type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum VmClusterNetworkType implements com.oracle.bmc.http.internal.BmcEnum { + Client("CLIENT"), + Backup("BACKUP"), + + /** + * 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(VmClusterNetworkType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmClusterNetworkType v : VmClusterNetworkType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VmClusterNetworkType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmClusterNetworkType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VmClusterNetworkType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstance.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstance.java new file mode 100644 index 00000000000..089ea8cbe7c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstance.java @@ -0,0 +1,1402 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * VM instance 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VmInstance.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmInstance extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "infrastructureId", + "cpusEnabled", + "memorySizeInGBs", + "bootStorageSizeInGBs", + "dataStorageSizeInGBs", + "definedTags", + "freeformTags", + "systemTags", + "imageId", + "serverId", + "sshPublicKeys", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "domainName", + "timeZone", + "dnsServers", + "ntpServers", + "hostname", + "ipAddress", + "netmask", + "gateway", + "vlanId", + "userdata", + "metadata", + "vmNetworkId" + }) + public VmInstance( + String id, + String compartmentId, + String displayName, + String description, + String infrastructureId, + Integer cpusEnabled, + Double memorySizeInGBs, + Double bootStorageSizeInGBs, + Double dataStorageSizeInGBs, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + String imageId, + String serverId, + java.util.List sshPublicKeys, + VmInstanceLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String domainName, + String timeZone, + java.util.List dnsServers, + java.util.List ntpServers, + String hostname, + String ipAddress, + String netmask, + String gateway, + String vlanId, + String userdata, + java.util.Map metadata, + String vmNetworkId) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.infrastructureId = infrastructureId; + this.cpusEnabled = cpusEnabled; + this.memorySizeInGBs = memorySizeInGBs; + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.imageId = imageId; + this.serverId = serverId; + this.sshPublicKeys = sshPublicKeys; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.domainName = domainName; + this.timeZone = timeZone; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.hostname = hostname; + this.ipAddress = ipAddress; + this.netmask = netmask; + this.gateway = gateway; + this.vlanId = vlanId; + this.userdata = userdata; + this.metadata = metadata; + this.vmNetworkId = vmNetworkId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** VM instance display name. This name does not have to be unique, and is changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** VM instance description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * VM instance description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** The number of CPU cores enabled for each VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * + * @param cpusEnabled the value to set + * @return this builder + */ + public Builder cpusEnabled(Integer cpusEnabled) { + this.cpusEnabled = cpusEnabled; + this.__explicitlySet__.add("cpusEnabled"); + return this; + } + /** The memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * + * @param memorySizeInGBs the value to set + * @return this builder + */ + public Builder memorySizeInGBs(Double memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** Boot storage memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private Double bootStorageSizeInGBs; + + /** + * Boot storage memory to be allocated in GBs. + * + * @param bootStorageSizeInGBs the value to set + * @return this builder + */ + public Builder bootStorageSizeInGBs(Double bootStorageSizeInGBs) { + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.__explicitlySet__.add("bootStorageSizeInGBs"); + return this; + } + /** Data storage to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGBs(Double dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM custom instance uploaded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM custom instance uploaded. + * + * @param imageId the value to set + * @return this builder + */ + public Builder imageId(String imageId) { + this.imageId = imageId; + this.__explicitlySet__.add("imageId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + */ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + * + * @param serverId the value to set + * @return this builder + */ + public Builder serverId(String serverId) { + this.serverId = serverId; + this.__explicitlySet__.add("serverId"); + return this; + } + /** List of public key used for SSH access to the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private java.util.List sshPublicKeys; + + /** + * List of public key used for SSH access to the VM instance. + * + * @param sshPublicKeys the value to set + * @return this builder + */ + public Builder sshPublicKeys(java.util.List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + this.__explicitlySet__.add("sshPublicKeys"); + return this; + } + /** The current state of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private VmInstanceLifecycleState lifecycleState; + + /** + * The current state of the VM instance. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(VmInstanceLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Lifecycle state details of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Lifecycle state details of the VM instance. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The time that the VM instance was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time that the VM instance was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The domain name of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private String domainName; + + /** + * The domain name of the VM instance. + * + * @param domainName the value to set + * @return this builder + */ + public Builder domainName(String domainName) { + this.domainName = domainName; + this.__explicitlySet__.add("domainName"); + return this; + } + /** The time zone to use for the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + /** + * The time zone to use for the VM instance. + * + * @param timeZone the value to set + * @return this builder + */ + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @param dnsServers the value to set + * @return this builder + */ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** The list of NTP server addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server addresses. Maximum of 3 allowed. + * + * @param ntpServers the value to set + * @return this builder + */ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** The host name of the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The host name of the instance. + * + * @param hostname the value to set + * @return this builder + */ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } + /** The IP address of the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") + private String ipAddress; + + /** + * The IP address of the instance. + * + * @param ipAddress the value to set + * @return this builder + */ + public Builder ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + this.__explicitlySet__.add("ipAddress"); + return this; + } + /** The netmask of the VM instance network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask of the VM instance network. + * + * @param netmask the value to set + * @return this builder + */ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** The gateway IP address of the VM instance network. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway IP address of the VM instance network. + * + * @param gateway the value to set + * @return this builder + */ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** The network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The network VLAN ID. + * + * @param vlanId the value to set + * @return this builder + */ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom + * Cloud-Init configuration. For information about how to take advantage of user data, see + * the [Cloud-Init + * Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + */ + @com.fasterxml.jackson.annotation.JsonProperty("userdata") + private String userdata; + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom + * Cloud-Init configuration. For information about how to take advantage of user data, see + * the [Cloud-Init + * Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + * @param userdata the value to set + * @return this builder + */ + public Builder userdata(String userdata) { + this.userdata = userdata; + this.__explicitlySet__.add("userdata"); + return this; + } + /** + * Custom metadata key/value pairs which can be used to: - Provide information to + * [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system + * initialization tasks. - Provide additional information which is exposed inside the + * instance context and can be queried or referenced by user-data scripts for dynamic + * configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Custom metadata key/value pairs which can be used to: - Provide information to + * [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system + * initialization tasks. - Provide additional information which is exposed inside the + * instance context and can be queried or referenced by user-data scripts for dynamic + * configuration. + * + * @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; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM Network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM Network. + * + * @param vmNetworkId the value to set + * @return this builder + */ + public Builder vmNetworkId(String vmNetworkId) { + this.vmNetworkId = vmNetworkId; + this.__explicitlySet__.add("vmNetworkId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmInstance build() { + VmInstance model = + new VmInstance( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.infrastructureId, + this.cpusEnabled, + this.memorySizeInGBs, + this.bootStorageSizeInGBs, + this.dataStorageSizeInGBs, + this.definedTags, + this.freeformTags, + this.systemTags, + this.imageId, + this.serverId, + this.sshPublicKeys, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.domainName, + this.timeZone, + this.dnsServers, + this.ntpServers, + this.hostname, + this.ipAddress, + this.netmask, + this.gateway, + this.vlanId, + this.userdata, + this.metadata, + this.vmNetworkId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmInstance 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("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("cpusEnabled")) { + this.cpusEnabled(model.getCpusEnabled()); + } + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("bootStorageSizeInGBs")) { + this.bootStorageSizeInGBs(model.getBootStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("imageId")) { + this.imageId(model.getImageId()); + } + if (model.wasPropertyExplicitlySet("serverId")) { + this.serverId(model.getServerId()); + } + if (model.wasPropertyExplicitlySet("sshPublicKeys")) { + this.sshPublicKeys(model.getSshPublicKeys()); + } + 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("domainName")) { + this.domainName(model.getDomainName()); + } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } + if (model.wasPropertyExplicitlySet("ipAddress")) { + this.ipAddress(model.getIpAddress()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("userdata")) { + this.userdata(model.getUserdata()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("vmNetworkId")) { + this.vmNetworkId(model.getVmNetworkId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** VM instance display name. This name does not have to be unique, and is changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** VM instance description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * VM instance description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** The number of CPU cores enabled for each VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private final Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * + * @return the value + */ + public Integer getCpusEnabled() { + return cpusEnabled; + } + + /** The memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * + * @return the value + */ + public Double getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** Boot storage memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private final Double bootStorageSizeInGBs; + + /** + * Boot storage memory to be allocated in GBs. + * + * @return the value + */ + public Double getBootStorageSizeInGBs() { + return bootStorageSizeInGBs; + } + + /** Data storage to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * + * @return the value + */ + public Double getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * custom instance uploaded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private final String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * custom instance uploaded. + * + * @return the value + */ + public String getImageId() { + return imageId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + */ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private final String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + * + * @return the value + */ + public String getServerId() { + return serverId; + } + + /** List of public key used for SSH access to the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private final java.util.List sshPublicKeys; + + /** + * List of public key used for SSH access to the VM instance. + * + * @return the value + */ + public java.util.List getSshPublicKeys() { + return sshPublicKeys; + } + + /** The current state of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final VmInstanceLifecycleState lifecycleState; + + /** + * The current state of the VM instance. + * + * @return the value + */ + public VmInstanceLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Lifecycle state details of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Lifecycle state details of the VM instance. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The time that the VM instance was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time that the VM instance was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The domain name of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private final String domainName; + + /** + * The domain name of the VM instance. + * + * @return the value + */ + public String getDomainName() { + return domainName; + } + + /** The time zone to use for the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; + + /** + * The time zone to use for the VM instance. + * + * @return the value + */ + public String getTimeZone() { + return timeZone; + } + + /** The list of DNS server IP addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** The list of NTP server addresses. Maximum of 3 allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server addresses. Maximum of 3 allowed. + * + * @return the value + */ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** The host name of the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The host name of the instance. + * + * @return the value + */ + public String getHostname() { + return hostname; + } + + /** The IP address of the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") + private final String ipAddress; + + /** + * The IP address of the instance. + * + * @return the value + */ + public String getIpAddress() { + return ipAddress; + } + + /** The netmask of the VM instance network. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask of the VM instance network. + * + * @return the value + */ + public String getNetmask() { + return netmask; + } + + /** The gateway IP address of the VM instance network. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway IP address of the VM instance network. + * + * @return the value + */ + public String getGateway() { + return gateway; + } + + /** The network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The network VLAN ID. + * + * @return the value + */ + public String getVlanId() { + return vlanId; + } + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom + * Cloud-Init configuration. For information about how to take advantage of user data, see the + * [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + */ + @com.fasterxml.jackson.annotation.JsonProperty("userdata") + private final String userdata; + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom + * Cloud-Init configuration. For information about how to take advantage of user data, see the + * [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + * @return the value + */ + public String getUserdata() { + return userdata; + } + + /** + * Custom metadata key/value pairs which can be used to: - Provide information to + * [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system + * initialization tasks. - Provide additional information which is exposed inside the instance + * context and can be queried or referenced by user-data scripts for dynamic configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Custom metadata key/value pairs which can be used to: - Provide information to + * [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system + * initialization tasks. - Provide additional information which is exposed inside the instance + * context and can be queried or referenced by user-data scripts for dynamic configuration. + * + * @return the value + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * Network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private final String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * Network. + * + * @return the value + */ + public String getVmNetworkId() { + return vmNetworkId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmInstance("); + 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(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); + sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", bootStorageSizeInGBs=").append(String.valueOf(this.bootStorageSizeInGBs)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", imageId=").append(String.valueOf(this.imageId)); + sb.append(", serverId=").append(String.valueOf(this.serverId)); + sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); + 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(", domainName=").append(String.valueOf(this.domainName)); + sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", hostname=").append(String.valueOf(this.hostname)); + sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", userdata=").append(String.valueOf(this.userdata)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", vmNetworkId=").append(String.valueOf(this.vmNetworkId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmInstance)) { + return false; + } + + VmInstance other = (VmInstance) 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.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) + && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.bootStorageSizeInGBs, other.bootStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.imageId, other.imageId) + && java.util.Objects.equals(this.serverId, other.serverId) + && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) + && 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.domainName, other.domainName) + && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.hostname, other.hostname) + && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.userdata, other.userdata) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.vmNetworkId, other.vmNetworkId) + && 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.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.cpusEnabled == null ? 43 : this.cpusEnabled.hashCode()); + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.bootStorageSizeInGBs == null + ? 43 + : this.bootStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.imageId == null ? 43 : this.imageId.hashCode()); + result = (result * PRIME) + (this.serverId == null ? 43 : this.serverId.hashCode()); + result = + (result * PRIME) + + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.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.domainName == null ? 43 : this.domainName.hashCode()); + result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); + result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = (result * PRIME) + (this.userdata == null ? 43 : this.userdata.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.vmNetworkId == null ? 43 : this.vmNetworkId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceCollection.java new file mode 100644 index 00000000000..7b607c0e4e7 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * A collection of VM instance on Database Infrastructure summary 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmInstanceCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmInstanceCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public VmInstanceCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of VM instance summary resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of VM instance summary 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 VmInstanceCollection build() { + VmInstanceCollection model = new VmInstanceCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmInstanceCollection 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); + } + + /** A list of VM instance summary resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of VM instance summary 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("VmInstanceCollection("); + 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 VmInstanceCollection)) { + return false; + } + + VmInstanceCollection other = (VmInstanceCollection) 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-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceLifecycleState.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceLifecycleState.java new file mode 100644 index 00000000000..08101bbbc90 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceLifecycleState.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** VM instance lifecycle states. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum VmInstanceLifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Updating("UPDATING"), + 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(VmInstanceLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmInstanceLifecycleState v : VmInstanceLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VmInstanceLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmInstanceLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VmInstanceLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceSummary.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceSummary.java new file mode 100644 index 00000000000..8e66f7e47c3 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceSummary.java @@ -0,0 +1,906 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * VM instance on Database Infrastructure summary.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmInstanceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmInstanceSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "infrastructureId", + "cpusEnabled", + "memorySizeInGBs", + "definedTags", + "freeformTags", + "systemTags", + "imageId", + "serverId", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "domainName", + "timeZone", + "vmNetworkId" + }) + public VmInstanceSummary( + String id, + String compartmentId, + String displayName, + String description, + String infrastructureId, + Integer cpusEnabled, + Double memorySizeInGBs, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + String imageId, + String serverId, + VmInstanceLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String domainName, + String timeZone, + String vmNetworkId) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.infrastructureId = infrastructureId; + this.cpusEnabled = cpusEnabled; + this.memorySizeInGBs = memorySizeInGBs; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.imageId = imageId; + this.serverId = serverId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.domainName = domainName; + this.timeZone = timeZone; + this.vmNetworkId = vmNetworkId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** VM instance display name. This name does not have to be unique, and is changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** VM instance description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * VM instance description. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** The number of CPU cores enabled for each VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * + * @param cpusEnabled the value to set + * @return this builder + */ + public Builder cpusEnabled(Integer cpusEnabled) { + this.cpusEnabled = cpusEnabled; + this.__explicitlySet__.add("cpusEnabled"); + return this; + } + /** The memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * + * @param memorySizeInGBs the value to set + * @return this builder + */ + public Builder memorySizeInGBs(Double memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM custom instance uploaded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM custom instance uploaded. + * + * @param imageId the value to set + * @return this builder + */ + public Builder imageId(String imageId) { + this.imageId = imageId; + this.__explicitlySet__.add("imageId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + */ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + * + * @param serverId the value to set + * @return this builder + */ + public Builder serverId(String serverId) { + this.serverId = serverId; + this.__explicitlySet__.add("serverId"); + return this; + } + /** The current state of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private VmInstanceLifecycleState lifecycleState; + + /** + * The current state of the VM instance. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(VmInstanceLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Lifecycle state details of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Lifecycle state details of the VM instance. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The time that the VM instance was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time that the VM instance was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The domain name of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private String domainName; + + /** + * The domain name of the VM instance. + * + * @param domainName the value to set + * @return this builder + */ + public Builder domainName(String domainName) { + this.domainName = domainName; + this.__explicitlySet__.add("domainName"); + return this; + } + /** The time zone to use for the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + /** + * The time zone to use for the VM instance. + * + * @param timeZone the value to set + * @return this builder + */ + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM Network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM Network. + * + * @param vmNetworkId the value to set + * @return this builder + */ + public Builder vmNetworkId(String vmNetworkId) { + this.vmNetworkId = vmNetworkId; + this.__explicitlySet__.add("vmNetworkId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmInstanceSummary build() { + VmInstanceSummary model = + new VmInstanceSummary( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.infrastructureId, + this.cpusEnabled, + this.memorySizeInGBs, + this.definedTags, + this.freeformTags, + this.systemTags, + this.imageId, + this.serverId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.domainName, + this.timeZone, + this.vmNetworkId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmInstanceSummary 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("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("cpusEnabled")) { + this.cpusEnabled(model.getCpusEnabled()); + } + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("imageId")) { + this.imageId(model.getImageId()); + } + if (model.wasPropertyExplicitlySet("serverId")) { + this.serverId(model.getServerId()); + } + 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("domainName")) { + this.domainName(model.getDomainName()); + } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("vmNetworkId")) { + this.vmNetworkId(model.getVmNetworkId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the VM instance. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** VM instance display name. This name does not have to be unique, and is changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** VM instance description. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * VM instance description. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @return the value + */ + public String getInfrastructureId() { + return infrastructureId; + } + + /** The number of CPU cores enabled for each VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private final Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * + * @return the value + */ + public Integer getCpusEnabled() { + return cpusEnabled; + } + + /** The memory to be allocated in GBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * + * @return the value + */ + public Double getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * custom instance uploaded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private final String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * custom instance uploaded. + * + * @return the value + */ + public String getImageId() { + return imageId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + */ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private final String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compute node on which VM instance should be launched. + * + * @return the value + */ + public String getServerId() { + return serverId; + } + + /** The current state of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final VmInstanceLifecycleState lifecycleState; + + /** + * The current state of the VM instance. + * + * @return the value + */ + public VmInstanceLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Lifecycle state details of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Lifecycle state details of the VM instance. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The time that the VM instance was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time that the VM instance was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The domain name of the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private final String domainName; + + /** + * The domain name of the VM instance. + * + * @return the value + */ + public String getDomainName() { + return domainName; + } + + /** The time zone to use for the VM instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; + + /** + * The time zone to use for the VM instance. + * + * @return the value + */ + public String getTimeZone() { + return timeZone; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * Network. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private final String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * Network. + * + * @return the value + */ + public String getVmNetworkId() { + return vmNetworkId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmInstanceSummary("); + 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(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); + sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", imageId=").append(String.valueOf(this.imageId)); + sb.append(", serverId=").append(String.valueOf(this.serverId)); + 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(", domainName=").append(String.valueOf(this.domainName)); + sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", vmNetworkId=").append(String.valueOf(this.vmNetworkId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmInstanceSummary)) { + return false; + } + + VmInstanceSummary other = (VmInstanceSummary) 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.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) + && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.imageId, other.imageId) + && java.util.Objects.equals(this.serverId, other.serverId) + && 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.domainName, other.domainName) + && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.vmNetworkId, other.vmNetworkId) + && 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.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.cpusEnabled == null ? 43 : this.cpusEnabled.hashCode()); + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.imageId == null ? 43 : this.imageId.hashCode()); + result = (result * PRIME) + (this.serverId == null ? 43 : this.serverId.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.domainName == null ? 43 : this.domainName.hashCode()); + result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = (result * PRIME) + (this.vmNetworkId == null ? 43 : this.vmNetworkId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkConsumerType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkConsumerType.java new file mode 100644 index 00000000000..32e9fb27dae --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkConsumerType.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** VM network consumer type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum VmNetworkConsumerType implements com.oracle.bmc.http.internal.BmcEnum { + Instance("INSTANCE"), + Cluster("CLUSTER"), + + /** + * 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(VmNetworkConsumerType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmNetworkConsumerType v : VmNetworkConsumerType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VmNetworkConsumerType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmNetworkConsumerType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VmNetworkConsumerType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkDetails.java new file mode 100644 index 00000000000..50fe856654f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkDetails.java @@ -0,0 +1,366 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Details of the client or backup networks in an VM 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 + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VmNetworkDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VmNetworkDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "vlanId", + "networkType", + "netmask", + "gateway", + "domainName", + "prefix", + "nodes" + }) + public VmNetworkDetails( + String vlanId, + VmClusterNetworkType networkType, + String netmask, + String gateway, + String domainName, + String prefix, + java.util.List nodes) { + super(); + this.vlanId = vlanId; + this.networkType = networkType; + this.netmask = netmask; + this.gateway = gateway; + this.domainName = domainName; + this.prefix = prefix; + this.nodes = nodes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The network VLAN ID. + * + * @param vlanId the value to set + * @return this builder + */ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + /** The network type. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkType") + private VmClusterNetworkType networkType; + + /** + * The network type. + * + * @param networkType the value to set + * @return this builder + */ + public Builder networkType(VmClusterNetworkType networkType) { + this.networkType = networkType; + this.__explicitlySet__.add("networkType"); + return this; + } + /** The network netmask. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The network netmask. + * + * @param netmask the value to set + * @return this builder + */ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** The network gateway. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The network gateway. + * + * @param gateway the value to set + * @return this builder + */ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** The network domain name. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private String domainName; + + /** + * The network domain name. + * + * @param domainName the value to set + * @return this builder + */ + public Builder domainName(String domainName) { + this.domainName = domainName; + this.__explicitlySet__.add("domainName"); + return this; + } + /** The network domain name prefix. */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * The network domain name prefix. + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** The list of node details. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodes") + private java.util.List nodes; + + /** + * The list of node details. + * + * @param nodes the value to set + * @return this builder + */ + public Builder nodes(java.util.List nodes) { + this.nodes = nodes; + this.__explicitlySet__.add("nodes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmNetworkDetails build() { + VmNetworkDetails model = + new VmNetworkDetails( + this.vlanId, + this.networkType, + this.netmask, + this.gateway, + this.domainName, + this.prefix, + this.nodes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmNetworkDetails model) { + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("networkType")) { + this.networkType(model.getNetworkType()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("domainName")) { + this.domainName(model.getDomainName()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("nodes")) { + this.nodes(model.getNodes()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The network VLAN ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The network VLAN ID. + * + * @return the value + */ + public String getVlanId() { + return vlanId; + } + + /** The network type. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkType") + private final VmClusterNetworkType networkType; + + /** + * The network type. + * + * @return the value + */ + public VmClusterNetworkType getNetworkType() { + return networkType; + } + + /** The network netmask. */ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The network netmask. + * + * @return the value + */ + public String getNetmask() { + return netmask; + } + + /** The network gateway. */ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The network gateway. + * + * @return the value + */ + public String getGateway() { + return gateway; + } + + /** The network domain name. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private final String domainName; + + /** + * The network domain name. + * + * @return the value + */ + public String getDomainName() { + return domainName; + } + + /** The network domain name prefix. */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * The network domain name prefix. + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + /** The list of node details. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodes") + private final java.util.List nodes; + + /** + * The list of node details. + * + * @return the value + */ + public java.util.List getNodes() { + return nodes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmNetworkDetails("); + sb.append("super=").append(super.toString()); + sb.append("vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", networkType=").append(String.valueOf(this.networkType)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", domainName=").append(String.valueOf(this.domainName)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", nodes=").append(String.valueOf(this.nodes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmNetworkDetails)) { + return false; + } + + VmNetworkDetails other = (VmNetworkDetails) o; + return java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.networkType, other.networkType) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.domainName, other.domainName) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.nodes, other.nodes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = (result * PRIME) + (this.networkType == null ? 43 : this.networkType.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = (result * PRIME) + (this.nodes == null ? 43 : this.nodes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequest.java new file mode 100644 index 00000000000..7c4b257ad45 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequest.java @@ -0,0 +1,664 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * Work request 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: 20251101") +@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", + "opcRequestId", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "freeformTags", + "definedTags", + "systemTags" + }) + public WorkRequest( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + String opcRequestId, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.opcRequestId = opcRequestId; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The resources affected by the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources affected by the work request. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** opc-request-id of the request that triggered the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("opcRequestId") + private String opcRequestId; + + /** + * opc-request-id of the request that triggered the work request. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + this.__explicitlySet__.add("opcRequestId"); + 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 that 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 that 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 that the request 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 that the request 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 that the request completed, 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 that the request completed, 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; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This + * tag option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest model = + new WorkRequest( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.opcRequestId, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.freeformTags, + this.definedTags, + this.systemTags); + 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("opcRequestId")) { + this.opcRequestId(model.getOpcRequestId()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("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); + } + + /** 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources affected by the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by the work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** opc-request-id of the request that triggered the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("opcRequestId") + private final String opcRequestId; + + /** + * opc-request-id of the request that triggered the work request. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** 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 that 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 that 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 that the request 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 that the request 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 that the request completed, 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 that the request completed, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag + * option exists for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code { + * "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("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(", opcRequestId=").append(String.valueOf(this.opcRequestId)); + 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(", 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 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.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.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.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.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-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestCollection.java new file mode 100644 index 00000000000..85bc6e2707c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * A collection of Work request 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of Work request resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of Work request 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 WorkRequestCollection build() { + WorkRequestCollection model = new WorkRequestCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestCollection 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); + } + + /** A list of Work request resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of Work request 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("WorkRequestCollection("); + 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 WorkRequestCollection)) { + return false; + } + + WorkRequestCollection other = (WorkRequestCollection) 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-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestError.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestError.java new file mode 100644 index 00000000000..90679bab79f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestError.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.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: 20251101") +@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.oracle.com/iaas/Content/API/References/apierrors.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** 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 that the error occured. An RFC3339 standard formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time that the error occured. An RFC3339 standard 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.oracle.com/iaas/Content/API/References/apierrors.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/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 that the error occured. An RFC3339 standard formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time that the error occured. An RFC3339 standard 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-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestErrorCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..a60dcec26fd --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestErrorCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * A collection of work request error 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: 20251101") +@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 { + /** A list of work request error resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request error 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 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); + } + + /** A list of work request error resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request error 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("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-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntry.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..2ead7db565c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntry.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.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: 20251101") +@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 that the log message was written. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time that 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 that the log message was written. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time that 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-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntryCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..c5c755d3c95 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntryCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.model; + +/** + * A collection of work request log entry 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: 20251101") +@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 { + /** A list of work request log entry resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request log entry 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 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); + } + + /** A list of work request log entry resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request log entry 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("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-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestResource.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestResource.java new file mode 100644 index 00000000000..bd974a00ae8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestResource.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestResource + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"entityType", "actionType", "identifier", "entityUri"}) + public WorkRequestResource( + String entityType, ActionType actionType, String identifier, String entityUri) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The type of resource being acted on by the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The type of resource being acted on by the work request. + * + * @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 remains in the IN_PROGRESS state until work + * is complete for that resource. When work is complete, the state transitions to CREATED, + * UPDATED, or DELETED. + */ + @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 remains in the IN_PROGRESS state until work + * is complete for that resource. When work is complete, the state transitions to CREATED, + * UPDATED, or DELETED. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource being acted on by the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource being acted on by the work request. + * + * @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 for GET REST attachment to the resource metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path for GET REST attachment to the resource metadata. + * + * @param entityUri the value to set + * @return this builder + */ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, this.actionType, this.identifier, this.entityUri); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("entityUri")) { + this.entityUri(model.getEntityUri()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The type of resource being acted on by the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The type of resource being acted on by the work request. + * + * @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 remains in the IN_PROGRESS state until work is + * complete for that resource. When work is complete, the state transitions to CREATED, UPDATED, + * or DELETED. + */ + @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 remains in the IN_PROGRESS state until work is + * complete for that resource. When work is complete, the state transitions to CREATED, UPDATED, + * or DELETED. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource being acted on by the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource being acted on by the work request. + * + * @return the value + */ + public String getIdentifier() { + return identifier; + } + + /** The URI path for GET REST attachment to the resource metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path for GET REST attachment to the resource metadata. + * + * @return the value + */ + public String getEntityUri() { + return entityUri; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(", entityUri=").append(String.valueOf(this.entityUri)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestResource)) { + return false; + } + + WorkRequestResource other = (WorkRequestResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.identifier, other.identifier) + && java.util.Objects.equals(this.entityUri, other.entityUri) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ActivateInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ActivateInfrastructureRequest.java new file mode 100644 index 00000000000..e9fe1c5627c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ActivateInfrastructureRequest.java @@ -0,0 +1,365 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * ActivateInfrastructureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ActivateInfrastructureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ActivateInfrastructureDetails> { + + /** The activation details for the Database Infrastructure. */ + private com.oracle.bmc.datacc.model.ActivateInfrastructureDetails activateInfrastructureDetails; + + /** The activation details for the Database Infrastructure. */ + public com.oracle.bmc.datacc.model.ActivateInfrastructureDetails + getActivateInfrastructureDetails() { + return activateInfrastructureDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ActivateInfrastructureDetails getBody$() { + return activateInfrastructureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ActivateInfrastructureRequest, + com.oracle.bmc.datacc.model.ActivateInfrastructureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The activation details for the Database Infrastructure. */ + private com.oracle.bmc.datacc.model.ActivateInfrastructureDetails + activateInfrastructureDetails = null; + + /** + * The activation details for the Database Infrastructure. + * + * @param activateInfrastructureDetails the value to set + * @return this builder instance + */ + public Builder activateInfrastructureDetails( + com.oracle.bmc.datacc.model.ActivateInfrastructureDetails + activateInfrastructureDetails) { + this.activateInfrastructureDetails = activateInfrastructureDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(ActivateInfrastructureRequest o) { + activateInfrastructureDetails(o.getActivateInfrastructureDetails()); + infrastructureId(o.getInfrastructureId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ActivateInfrastructureRequest 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 ActivateInfrastructureRequest + */ + public ActivateInfrastructureRequest build() { + ActivateInfrastructureRequest 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.datacc.model.ActivateInfrastructureDetails body) { + activateInfrastructureDetails(body); + return this; + } + + /** + * Build the instance of ActivateInfrastructureRequest 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 ActivateInfrastructureRequest + */ + public ActivateInfrastructureRequest buildWithoutInvocationCallback() { + ActivateInfrastructureRequest request = new ActivateInfrastructureRequest(); + request.activateInfrastructureDetails = activateInfrastructureDetails; + request.infrastructureId = infrastructureId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ActivateInfrastructureRequest(activateInfrastructureDetails, infrastructureId, + // ifMatch, 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() + .activateInfrastructureDetails(activateInfrastructureDetails) + .infrastructureId(infrastructureId) + .ifMatch(ifMatch) + .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(",activateInfrastructureDetails=") + .append(String.valueOf(this.activateInfrastructureDetails)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 ActivateInfrastructureRequest)) { + return false; + } + + ActivateInfrastructureRequest other = (ActivateInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.activateInfrastructureDetails, other.activateInfrastructureDetails) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.activateInfrastructureDetails == null + ? 43 + : this.activateInfrastructureDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeInfrastructureCompartmentRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeInfrastructureCompartmentRequest.java new file mode 100644 index 00000000000..46c7f772775 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeInfrastructureCompartmentRequest.java @@ -0,0 +1,371 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * ChangeInfrastructureCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeInfrastructureCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** Updated Compartment details. */ + private com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails + changeInfrastructureCompartmentDetails; + + /** Updated Compartment details. */ + public com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails + getChangeInfrastructureCompartmentDetails() { + return changeInfrastructureCompartmentDetails; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails getBody$() { + return changeInfrastructureCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeInfrastructureCompartmentRequest, + com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** Updated Compartment details. */ + private com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails + changeInfrastructureCompartmentDetails = null; + + /** + * Updated Compartment details. + * + * @param changeInfrastructureCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeInfrastructureCompartmentDetails( + com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails + changeInfrastructureCompartmentDetails) { + this.changeInfrastructureCompartmentDetails = changeInfrastructureCompartmentDetails; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(ChangeInfrastructureCompartmentRequest o) { + infrastructureId(o.getInfrastructureId()); + changeInfrastructureCompartmentDetails(o.getChangeInfrastructureCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeInfrastructureCompartmentRequest 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 ChangeInfrastructureCompartmentRequest + */ + public ChangeInfrastructureCompartmentRequest build() { + ChangeInfrastructureCompartmentRequest 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.datacc.model.ChangeInfrastructureCompartmentDetails body) { + changeInfrastructureCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeInfrastructureCompartmentRequest 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 ChangeInfrastructureCompartmentRequest + */ + public ChangeInfrastructureCompartmentRequest buildWithoutInvocationCallback() { + ChangeInfrastructureCompartmentRequest request = + new ChangeInfrastructureCompartmentRequest(); + request.infrastructureId = infrastructureId; + request.changeInfrastructureCompartmentDetails = changeInfrastructureCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ChangeInfrastructureCompartmentRequest(infrastructureId, + // changeInfrastructureCompartmentDetails, ifMatch, 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() + .infrastructureId(infrastructureId) + .changeInfrastructureCompartmentDetails(changeInfrastructureCompartmentDetails) + .ifMatch(ifMatch) + .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(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",changeInfrastructureCompartmentDetails=") + .append(String.valueOf(this.changeInfrastructureCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 ChangeInfrastructureCompartmentRequest)) { + return false; + } + + ChangeInfrastructureCompartmentRequest other = (ChangeInfrastructureCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals( + this.changeInfrastructureCompartmentDetails, + other.changeInfrastructureCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.changeInfrastructureCompartmentDetails == null + ? 43 + : this.changeInfrastructureCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmClusterNetworkCompartmentRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmClusterNetworkCompartmentRequest.java new file mode 100644 index 00000000000..070656afd33 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmClusterNetworkCompartmentRequest.java @@ -0,0 +1,377 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * ChangeVmClusterNetworkCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeVmClusterNetworkCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + private String vmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + public String getVmClusterNetworkId() { + return vmClusterNetworkId; + } + /** Updated Compartment details. */ + private com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails + changeVmClusterNetworkCompartmentDetails; + + /** Updated Compartment details. */ + public com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails + getChangeVmClusterNetworkCompartmentDetails() { + return changeVmClusterNetworkCompartmentDetails; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails getBody$() { + return changeVmClusterNetworkCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeVmClusterNetworkCompartmentRequest, + com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + */ + private String vmClusterNetworkId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + * + * @param vmClusterNetworkId the value to set + * @return this builder instance + */ + public Builder vmClusterNetworkId(String vmClusterNetworkId) { + this.vmClusterNetworkId = vmClusterNetworkId; + return this; + } + + /** Updated Compartment details. */ + private com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails + changeVmClusterNetworkCompartmentDetails = null; + + /** + * Updated Compartment details. + * + * @param changeVmClusterNetworkCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeVmClusterNetworkCompartmentDetails( + com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails + changeVmClusterNetworkCompartmentDetails) { + this.changeVmClusterNetworkCompartmentDetails = + changeVmClusterNetworkCompartmentDetails; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(ChangeVmClusterNetworkCompartmentRequest o) { + vmClusterNetworkId(o.getVmClusterNetworkId()); + changeVmClusterNetworkCompartmentDetails( + o.getChangeVmClusterNetworkCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeVmClusterNetworkCompartmentRequest 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 ChangeVmClusterNetworkCompartmentRequest + */ + public ChangeVmClusterNetworkCompartmentRequest build() { + ChangeVmClusterNetworkCompartmentRequest 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.datacc.model.ChangeVmClusterNetworkCompartmentDetails body) { + changeVmClusterNetworkCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeVmClusterNetworkCompartmentRequest 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 ChangeVmClusterNetworkCompartmentRequest + */ + public ChangeVmClusterNetworkCompartmentRequest buildWithoutInvocationCallback() { + ChangeVmClusterNetworkCompartmentRequest request = + new ChangeVmClusterNetworkCompartmentRequest(); + request.vmClusterNetworkId = vmClusterNetworkId; + request.changeVmClusterNetworkCompartmentDetails = + changeVmClusterNetworkCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ChangeVmClusterNetworkCompartmentRequest(vmClusterNetworkId, + // changeVmClusterNetworkCompartmentDetails, ifMatch, 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() + .vmClusterNetworkId(vmClusterNetworkId) + .changeVmClusterNetworkCompartmentDetails(changeVmClusterNetworkCompartmentDetails) + .ifMatch(ifMatch) + .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(",vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); + sb.append(",changeVmClusterNetworkCompartmentDetails=") + .append(String.valueOf(this.changeVmClusterNetworkCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 ChangeVmClusterNetworkCompartmentRequest)) { + return false; + } + + ChangeVmClusterNetworkCompartmentRequest other = + (ChangeVmClusterNetworkCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) + && java.util.Objects.equals( + this.changeVmClusterNetworkCompartmentDetails, + other.changeVmClusterNetworkCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.vmClusterNetworkId == null + ? 43 + : this.vmClusterNetworkId.hashCode()); + result = + (result * PRIME) + + (this.changeVmClusterNetworkCompartmentDetails == null + ? 43 + : this.changeVmClusterNetworkCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmInstanceCompartmentRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmInstanceCompartmentRequest.java new file mode 100644 index 00000000000..e65f9e52582 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmInstanceCompartmentRequest.java @@ -0,0 +1,365 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * ChangeVmInstanceCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeVmInstanceCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** Updated Compartment details. */ + private com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails + changeVmInstanceCompartmentDetails; + + /** Updated Compartment details. */ + public com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails + getChangeVmInstanceCompartmentDetails() { + return changeVmInstanceCompartmentDetails; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails getBody$() { + return changeVmInstanceCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeVmInstanceCompartmentRequest, + com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** Updated Compartment details. */ + private com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails + changeVmInstanceCompartmentDetails = null; + + /** + * Updated Compartment details. + * + * @param changeVmInstanceCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeVmInstanceCompartmentDetails( + com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails + changeVmInstanceCompartmentDetails) { + this.changeVmInstanceCompartmentDetails = changeVmInstanceCompartmentDetails; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(ChangeVmInstanceCompartmentRequest o) { + vmInstanceId(o.getVmInstanceId()); + changeVmInstanceCompartmentDetails(o.getChangeVmInstanceCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeVmInstanceCompartmentRequest 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 ChangeVmInstanceCompartmentRequest + */ + public ChangeVmInstanceCompartmentRequest build() { + ChangeVmInstanceCompartmentRequest 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.datacc.model.ChangeVmInstanceCompartmentDetails body) { + changeVmInstanceCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeVmInstanceCompartmentRequest 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 ChangeVmInstanceCompartmentRequest + */ + public ChangeVmInstanceCompartmentRequest buildWithoutInvocationCallback() { + ChangeVmInstanceCompartmentRequest request = new ChangeVmInstanceCompartmentRequest(); + request.vmInstanceId = vmInstanceId; + request.changeVmInstanceCompartmentDetails = changeVmInstanceCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ChangeVmInstanceCompartmentRequest(vmInstanceId, + // changeVmInstanceCompartmentDetails, ifMatch, 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() + .vmInstanceId(vmInstanceId) + .changeVmInstanceCompartmentDetails(changeVmInstanceCompartmentDetails) + .ifMatch(ifMatch) + .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(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",changeVmInstanceCompartmentDetails=") + .append(String.valueOf(this.changeVmInstanceCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 ChangeVmInstanceCompartmentRequest)) { + return false; + } + + ChangeVmInstanceCompartmentRequest other = (ChangeVmInstanceCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals( + this.changeVmInstanceCompartmentDetails, + other.changeVmInstanceCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = + (result * PRIME) + + (this.changeVmInstanceCompartmentDetails == null + ? 43 + : this.changeVmInstanceCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateInfrastructureRequest.java new file mode 100644 index 00000000000..105bd29bcd7 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateInfrastructureRequest.java @@ -0,0 +1,280 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use CreateInfrastructureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateInfrastructureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.CreateInfrastructureDetails> { + + /** New Database Infrastructure details. */ + private com.oracle.bmc.datacc.model.CreateInfrastructureDetails createInfrastructureDetails; + + /** New Database Infrastructure details. */ + public com.oracle.bmc.datacc.model.CreateInfrastructureDetails + getCreateInfrastructureDetails() { + return createInfrastructureDetails; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.CreateInfrastructureDetails getBody$() { + return createInfrastructureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateInfrastructureRequest, + com.oracle.bmc.datacc.model.CreateInfrastructureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** New Database Infrastructure details. */ + private com.oracle.bmc.datacc.model.CreateInfrastructureDetails + createInfrastructureDetails = null; + + /** + * New Database Infrastructure details. + * + * @param createInfrastructureDetails the value to set + * @return this builder instance + */ + public Builder createInfrastructureDetails( + com.oracle.bmc.datacc.model.CreateInfrastructureDetails + createInfrastructureDetails) { + this.createInfrastructureDetails = createInfrastructureDetails; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(CreateInfrastructureRequest o) { + createInfrastructureDetails(o.getCreateInfrastructureDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateInfrastructureRequest 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 CreateInfrastructureRequest + */ + public CreateInfrastructureRequest build() { + CreateInfrastructureRequest 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.datacc.model.CreateInfrastructureDetails body) { + createInfrastructureDetails(body); + return this; + } + + /** + * Build the instance of CreateInfrastructureRequest 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 CreateInfrastructureRequest + */ + public CreateInfrastructureRequest buildWithoutInvocationCallback() { + CreateInfrastructureRequest request = new CreateInfrastructureRequest(); + request.createInfrastructureDetails = createInfrastructureDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateInfrastructureRequest(createInfrastructureDetails, 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() + .createInfrastructureDetails(createInfrastructureDetails) + .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(",createInfrastructureDetails=") + .append(String.valueOf(this.createInfrastructureDetails)); + 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 CreateInfrastructureRequest)) { + return false; + } + + CreateInfrastructureRequest other = (CreateInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createInfrastructureDetails, other.createInfrastructureDetails) + && 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.createInfrastructureDetails == null + ? 43 + : this.createInfrastructureDetails.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmClusterNetworkRequest.java new file mode 100644 index 00000000000..33c34bd3a4d --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmClusterNetworkRequest.java @@ -0,0 +1,281 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * CreateVmClusterNetworkRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateVmClusterNetworkRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails> { + + /** New VM cluster network details. */ + private com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails createVmClusterNetworkDetails; + + /** New VM cluster network details. */ + public com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + getCreateVmClusterNetworkDetails() { + return createVmClusterNetworkDetails; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails getBody$() { + return createVmClusterNetworkDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateVmClusterNetworkRequest, + com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** New VM cluster network details. */ + private com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + createVmClusterNetworkDetails = null; + + /** + * New VM cluster network details. + * + * @param createVmClusterNetworkDetails the value to set + * @return this builder instance + */ + public Builder createVmClusterNetworkDetails( + com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + createVmClusterNetworkDetails) { + this.createVmClusterNetworkDetails = createVmClusterNetworkDetails; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(CreateVmClusterNetworkRequest o) { + createVmClusterNetworkDetails(o.getCreateVmClusterNetworkDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateVmClusterNetworkRequest 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 CreateVmClusterNetworkRequest + */ + public CreateVmClusterNetworkRequest build() { + CreateVmClusterNetworkRequest 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.datacc.model.CreateVmClusterNetworkDetails body) { + createVmClusterNetworkDetails(body); + return this; + } + + /** + * Build the instance of CreateVmClusterNetworkRequest 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 CreateVmClusterNetworkRequest + */ + public CreateVmClusterNetworkRequest buildWithoutInvocationCallback() { + CreateVmClusterNetworkRequest request = new CreateVmClusterNetworkRequest(); + request.createVmClusterNetworkDetails = createVmClusterNetworkDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateVmClusterNetworkRequest(createVmClusterNetworkDetails, 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() + .createVmClusterNetworkDetails(createVmClusterNetworkDetails) + .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(",createVmClusterNetworkDetails=") + .append(String.valueOf(this.createVmClusterNetworkDetails)); + 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 CreateVmClusterNetworkRequest)) { + return false; + } + + CreateVmClusterNetworkRequest other = (CreateVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createVmClusterNetworkDetails, other.createVmClusterNetworkDetails) + && 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.createVmClusterNetworkDetails == null + ? 43 + : this.createVmClusterNetworkDetails.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmInstanceRequest.java new file mode 100644 index 00000000000..8819ae740f5 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmInstanceRequest.java @@ -0,0 +1,274 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use CreateVmInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateVmInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.CreateVmInstanceDetails> { + + /** New VM instance details. */ + private com.oracle.bmc.datacc.model.CreateVmInstanceDetails createVmInstanceDetails; + + /** New VM instance details. */ + public com.oracle.bmc.datacc.model.CreateVmInstanceDetails getCreateVmInstanceDetails() { + return createVmInstanceDetails; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.CreateVmInstanceDetails getBody$() { + return createVmInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateVmInstanceRequest, com.oracle.bmc.datacc.model.CreateVmInstanceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** New VM instance details. */ + private com.oracle.bmc.datacc.model.CreateVmInstanceDetails createVmInstanceDetails = null; + + /** + * New VM instance details. + * + * @param createVmInstanceDetails the value to set + * @return this builder instance + */ + public Builder createVmInstanceDetails( + com.oracle.bmc.datacc.model.CreateVmInstanceDetails createVmInstanceDetails) { + this.createVmInstanceDetails = createVmInstanceDetails; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(CreateVmInstanceRequest o) { + createVmInstanceDetails(o.getCreateVmInstanceDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateVmInstanceRequest 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 CreateVmInstanceRequest + */ + public CreateVmInstanceRequest build() { + CreateVmInstanceRequest 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.datacc.model.CreateVmInstanceDetails body) { + createVmInstanceDetails(body); + return this; + } + + /** + * Build the instance of CreateVmInstanceRequest 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 CreateVmInstanceRequest + */ + public CreateVmInstanceRequest buildWithoutInvocationCallback() { + CreateVmInstanceRequest request = new CreateVmInstanceRequest(); + request.createVmInstanceDetails = createVmInstanceDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateVmInstanceRequest(createVmInstanceDetails, 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() + .createVmInstanceDetails(createVmInstanceDetails) + .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(",createVmInstanceDetails=").append(String.valueOf(this.createVmInstanceDetails)); + 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 CreateVmInstanceRequest)) { + return false; + } + + CreateVmInstanceRequest other = (CreateVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createVmInstanceDetails, other.createVmInstanceDetails) + && 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.createVmInstanceDetails == null + ? 43 + : this.createVmInstanceDetails.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteInfrastructureRequest.java new file mode 100644 index 00000000000..4803573e47e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteInfrastructureRequest.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use DeleteInfrastructureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteInfrastructureRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * When set to {@code true}, infrastructure will be deleted even if it has dependent resources. + * If set to {@code false}, deletion will fail if the infrastructure has dependent resources. + * Default is {@code false}. + */ + private Boolean isForceDeleteInfrastructure; + + /** + * When set to {@code true}, infrastructure will be deleted even if it has dependent resources. + * If set to {@code false}, deletion will fail if the infrastructure has dependent resources. + * Default is {@code false}. + */ + public Boolean getIsForceDeleteInfrastructure() { + return isForceDeleteInfrastructure; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteInfrastructureRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * When set to {@code true}, infrastructure will be deleted even if it has dependent + * resources. If set to {@code false}, deletion will fail if the infrastructure has + * dependent resources. Default is {@code false}. + */ + private Boolean isForceDeleteInfrastructure = null; + + /** + * When set to {@code true}, infrastructure will be deleted even if it has dependent + * resources. If set to {@code false}, deletion will fail if the infrastructure has + * dependent resources. Default is {@code false}. + * + * @param isForceDeleteInfrastructure the value to set + * @return this builder instance + */ + public Builder isForceDeleteInfrastructure(Boolean isForceDeleteInfrastructure) { + this.isForceDeleteInfrastructure = isForceDeleteInfrastructure; + 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(DeleteInfrastructureRequest o) { + infrastructureId(o.getInfrastructureId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isForceDeleteInfrastructure(o.getIsForceDeleteInfrastructure()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteInfrastructureRequest 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 DeleteInfrastructureRequest + */ + public DeleteInfrastructureRequest build() { + DeleteInfrastructureRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteInfrastructureRequest 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 DeleteInfrastructureRequest + */ + public DeleteInfrastructureRequest buildWithoutInvocationCallback() { + DeleteInfrastructureRequest request = new DeleteInfrastructureRequest(); + request.infrastructureId = infrastructureId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isForceDeleteInfrastructure = isForceDeleteInfrastructure; + return request; + // new DeleteInfrastructureRequest(infrastructureId, ifMatch, opcRequestId, + // isForceDeleteInfrastructure); + } + } + + /** + * 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() + .infrastructureId(infrastructureId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isForceDeleteInfrastructure(isForceDeleteInfrastructure); + } + + /** + * 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(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isForceDeleteInfrastructure=") + .append(String.valueOf(this.isForceDeleteInfrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteInfrastructureRequest)) { + return false; + } + + DeleteInfrastructureRequest other = (DeleteInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.isForceDeleteInfrastructure, other.isForceDeleteInfrastructure); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.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.isForceDeleteInfrastructure == null + ? 43 + : this.isForceDeleteInfrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmClusterNetworkRequest.java new file mode 100644 index 00000000000..693a0b5053f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmClusterNetworkRequest.java @@ -0,0 +1,253 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * DeleteVmClusterNetworkRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteVmClusterNetworkRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + private String vmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + public String getVmClusterNetworkId() { + return vmClusterNetworkId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteVmClusterNetworkRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + */ + private String vmClusterNetworkId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + * + * @param vmClusterNetworkId the value to set + * @return this builder instance + */ + public Builder vmClusterNetworkId(String vmClusterNetworkId) { + this.vmClusterNetworkId = vmClusterNetworkId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(DeleteVmClusterNetworkRequest o) { + vmClusterNetworkId(o.getVmClusterNetworkId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteVmClusterNetworkRequest 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 DeleteVmClusterNetworkRequest + */ + public DeleteVmClusterNetworkRequest build() { + DeleteVmClusterNetworkRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteVmClusterNetworkRequest 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 DeleteVmClusterNetworkRequest + */ + public DeleteVmClusterNetworkRequest buildWithoutInvocationCallback() { + DeleteVmClusterNetworkRequest request = new DeleteVmClusterNetworkRequest(); + request.vmClusterNetworkId = vmClusterNetworkId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteVmClusterNetworkRequest(vmClusterNetworkId, 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() + .vmClusterNetworkId(vmClusterNetworkId) + .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(",vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); + 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 DeleteVmClusterNetworkRequest)) { + return false; + } + + DeleteVmClusterNetworkRequest other = (DeleteVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) + && 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.vmClusterNetworkId == null + ? 43 + : this.vmClusterNetworkId.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmInstanceRequest.java new file mode 100644 index 00000000000..ab3e44d8a4f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmInstanceRequest.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use DeleteVmInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(DeleteVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteVmInstanceRequest 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 DeleteVmInstanceRequest + */ + public DeleteVmInstanceRequest build() { + DeleteVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteVmInstanceRequest 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 DeleteVmInstanceRequest + */ + public DeleteVmInstanceRequest buildWithoutInvocationCallback() { + DeleteVmInstanceRequest request = new DeleteVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteVmInstanceRequest(vmInstanceId, 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().vmInstanceId(vmInstanceId).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(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + 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 DeleteVmInstanceRequest)) { + return false; + } + + DeleteVmInstanceRequest other = (DeleteVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && 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.vmInstanceId == null ? 43 : this.vmInstanceId.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureConfigFileRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureConfigFileRequest.java new file mode 100644 index 00000000000..b17994efe4d --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureConfigFileRequest.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * DownloadInfrastructureConfigFileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DownloadInfrastructureConfigFileRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DownloadInfrastructureConfigFileRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(DownloadInfrastructureConfigFileRequest o) { + infrastructureId(o.getInfrastructureId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DownloadInfrastructureConfigFileRequest 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 DownloadInfrastructureConfigFileRequest + */ + public DownloadInfrastructureConfigFileRequest build() { + DownloadInfrastructureConfigFileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DownloadInfrastructureConfigFileRequest 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 DownloadInfrastructureConfigFileRequest + */ + public DownloadInfrastructureConfigFileRequest buildWithoutInvocationCallback() { + DownloadInfrastructureConfigFileRequest request = + new DownloadInfrastructureConfigFileRequest(); + request.infrastructureId = infrastructureId; + request.opcRequestId = opcRequestId; + return request; + // new DownloadInfrastructureConfigFileRequest(infrastructureId, 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().infrastructureId(infrastructureId).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(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + 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 DownloadInfrastructureConfigFileRequest)) { + return false; + } + + DownloadInfrastructureConfigFileRequest other = (DownloadInfrastructureConfigFileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureValidationScriptRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureValidationScriptRequest.java new file mode 100644 index 00000000000..36670c81c3a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureValidationScriptRequest.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * DownloadInfrastructureValidationScriptRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DownloadInfrastructureValidationScriptRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DownloadInfrastructureValidationScriptRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(DownloadInfrastructureValidationScriptRequest o) { + infrastructureId(o.getInfrastructureId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DownloadInfrastructureValidationScriptRequest 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 DownloadInfrastructureValidationScriptRequest + */ + public DownloadInfrastructureValidationScriptRequest build() { + DownloadInfrastructureValidationScriptRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DownloadInfrastructureValidationScriptRequest 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 DownloadInfrastructureValidationScriptRequest + */ + public DownloadInfrastructureValidationScriptRequest buildWithoutInvocationCallback() { + DownloadInfrastructureValidationScriptRequest request = + new DownloadInfrastructureValidationScriptRequest(); + request.infrastructureId = infrastructureId; + request.opcRequestId = opcRequestId; + return request; + // new DownloadInfrastructureValidationScriptRequest(infrastructureId, 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().infrastructureId(infrastructureId).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(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + 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 DownloadInfrastructureValidationScriptRequest)) { + return false; + } + + DownloadInfrastructureValidationScriptRequest other = + (DownloadInfrastructureValidationScriptRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GenerateRecommendedVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GenerateRecommendedVmClusterNetworkRequest.java new file mode 100644 index 00000000000..0a78c33fbf9 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GenerateRecommendedVmClusterNetworkRequest.java @@ -0,0 +1,337 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * GenerateRecommendedVmClusterNetworkRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GenerateRecommendedVmClusterNetworkRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails> { + + /** Request to generate a recommended VM cluster network details configuration. */ + private com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails + generateRecommendedVmClusterNetworkDetails; + + /** Request to generate a recommended VM cluster network details configuration. */ + public com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails + getGenerateRecommendedVmClusterNetworkDetails() { + return generateRecommendedVmClusterNetworkDetails; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for 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.datacc.model.GenerateRecommendedVmClusterNetworkDetails getBody$() { + return generateRecommendedVmClusterNetworkDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateRecommendedVmClusterNetworkRequest, + com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to generate a recommended VM cluster network details configuration. */ + private com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails + generateRecommendedVmClusterNetworkDetails = null; + + /** + * Request to generate a recommended VM cluster network details configuration. + * + * @param generateRecommendedVmClusterNetworkDetails the value to set + * @return this builder instance + */ + public Builder generateRecommendedVmClusterNetworkDetails( + com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails + generateRecommendedVmClusterNetworkDetails) { + this.generateRecommendedVmClusterNetworkDetails = + generateRecommendedVmClusterNetworkDetails; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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 + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for 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(GenerateRecommendedVmClusterNetworkRequest o) { + generateRecommendedVmClusterNetworkDetails( + o.getGenerateRecommendedVmClusterNetworkDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateRecommendedVmClusterNetworkRequest 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 GenerateRecommendedVmClusterNetworkRequest + */ + public GenerateRecommendedVmClusterNetworkRequest build() { + GenerateRecommendedVmClusterNetworkRequest 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.datacc.model.GenerateRecommendedVmClusterNetworkDetails body) { + generateRecommendedVmClusterNetworkDetails(body); + return this; + } + + /** + * Build the instance of GenerateRecommendedVmClusterNetworkRequest 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 GenerateRecommendedVmClusterNetworkRequest + */ + public GenerateRecommendedVmClusterNetworkRequest buildWithoutInvocationCallback() { + GenerateRecommendedVmClusterNetworkRequest request = + new GenerateRecommendedVmClusterNetworkRequest(); + request.generateRecommendedVmClusterNetworkDetails = + generateRecommendedVmClusterNetworkDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new + // GenerateRecommendedVmClusterNetworkRequest(generateRecommendedVmClusterNetworkDetails, 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() + .generateRecommendedVmClusterNetworkDetails( + generateRecommendedVmClusterNetworkDetails) + .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(",generateRecommendedVmClusterNetworkDetails=") + .append(String.valueOf(this.generateRecommendedVmClusterNetworkDetails)); + 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 GenerateRecommendedVmClusterNetworkRequest)) { + return false; + } + + GenerateRecommendedVmClusterNetworkRequest other = + (GenerateRecommendedVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.generateRecommendedVmClusterNetworkDetails, + other.generateRecommendedVmClusterNetworkDetails) + && 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.generateRecommendedVmClusterNetworkDetails == null + ? 43 + : this.generateRecommendedVmClusterNetworkDetails.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureRequest.java new file mode 100644 index 00000000000..d79f2957074 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetInfrastructureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetInfrastructureRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetInfrastructureRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(GetInfrastructureRequest o) { + infrastructureId(o.getInfrastructureId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetInfrastructureRequest 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 GetInfrastructureRequest + */ + public GetInfrastructureRequest build() { + GetInfrastructureRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetInfrastructureRequest 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 GetInfrastructureRequest + */ + public GetInfrastructureRequest buildWithoutInvocationCallback() { + GetInfrastructureRequest request = new GetInfrastructureRequest(); + request.infrastructureId = infrastructureId; + request.opcRequestId = opcRequestId; + return request; + // new GetInfrastructureRequest(infrastructureId, 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().infrastructureId(infrastructureId).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(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + 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 GetInfrastructureRequest)) { + return false; + } + + GetInfrastructureRequest other = (GetInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureScaleOptionRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureScaleOptionRequest.java new file mode 100644 index 00000000000..2ad6b07e4ba --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureScaleOptionRequest.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * GetInfrastructureScaleOptionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetInfrastructureScaleOptionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetInfrastructureScaleOptionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(GetInfrastructureScaleOptionRequest o) { + infrastructureId(o.getInfrastructureId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetInfrastructureScaleOptionRequest 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 GetInfrastructureScaleOptionRequest + */ + public GetInfrastructureScaleOptionRequest build() { + GetInfrastructureScaleOptionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetInfrastructureScaleOptionRequest 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 GetInfrastructureScaleOptionRequest + */ + public GetInfrastructureScaleOptionRequest buildWithoutInvocationCallback() { + GetInfrastructureScaleOptionRequest request = new GetInfrastructureScaleOptionRequest(); + request.infrastructureId = infrastructureId; + request.opcRequestId = opcRequestId; + return request; + // new GetInfrastructureScaleOptionRequest(infrastructureId, 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().infrastructureId(infrastructureId).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(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + 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 GetInfrastructureScaleOptionRequest)) { + return false; + } + + GetInfrastructureScaleOptionRequest other = (GetInfrastructureScaleOptionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceExecutionRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceExecutionRequest.java new file mode 100644 index 00000000000..665605c8679 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceExecutionRequest.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * GetMaintenanceExecutionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetMaintenanceExecutionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The maintenance execution OCID. */ + private String maintenanceExecutionId; + + /** The maintenance execution OCID. */ + public String getMaintenanceExecutionId() { + return maintenanceExecutionId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetMaintenanceExecutionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The maintenance execution OCID. */ + private String maintenanceExecutionId = null; + + /** + * The maintenance execution OCID. + * + * @param maintenanceExecutionId the value to set + * @return this builder instance + */ + public Builder maintenanceExecutionId(String maintenanceExecutionId) { + this.maintenanceExecutionId = maintenanceExecutionId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(GetMaintenanceExecutionRequest o) { + maintenanceExecutionId(o.getMaintenanceExecutionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetMaintenanceExecutionRequest 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 GetMaintenanceExecutionRequest + */ + public GetMaintenanceExecutionRequest build() { + GetMaintenanceExecutionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetMaintenanceExecutionRequest 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 GetMaintenanceExecutionRequest + */ + public GetMaintenanceExecutionRequest buildWithoutInvocationCallback() { + GetMaintenanceExecutionRequest request = new GetMaintenanceExecutionRequest(); + request.maintenanceExecutionId = maintenanceExecutionId; + request.opcRequestId = opcRequestId; + return request; + // new GetMaintenanceExecutionRequest(maintenanceExecutionId, 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() + .maintenanceExecutionId(maintenanceExecutionId) + .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(",maintenanceExecutionId=").append(String.valueOf(this.maintenanceExecutionId)); + 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 GetMaintenanceExecutionRequest)) { + return false; + } + + GetMaintenanceExecutionRequest other = (GetMaintenanceExecutionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.maintenanceExecutionId, other.maintenanceExecutionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.maintenanceExecutionId == null + ? 43 + : this.maintenanceExecutionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceRunRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceRunRequest.java new file mode 100644 index 00000000000..34f77fed378 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceRunRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetMaintenanceRunRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetMaintenanceRunRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The maintenance run OCID. */ + private String maintenanceRunId; + + /** The maintenance run OCID. */ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetMaintenanceRunRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The maintenance run OCID. */ + private String maintenanceRunId = null; + + /** + * The maintenance run OCID. + * + * @param maintenanceRunId the value to set + * @return this builder instance + */ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(GetMaintenanceRunRequest o) { + maintenanceRunId(o.getMaintenanceRunId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetMaintenanceRunRequest 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 GetMaintenanceRunRequest + */ + public GetMaintenanceRunRequest build() { + GetMaintenanceRunRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetMaintenanceRunRequest 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 GetMaintenanceRunRequest + */ + public GetMaintenanceRunRequest buildWithoutInvocationCallback() { + GetMaintenanceRunRequest request = new GetMaintenanceRunRequest(); + request.maintenanceRunId = maintenanceRunId; + request.opcRequestId = opcRequestId; + return request; + // new GetMaintenanceRunRequest(maintenanceRunId, 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().maintenanceRunId(maintenanceRunId).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(",maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + 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 GetMaintenanceRunRequest)) { + return false; + } + + GetMaintenanceRunRequest other = (GetMaintenanceRunRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmClusterNetworkRequest.java new file mode 100644 index 00000000000..26398a017d0 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmClusterNetworkRequest.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetVmClusterNetworkRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetVmClusterNetworkRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + private String vmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + public String getVmClusterNetworkId() { + return vmClusterNetworkId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetVmClusterNetworkRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + */ + private String vmClusterNetworkId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + * + * @param vmClusterNetworkId the value to set + * @return this builder instance + */ + public Builder vmClusterNetworkId(String vmClusterNetworkId) { + this.vmClusterNetworkId = vmClusterNetworkId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(GetVmClusterNetworkRequest o) { + vmClusterNetworkId(o.getVmClusterNetworkId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetVmClusterNetworkRequest 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 GetVmClusterNetworkRequest + */ + public GetVmClusterNetworkRequest build() { + GetVmClusterNetworkRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetVmClusterNetworkRequest 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 GetVmClusterNetworkRequest + */ + public GetVmClusterNetworkRequest buildWithoutInvocationCallback() { + GetVmClusterNetworkRequest request = new GetVmClusterNetworkRequest(); + request.vmClusterNetworkId = vmClusterNetworkId; + request.opcRequestId = opcRequestId; + return request; + // new GetVmClusterNetworkRequest(vmClusterNetworkId, 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().vmClusterNetworkId(vmClusterNetworkId).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(",vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); + 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 GetVmClusterNetworkRequest)) { + return false; + } + + GetVmClusterNetworkRequest other = (GetVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.vmClusterNetworkId == null + ? 43 + : this.vmClusterNetworkId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmInstanceRequest.java new file mode 100644 index 00000000000..7f1ade60cbd --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmInstanceRequest.java @@ -0,0 +1,200 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetVmInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(GetVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetVmInstanceRequest 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 GetVmInstanceRequest + */ + public GetVmInstanceRequest build() { + GetVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetVmInstanceRequest 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 GetVmInstanceRequest + */ + public GetVmInstanceRequest buildWithoutInvocationCallback() { + GetVmInstanceRequest request = new GetVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.opcRequestId = opcRequestId; + return request; + // new GetVmInstanceRequest(vmInstanceId, 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().vmInstanceId(vmInstanceId).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(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + 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 GetVmInstanceRequest)) { + return false; + } + + GetVmInstanceRequest other = (GetVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetWorkRequestRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..b4c83223af3 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetWorkRequestRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListInfrastructuresRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListInfrastructuresRequest.java new file mode 100644 index 00000000000..3d90d885945 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListInfrastructuresRequest.java @@ -0,0 +1,479 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListInfrastructuresRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListInfrastructuresRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + private String displayName; + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** A filter to return resources that match the specified lifecycle state. */ + private java.util.List lifecycleState; + + /** A filter to return resources that match the specified lifecycle state. */ + public java.util.List + getLifecycleState() { + return lifecycleState; + } + /** The maximum number of items to return in a page. */ + private Integer limit; + + /** The maximum number of items to return in a page. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + private SortBy sortBy; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + BuildIdentifier("buildIdentifier"), + ; + + 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 by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListInfrastructuresRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + private String displayName = null; + + /** + * A filter to return resources that match the entire display name given. The match is 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 resources that match the specified lifecycle state. */ + private java.util.List + lifecycleState = null; + + /** + * A filter to return resources that match the specified lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + java.util.List + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Singular setter. A filter to return resources that match the specified lifecycle state. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder lifecycleState(InfrastructureLifecycleState singularValue) { + return this.lifecycleState(java.util.Arrays.asList(singularValue)); + } + + /** The maximum number of items to return in a page. */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * + * @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 you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token 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 that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field by which you want to sort. You can provide only one type of sort order. The + * default order for {@code timeCreated} is descending. The default order for {@code + * displayName} is ascending. If no value is specified, then {@code timeCreated} is the + * default. When listing software images within the same {@code version}, using {@code + * sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically + * increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + private SortBy sortBy = null; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The + * default order for {@code timeCreated} is descending. The default order for {@code + * displayName} is ascending. If no value is specified, then {@code timeCreated} is the + * default. When listing software images within the same {@code version}, using {@code + * sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically + * increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(ListInfrastructuresRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + 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 ListInfrastructuresRequest 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 ListInfrastructuresRequest + */ + public ListInfrastructuresRequest build() { + ListInfrastructuresRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListInfrastructuresRequest 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 ListInfrastructuresRequest + */ + public ListInfrastructuresRequest buildWithoutInvocationCallback() { + ListInfrastructuresRequest request = new ListInfrastructuresRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListInfrastructuresRequest(compartmentId, displayName, 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) + .displayName(displayName) + .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(",displayName=").append(String.valueOf(this.displayName)); + 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 ListInfrastructuresRequest)) { + return false; + } + + ListInfrastructuresRequest other = (ListInfrastructuresRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.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.displayName == null ? 43 : this.displayName.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceExecutionsRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceExecutionsRequest.java new file mode 100644 index 00000000000..f2dd92c7fab --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceExecutionsRequest.java @@ -0,0 +1,717 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * ListMaintenanceExecutionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListMaintenanceExecutionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + private String displayName; + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** The Database Infrastructure ID. */ + private String infrastructureId; + + /** The Database Infrastructure ID. */ + public String getInfrastructureId() { + return infrastructureId; + } + /** The type of the target resource. */ + private com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType; + + /** The type of the target resource. */ + public com.oracle.bmc.datacc.model.TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + /** The maintenance type. */ + private com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType; + + /** The maintenance type. */ + public com.oracle.bmc.datacc.model.MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + /** The maintenance run OCID. */ + private String maintenanceRunId; + + /** The maintenance run OCID. */ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState lifecycleState; + + /** A filter to return only resources that match the given lifecycle state exactly. */ + public com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState getLifecycleState() { + return lifecycleState; + } + /** The sub-type of the maintenance run. */ + private com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype; + + /** The sub-type of the maintenance run. */ + public com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + /** Filter maintenance run for before given time. */ + private java.util.Date timeAcceptedLessThanOrEqualTo; + + /** Filter maintenance run for before given time. */ + public java.util.Date getTimeAcceptedLessThanOrEqualTo() { + return timeAcceptedLessThanOrEqualTo; + } + /** Filter maintenance run for after given time. */ + private java.util.Date timeAcceptedGreaterThanOrEqualTo; + + /** Filter maintenance run for after given time. */ + public java.util.Date getTimeAcceptedGreaterThanOrEqualTo() { + return timeAcceptedGreaterThanOrEqualTo; + } + /** The maintenance execution type. */ + private com.oracle.bmc.datacc.model.TypeEnum type; + + /** The maintenance execution type. */ + public com.oracle.bmc.datacc.model.TypeEnum getType() { + return type; + } + /** The maximum number of items to return in a page. */ + private Integer limit; + + /** The maximum number of items to return in a page. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The field by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + private SortBy sortBy; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + BuildIdentifier("buildIdentifier"), + ; + + 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 by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMaintenanceExecutionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + private String displayName = null; + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The Database Infrastructure ID. */ + private String infrastructureId = null; + + /** + * The Database Infrastructure ID. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** The type of the target resource. */ + private com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType = null; + + /** + * The type of the target resource. + * + * @param targetResourceType the value to set + * @return this builder instance + */ + public Builder targetResourceType( + com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + return this; + } + + /** The maintenance type. */ + private com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType = null; + + /** + * The maintenance type. + * + * @param maintenanceType the value to set + * @return this builder instance + */ + public Builder maintenanceType( + com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + return this; + } + + /** The maintenance run OCID. */ + private String maintenanceRunId = null; + + /** + * The maintenance run OCID. + * + * @param maintenanceRunId the value to set + * @return this builder instance + */ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + return this; + } + + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState 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.datacc.model.MaintenanceRunLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** The sub-type of the maintenance run. */ + private com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype = null; + + /** + * The sub-type of the maintenance run. + * + * @param maintenanceSubtype the value to set + * @return this builder instance + */ + public Builder maintenanceSubtype( + com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + return this; + } + + /** Filter maintenance run for before given time. */ + private java.util.Date timeAcceptedLessThanOrEqualTo = null; + + /** + * Filter maintenance run for before given time. + * + * @param timeAcceptedLessThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeAcceptedLessThanOrEqualTo(java.util.Date timeAcceptedLessThanOrEqualTo) { + this.timeAcceptedLessThanOrEqualTo = timeAcceptedLessThanOrEqualTo; + return this; + } + + /** Filter maintenance run for after given time. */ + private java.util.Date timeAcceptedGreaterThanOrEqualTo = null; + + /** + * Filter maintenance run for after given time. + * + * @param timeAcceptedGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeAcceptedGreaterThanOrEqualTo( + java.util.Date timeAcceptedGreaterThanOrEqualTo) { + this.timeAcceptedGreaterThanOrEqualTo = timeAcceptedGreaterThanOrEqualTo; + return this; + } + + /** The maintenance execution type. */ + private com.oracle.bmc.datacc.model.TypeEnum type = null; + + /** + * The maintenance execution type. + * + * @param type the value to set + * @return this builder instance + */ + public Builder type(com.oracle.bmc.datacc.model.TypeEnum type) { + this.type = type; + return this; + } + + /** The maximum number of items to return in a page. */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * + * @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 you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token 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 field by which you want to sort. You can provide only one type of sort order. The + * default order for {@code timeCreated} is descending. The default order for {@code + * displayName} is ascending. If no value is specified, then {@code timeCreated} is the + * default. When listing software images within the same {@code version}, using {@code + * sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically + * increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + private SortBy sortBy = null; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The + * default order for {@code timeCreated} is descending. The default order for {@code + * displayName} is ascending. If no value is specified, then {@code timeCreated} is the + * default. When listing software images within the same {@code version}, using {@code + * sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically + * increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(ListMaintenanceExecutionsRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + infrastructureId(o.getInfrastructureId()); + targetResourceType(o.getTargetResourceType()); + maintenanceType(o.getMaintenanceType()); + maintenanceRunId(o.getMaintenanceRunId()); + lifecycleState(o.getLifecycleState()); + maintenanceSubtype(o.getMaintenanceSubtype()); + timeAcceptedLessThanOrEqualTo(o.getTimeAcceptedLessThanOrEqualTo()); + timeAcceptedGreaterThanOrEqualTo(o.getTimeAcceptedGreaterThanOrEqualTo()); + type(o.getType()); + 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 ListMaintenanceExecutionsRequest 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 ListMaintenanceExecutionsRequest + */ + public ListMaintenanceExecutionsRequest build() { + ListMaintenanceExecutionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListMaintenanceExecutionsRequest 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 ListMaintenanceExecutionsRequest + */ + public ListMaintenanceExecutionsRequest buildWithoutInvocationCallback() { + ListMaintenanceExecutionsRequest request = new ListMaintenanceExecutionsRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.infrastructureId = infrastructureId; + request.targetResourceType = targetResourceType; + request.maintenanceType = maintenanceType; + request.maintenanceRunId = maintenanceRunId; + request.lifecycleState = lifecycleState; + request.maintenanceSubtype = maintenanceSubtype; + request.timeAcceptedLessThanOrEqualTo = timeAcceptedLessThanOrEqualTo; + request.timeAcceptedGreaterThanOrEqualTo = timeAcceptedGreaterThanOrEqualTo; + request.type = type; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListMaintenanceExecutionsRequest(compartmentId, displayName, infrastructureId, + // targetResourceType, maintenanceType, maintenanceRunId, lifecycleState, + // maintenanceSubtype, timeAcceptedLessThanOrEqualTo, timeAcceptedGreaterThanOrEqualTo, + // type, 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) + .displayName(displayName) + .infrastructureId(infrastructureId) + .targetResourceType(targetResourceType) + .maintenanceType(maintenanceType) + .maintenanceRunId(maintenanceRunId) + .lifecycleState(lifecycleState) + .maintenanceSubtype(maintenanceSubtype) + .timeAcceptedLessThanOrEqualTo(timeAcceptedLessThanOrEqualTo) + .timeAcceptedGreaterThanOrEqualTo(timeAcceptedGreaterThanOrEqualTo) + .type(type) + .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(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(",maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(",maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(",timeAcceptedLessThanOrEqualTo=") + .append(String.valueOf(this.timeAcceptedLessThanOrEqualTo)); + sb.append(",timeAcceptedGreaterThanOrEqualTo=") + .append(String.valueOf(this.timeAcceptedGreaterThanOrEqualTo)); + 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(",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 ListMaintenanceExecutionsRequest)) { + return false; + } + + ListMaintenanceExecutionsRequest other = (ListMaintenanceExecutionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals( + this.timeAcceptedLessThanOrEqualTo, other.timeAcceptedLessThanOrEqualTo) + && java.util.Objects.equals( + this.timeAcceptedGreaterThanOrEqualTo, + other.timeAcceptedGreaterThanOrEqualTo) + && 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.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.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = + (result * PRIME) + + (this.timeAcceptedLessThanOrEqualTo == null + ? 43 + : this.timeAcceptedLessThanOrEqualTo.hashCode()); + result = + (result * PRIME) + + (this.timeAcceptedGreaterThanOrEqualTo == null + ? 43 + : this.timeAcceptedGreaterThanOrEqualTo.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.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceRunsRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceRunsRequest.java new file mode 100644 index 00000000000..d30932116a9 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceRunsRequest.java @@ -0,0 +1,659 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListMaintenanceRunsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListMaintenanceRunsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + private String displayName; + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** The Database Infrastructure ID. */ + private String infrastructureId; + + /** The Database Infrastructure ID. */ + public String getInfrastructureId() { + return infrastructureId; + } + /** The type of the target resource. */ + private com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType; + + /** The type of the target resource. */ + public com.oracle.bmc.datacc.model.TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + /** The maintenance type. */ + private com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType; + + /** The maintenance type. */ + public com.oracle.bmc.datacc.model.MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState lifecycleState; + + /** A filter to return only resources that match the given lifecycle state exactly. */ + public com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState getLifecycleState() { + return lifecycleState; + } + /** The sub-type of the maintenance run. */ + private com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype; + + /** The sub-type of the maintenance run. */ + public com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + /** Filter maintenance run for before given time. */ + private java.util.Date timeAcceptedLessThanOrEqualTo; + + /** Filter maintenance run for before given time. */ + public java.util.Date getTimeAcceptedLessThanOrEqualTo() { + return timeAcceptedLessThanOrEqualTo; + } + /** Filter maintenance run for after given time. */ + private java.util.Date timeAcceptedGreaterThanOrEqualTo; + + /** Filter maintenance run for after given time. */ + public java.util.Date getTimeAcceptedGreaterThanOrEqualTo() { + return timeAcceptedGreaterThanOrEqualTo; + } + /** The maximum number of items to return in a page. */ + private Integer limit; + + /** The maximum number of items to return in a page. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The field by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + private SortBy sortBy; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + BuildIdentifier("buildIdentifier"), + ; + + 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 by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMaintenanceRunsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + private String displayName = null; + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The Database Infrastructure ID. */ + private String infrastructureId = null; + + /** + * The Database Infrastructure ID. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** The type of the target resource. */ + private com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType = null; + + /** + * The type of the target resource. + * + * @param targetResourceType the value to set + * @return this builder instance + */ + public Builder targetResourceType( + com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + return this; + } + + /** The maintenance type. */ + private com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType = null; + + /** + * The maintenance type. + * + * @param maintenanceType the value to set + * @return this builder instance + */ + public Builder maintenanceType( + com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + return this; + } + + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState 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.datacc.model.MaintenanceRunLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** The sub-type of the maintenance run. */ + private com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype = null; + + /** + * The sub-type of the maintenance run. + * + * @param maintenanceSubtype the value to set + * @return this builder instance + */ + public Builder maintenanceSubtype( + com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + return this; + } + + /** Filter maintenance run for before given time. */ + private java.util.Date timeAcceptedLessThanOrEqualTo = null; + + /** + * Filter maintenance run for before given time. + * + * @param timeAcceptedLessThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeAcceptedLessThanOrEqualTo(java.util.Date timeAcceptedLessThanOrEqualTo) { + this.timeAcceptedLessThanOrEqualTo = timeAcceptedLessThanOrEqualTo; + return this; + } + + /** Filter maintenance run for after given time. */ + private java.util.Date timeAcceptedGreaterThanOrEqualTo = null; + + /** + * Filter maintenance run for after given time. + * + * @param timeAcceptedGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeAcceptedGreaterThanOrEqualTo( + java.util.Date timeAcceptedGreaterThanOrEqualTo) { + this.timeAcceptedGreaterThanOrEqualTo = timeAcceptedGreaterThanOrEqualTo; + return this; + } + + /** The maximum number of items to return in a page. */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * + * @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 you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token 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 field by which you want to sort. You can provide only one type of sort order. The + * default order for {@code timeCreated} is descending. The default order for {@code + * displayName} is ascending. If no value is specified, then {@code timeCreated} is the + * default. When listing software images within the same {@code version}, using {@code + * sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically + * increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + private SortBy sortBy = null; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The + * default order for {@code timeCreated} is descending. The default order for {@code + * displayName} is ascending. If no value is specified, then {@code timeCreated} is the + * default. When listing software images within the same {@code version}, using {@code + * sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically + * increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(ListMaintenanceRunsRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + infrastructureId(o.getInfrastructureId()); + targetResourceType(o.getTargetResourceType()); + maintenanceType(o.getMaintenanceType()); + lifecycleState(o.getLifecycleState()); + maintenanceSubtype(o.getMaintenanceSubtype()); + timeAcceptedLessThanOrEqualTo(o.getTimeAcceptedLessThanOrEqualTo()); + timeAcceptedGreaterThanOrEqualTo(o.getTimeAcceptedGreaterThanOrEqualTo()); + 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 ListMaintenanceRunsRequest 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 ListMaintenanceRunsRequest + */ + public ListMaintenanceRunsRequest build() { + ListMaintenanceRunsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListMaintenanceRunsRequest 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 ListMaintenanceRunsRequest + */ + public ListMaintenanceRunsRequest buildWithoutInvocationCallback() { + ListMaintenanceRunsRequest request = new ListMaintenanceRunsRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.infrastructureId = infrastructureId; + request.targetResourceType = targetResourceType; + request.maintenanceType = maintenanceType; + request.lifecycleState = lifecycleState; + request.maintenanceSubtype = maintenanceSubtype; + request.timeAcceptedLessThanOrEqualTo = timeAcceptedLessThanOrEqualTo; + request.timeAcceptedGreaterThanOrEqualTo = timeAcceptedGreaterThanOrEqualTo; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListMaintenanceRunsRequest(compartmentId, displayName, infrastructureId, + // targetResourceType, maintenanceType, lifecycleState, maintenanceSubtype, + // timeAcceptedLessThanOrEqualTo, timeAcceptedGreaterThanOrEqualTo, 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) + .displayName(displayName) + .infrastructureId(infrastructureId) + .targetResourceType(targetResourceType) + .maintenanceType(maintenanceType) + .lifecycleState(lifecycleState) + .maintenanceSubtype(maintenanceSubtype) + .timeAcceptedLessThanOrEqualTo(timeAcceptedLessThanOrEqualTo) + .timeAcceptedGreaterThanOrEqualTo(timeAcceptedGreaterThanOrEqualTo) + .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(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(",maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(",timeAcceptedLessThanOrEqualTo=") + .append(String.valueOf(this.timeAcceptedLessThanOrEqualTo)); + sb.append(",timeAcceptedGreaterThanOrEqualTo=") + .append(String.valueOf(this.timeAcceptedGreaterThanOrEqualTo)); + 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 ListMaintenanceRunsRequest)) { + return false; + } + + ListMaintenanceRunsRequest other = (ListMaintenanceRunsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals( + this.timeAcceptedLessThanOrEqualTo, other.timeAcceptedLessThanOrEqualTo) + && java.util.Objects.equals( + this.timeAcceptedGreaterThanOrEqualTo, + other.timeAcceptedGreaterThanOrEqualTo) + && 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.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = + (result * PRIME) + + (this.timeAcceptedLessThanOrEqualTo == null + ? 43 + : this.timeAcceptedLessThanOrEqualTo.hashCode()); + result = + (result * PRIME) + + (this.timeAcceptedGreaterThanOrEqualTo == null + ? 43 + : this.timeAcceptedGreaterThanOrEqualTo.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmClusterNetworksRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmClusterNetworksRequest.java new file mode 100644 index 00000000000..74c20f64d41 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmClusterNetworksRequest.java @@ -0,0 +1,611 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * ListVmClusterNetworksRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListVmClusterNetworksRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + private String displayName; + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** A filter to return resources that match the specified lifecycle state. */ + private java.util.List + lifecycleState; + + /** A filter to return resources that match the specified lifecycle state. */ + public java.util.List + getLifecycleState() { + return lifecycleState; + } + /** A filter to return VM cluster network resources that matches the specified value. */ + private Boolean isScanEnabled; + + /** A filter to return VM cluster network resources that matches the specified value. */ + public Boolean getIsScanEnabled() { + return isScanEnabled; + } + /** The maximum number of items to return in a page. */ + private Integer limit; + + /** The maximum number of items to return in a page. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + private SortBy sortBy; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + BuildIdentifier("buildIdentifier"), + ; + + 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 by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** Count of virtual machines in this VM cluster. */ + private Integer nodeCount; + + /** Count of virtual machines in this VM cluster. */ + public Integer getNodeCount() { + return nodeCount; + } + /** VM network consumer type. */ + private com.oracle.bmc.datacc.model.VmNetworkConsumerType vmNetworkConsumerType; + + /** VM network consumer type. */ + public com.oracle.bmc.datacc.model.VmNetworkConsumerType getVmNetworkConsumerType() { + return vmNetworkConsumerType; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListVmClusterNetworksRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + private String displayName = null; + + /** + * A filter to return resources that match the entire display name given. The match is 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 resources that match the specified lifecycle state. */ + private java.util.List + lifecycleState = null; + + /** + * A filter to return resources that match the specified lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + java.util.List + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Singular setter. A filter to return resources that match the specified lifecycle state. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder lifecycleState(VmClusterNetworkLifecycleState singularValue) { + return this.lifecycleState(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return VM cluster network resources that matches the specified value. */ + private Boolean isScanEnabled = null; + + /** + * A filter to return VM cluster network resources that matches the specified value. + * + * @param isScanEnabled the value to set + * @return this builder instance + */ + public Builder isScanEnabled(Boolean isScanEnabled) { + this.isScanEnabled = isScanEnabled; + return this; + } + + /** The maximum number of items to return in a page. */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * + * @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 you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token 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 that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field by which you want to sort. You can provide only one type of sort order. The + * default order for {@code timeCreated} is descending. The default order for {@code + * displayName} is ascending. If no value is specified, then {@code timeCreated} is the + * default. When listing software images within the same {@code version}, using {@code + * sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically + * increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + private SortBy sortBy = null; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The + * default order for {@code timeCreated} is descending. The default order for {@code + * displayName} is ascending. If no value is specified, then {@code timeCreated} is the + * default. When listing software images within the same {@code version}, using {@code + * sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically + * increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** Count of virtual machines in this VM cluster. */ + private Integer nodeCount = null; + + /** + * Count of virtual machines in this VM cluster. + * + * @param nodeCount the value to set + * @return this builder instance + */ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + return this; + } + + /** VM network consumer type. */ + private com.oracle.bmc.datacc.model.VmNetworkConsumerType vmNetworkConsumerType = null; + + /** + * VM network consumer type. + * + * @param vmNetworkConsumerType the value to set + * @return this builder instance + */ + public Builder vmNetworkConsumerType( + com.oracle.bmc.datacc.model.VmNetworkConsumerType vmNetworkConsumerType) { + this.vmNetworkConsumerType = vmNetworkConsumerType; + 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(ListVmClusterNetworksRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + isScanEnabled(o.getIsScanEnabled()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + infrastructureId(o.getInfrastructureId()); + nodeCount(o.getNodeCount()); + vmNetworkConsumerType(o.getVmNetworkConsumerType()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListVmClusterNetworksRequest 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 ListVmClusterNetworksRequest + */ + public ListVmClusterNetworksRequest build() { + ListVmClusterNetworksRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListVmClusterNetworksRequest 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 ListVmClusterNetworksRequest + */ + public ListVmClusterNetworksRequest buildWithoutInvocationCallback() { + ListVmClusterNetworksRequest request = new ListVmClusterNetworksRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.isScanEnabled = isScanEnabled; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.infrastructureId = infrastructureId; + request.nodeCount = nodeCount; + request.vmNetworkConsumerType = vmNetworkConsumerType; + return request; + // new ListVmClusterNetworksRequest(compartmentId, displayName, lifecycleState, + // isScanEnabled, limit, page, sortOrder, sortBy, opcRequestId, infrastructureId, + // nodeCount, vmNetworkConsumerType); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayName(displayName) + .lifecycleState(lifecycleState) + .isScanEnabled(isScanEnabled) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .infrastructureId(infrastructureId) + .nodeCount(nodeCount) + .vmNetworkConsumerType(vmNetworkConsumerType); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",isScanEnabled=").append(String.valueOf(this.isScanEnabled)); + 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(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(",vmNetworkConsumerType=").append(String.valueOf(this.vmNetworkConsumerType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVmClusterNetworksRequest)) { + return false; + } + + ListVmClusterNetworksRequest other = (ListVmClusterNetworksRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.isScanEnabled, other.isScanEnabled) + && 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) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals( + this.vmNetworkConsumerType, other.vmNetworkConsumerType); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.isScanEnabled == null ? 43 : this.isScanEnabled.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()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = + (result * PRIME) + + (this.vmNetworkConsumerType == null + ? 43 + : this.vmNetworkConsumerType.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmInstancesRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmInstancesRequest.java new file mode 100644 index 00000000000..dfbcaed41d5 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmInstancesRequest.java @@ -0,0 +1,555 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListVmInstancesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListVmInstancesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + private String displayName; + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** A filter to return resources that match the specified lifecycle state. */ + private java.util.List lifecycleState; + + /** A filter to return resources that match the specified lifecycle state. */ + public java.util.List + getLifecycleState() { + return lifecycleState; + } + /** The maximum number of items to return in a page. */ + private Integer limit; + + /** The maximum number of items to return in a page. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + private SortBy sortBy; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + BuildIdentifier("buildIdentifier"), + ; + + 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 by which you want to sort. You can provide only one type of sort order. The default + * order for {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. If no value is specified, then {@code timeCreated} is the default. When listing + * software images within the same {@code version}, using {@code sortBy=buildIdentifier} is + * recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string + * marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure Server Id. + */ + private String baseServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure Server Id. + */ + public String getBaseServerId() { + return baseServerId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListVmInstancesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that match the entire display name given. The match is case + * sensitive. + */ + private String displayName = null; + + /** + * A filter to return resources that match the entire display name given. The match is 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 resources that match the specified lifecycle state. */ + private java.util.List + lifecycleState = null; + + /** + * A filter to return resources that match the specified lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + java.util.List + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Singular setter. A filter to return resources that match the specified lifecycle state. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder lifecycleState(VmInstanceLifecycleState singularValue) { + return this.lifecycleState(java.util.Arrays.asList(singularValue)); + } + + /** The maximum number of items to return in a page. */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * + * @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 you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token 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 that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field by which you want to sort. You can provide only one type of sort order. The + * default order for {@code timeCreated} is descending. The default order for {@code + * displayName} is ascending. If no value is specified, then {@code timeCreated} is the + * default. When listing software images within the same {@code version}, using {@code + * sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically + * increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + */ + private SortBy sortBy = null; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The + * default order for {@code timeCreated} is descending. The default order for {@code + * displayName} is ascending. If no value is specified, then {@code timeCreated} is the + * default. When listing software images within the same {@code version}, using {@code + * sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically + * increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure Server Id. + */ + private String baseServerId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure Server Id. + * + * @param baseServerId the value to set + * @return this builder instance + */ + public Builder baseServerId(String baseServerId) { + this.baseServerId = baseServerId; + 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(ListVmInstancesRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + infrastructureId(o.getInfrastructureId()); + baseServerId(o.getBaseServerId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListVmInstancesRequest 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 ListVmInstancesRequest + */ + public ListVmInstancesRequest build() { + ListVmInstancesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListVmInstancesRequest 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 ListVmInstancesRequest + */ + public ListVmInstancesRequest buildWithoutInvocationCallback() { + ListVmInstancesRequest request = new ListVmInstancesRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.infrastructureId = infrastructureId; + request.baseServerId = baseServerId; + return request; + // new ListVmInstancesRequest(compartmentId, displayName, lifecycleState, limit, page, + // sortOrder, sortBy, opcRequestId, infrastructureId, baseServerId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayName(displayName) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .infrastructureId(infrastructureId) + .baseServerId(baseServerId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",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(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",baseServerId=").append(String.valueOf(this.baseServerId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVmInstancesRequest)) { + return false; + } + + ListVmInstancesRequest other = (ListVmInstancesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.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) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.baseServerId, other.baseServerId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.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()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.baseServerId == null ? 43 : this.baseServerId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestErrorsRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..5e066736681 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * ListWorkRequestErrorsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of items to return in a page. */ + private Integer limit; + + /** The maximum number of items to return in a page. */ + public Integer getLimit() { + return limit; + } + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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 you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token 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 in a page. */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + 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.sortOrder = sortOrder; + return request; + // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit, + // 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) + .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(",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.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.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestLogsRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..e7389ea8323 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,295 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of items to return in a page. */ + private Integer limit; + + /** The maximum number of items to return in a page. */ + public Integer getLimit() { + return limit; + } + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestLogsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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 you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token 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 in a page. */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The sort order that you want to use, which is either {@code ASC} or {@code DESC}. */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + 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.sortOrder = sortOrder; + return request; + // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit, 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) + .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(",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.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.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestsRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..45ee41e1c66 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestsRequest.java @@ -0,0 +1,313 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then treated as + * tenant scope (compartmentId filtering is not applied). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request resource. + */ + private String resourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request resource. + */ + public String getResourceId() { + return resourceId; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of items to return in a page. */ + private Integer limit; + + /** The maximum number of items to return in a page. */ + public Integer getLimit() { + return limit; + } + + 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. For list operations, you may provide the tenant [OCID] in this field. When a + * tenant OCID is provided, it will be validated against the caller's tenant and then + * treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request resource. + */ + private String resourceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request resource. + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** The client request identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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 you want to start retrieving results. This + * token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This + * token 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 in a page. */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + 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()); + resourceId(o.getResourceId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + 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.resourceId = resourceId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + return request; + // new ListWorkRequestsRequest(compartmentId, resourceId, opcRequestId, page, limit); + } + } + + /** + * 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) + .resourceId(resourceId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit); + } + + /** + * 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(",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(")"); + 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.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); + } + + @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.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()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/MigrateVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/MigrateVmInstanceRequest.java new file mode 100644 index 00000000000..96685229ee3 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/MigrateVmInstanceRequest.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use MigrateVmInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class MigrateVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + MigrateVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(MigrateVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of MigrateVmInstanceRequest 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 MigrateVmInstanceRequest + */ + public MigrateVmInstanceRequest build() { + MigrateVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of MigrateVmInstanceRequest 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 MigrateVmInstanceRequest + */ + public MigrateVmInstanceRequest buildWithoutInvocationCallback() { + MigrateVmInstanceRequest request = new MigrateVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new MigrateVmInstanceRequest(vmInstanceId, ifMatch, 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() + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .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(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 MigrateVmInstanceRequest)) { + return false; + } + + MigrateVmInstanceRequest other = (MigrateVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/RescheduleMaintenanceRunRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RescheduleMaintenanceRunRequest.java new file mode 100644 index 00000000000..6f0620ae651 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RescheduleMaintenanceRunRequest.java @@ -0,0 +1,356 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * RescheduleMaintenanceRunRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class RescheduleMaintenanceRunRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails> { + + /** The maintenance run OCID. */ + private String maintenanceRunId; + + /** The maintenance run OCID. */ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + /** The new scheduled time for the maintenance run. */ + private com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails + rescheduleMaintenanceRunDetails; + + /** The new scheduled time for the maintenance run. */ + public com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails + getRescheduleMaintenanceRunDetails() { + return rescheduleMaintenanceRunDetails; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can 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.datacc.model.RescheduleMaintenanceRunDetails getBody$() { + return rescheduleMaintenanceRunDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RescheduleMaintenanceRunRequest, + com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The maintenance run OCID. */ + private String maintenanceRunId = null; + + /** + * The maintenance run OCID. + * + * @param maintenanceRunId the value to set + * @return this builder instance + */ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + return this; + } + + /** The new scheduled time for the maintenance run. */ + private com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails + rescheduleMaintenanceRunDetails = null; + + /** + * The new scheduled time for the maintenance run. + * + * @param rescheduleMaintenanceRunDetails the value to set + * @return this builder instance + */ + public Builder rescheduleMaintenanceRunDetails( + com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails + rescheduleMaintenanceRunDetails) { + this.rescheduleMaintenanceRunDetails = rescheduleMaintenanceRunDetails; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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 the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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(RescheduleMaintenanceRunRequest o) { + maintenanceRunId(o.getMaintenanceRunId()); + rescheduleMaintenanceRunDetails(o.getRescheduleMaintenanceRunDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RescheduleMaintenanceRunRequest 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 RescheduleMaintenanceRunRequest + */ + public RescheduleMaintenanceRunRequest build() { + RescheduleMaintenanceRunRequest 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.datacc.model.RescheduleMaintenanceRunDetails body) { + rescheduleMaintenanceRunDetails(body); + return this; + } + + /** + * Build the instance of RescheduleMaintenanceRunRequest 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 RescheduleMaintenanceRunRequest + */ + public RescheduleMaintenanceRunRequest buildWithoutInvocationCallback() { + RescheduleMaintenanceRunRequest request = new RescheduleMaintenanceRunRequest(); + request.maintenanceRunId = maintenanceRunId; + request.rescheduleMaintenanceRunDetails = rescheduleMaintenanceRunDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new RescheduleMaintenanceRunRequest(maintenanceRunId, + // rescheduleMaintenanceRunDetails, 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() + .maintenanceRunId(maintenanceRunId) + .rescheduleMaintenanceRunDetails(rescheduleMaintenanceRunDetails) + .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(",maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + sb.append(",rescheduleMaintenanceRunDetails=") + .append(String.valueOf(this.rescheduleMaintenanceRunDetails)); + 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 RescheduleMaintenanceRunRequest)) { + return false; + } + + RescheduleMaintenanceRunRequest other = (RescheduleMaintenanceRunRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals( + this.rescheduleMaintenanceRunDetails, other.rescheduleMaintenanceRunDetails) + && 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.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = + (result * PRIME) + + (this.rescheduleMaintenanceRunDetails == null + ? 43 + : this.rescheduleMaintenanceRunDetails.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/RestartVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RestartVmInstanceRequest.java new file mode 100644 index 00000000000..851d9a73dac --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RestartVmInstanceRequest.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use RestartVmInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class RestartVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RestartVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(RestartVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RestartVmInstanceRequest 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 RestartVmInstanceRequest + */ + public RestartVmInstanceRequest build() { + RestartVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RestartVmInstanceRequest 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 RestartVmInstanceRequest + */ + public RestartVmInstanceRequest buildWithoutInvocationCallback() { + RestartVmInstanceRequest request = new RestartVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new RestartVmInstanceRequest(vmInstanceId, ifMatch, 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() + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .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(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 RestartVmInstanceRequest)) { + return false; + } + + RestartVmInstanceRequest other = (RestartVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleInfrastructureStorageRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleInfrastructureStorageRequest.java new file mode 100644 index 00000000000..963b2c8afa8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleInfrastructureStorageRequest.java @@ -0,0 +1,367 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * ScaleInfrastructureStorageRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ScaleInfrastructureStorageRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails> { + + /** The scale storage details for the Database Infrastructure. */ + private com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails + scaleInfrastructureStorageDetails; + + /** The scale storage details for the Database Infrastructure. */ + public com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails + getScaleInfrastructureStorageDetails() { + return scaleInfrastructureStorageDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails getBody$() { + return scaleInfrastructureStorageDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ScaleInfrastructureStorageRequest, + com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The scale storage details for the Database Infrastructure. */ + private com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails + scaleInfrastructureStorageDetails = null; + + /** + * The scale storage details for the Database Infrastructure. + * + * @param scaleInfrastructureStorageDetails the value to set + * @return this builder instance + */ + public Builder scaleInfrastructureStorageDetails( + com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails + scaleInfrastructureStorageDetails) { + this.scaleInfrastructureStorageDetails = scaleInfrastructureStorageDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(ScaleInfrastructureStorageRequest o) { + scaleInfrastructureStorageDetails(o.getScaleInfrastructureStorageDetails()); + infrastructureId(o.getInfrastructureId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ScaleInfrastructureStorageRequest 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 ScaleInfrastructureStorageRequest + */ + public ScaleInfrastructureStorageRequest build() { + ScaleInfrastructureStorageRequest 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.datacc.model.ScaleInfrastructureStorageDetails body) { + scaleInfrastructureStorageDetails(body); + return this; + } + + /** + * Build the instance of ScaleInfrastructureStorageRequest 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 ScaleInfrastructureStorageRequest + */ + public ScaleInfrastructureStorageRequest buildWithoutInvocationCallback() { + ScaleInfrastructureStorageRequest request = new ScaleInfrastructureStorageRequest(); + request.scaleInfrastructureStorageDetails = scaleInfrastructureStorageDetails; + request.infrastructureId = infrastructureId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ScaleInfrastructureStorageRequest(scaleInfrastructureStorageDetails, + // infrastructureId, ifMatch, 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() + .scaleInfrastructureStorageDetails(scaleInfrastructureStorageDetails) + .infrastructureId(infrastructureId) + .ifMatch(ifMatch) + .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(",scaleInfrastructureStorageDetails=") + .append(String.valueOf(this.scaleInfrastructureStorageDetails)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 ScaleInfrastructureStorageRequest)) { + return false; + } + + ScaleInfrastructureStorageRequest other = (ScaleInfrastructureStorageRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.scaleInfrastructureStorageDetails, + other.scaleInfrastructureStorageDetails) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.scaleInfrastructureStorageDetails == null + ? 43 + : this.scaleInfrastructureStorageDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleVmInstanceRequest.java new file mode 100644 index 00000000000..10568646a50 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleVmInstanceRequest.java @@ -0,0 +1,357 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ScaleVmInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ScaleVmInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ScaleVmInstanceDetails> { + + /** Scale the VM instance. */ + private com.oracle.bmc.datacc.model.ScaleVmInstanceDetails scaleVmInstanceDetails; + + /** Scale the VM instance. */ + public com.oracle.bmc.datacc.model.ScaleVmInstanceDetails getScaleVmInstanceDetails() { + return scaleVmInstanceDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ScaleVmInstanceDetails getBody$() { + return scaleVmInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ScaleVmInstanceRequest, com.oracle.bmc.datacc.model.ScaleVmInstanceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Scale the VM instance. */ + private com.oracle.bmc.datacc.model.ScaleVmInstanceDetails scaleVmInstanceDetails = null; + + /** + * Scale the VM instance. + * + * @param scaleVmInstanceDetails the value to set + * @return this builder instance + */ + public Builder scaleVmInstanceDetails( + com.oracle.bmc.datacc.model.ScaleVmInstanceDetails scaleVmInstanceDetails) { + this.scaleVmInstanceDetails = scaleVmInstanceDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(ScaleVmInstanceRequest o) { + scaleVmInstanceDetails(o.getScaleVmInstanceDetails()); + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ScaleVmInstanceRequest 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 ScaleVmInstanceRequest + */ + public ScaleVmInstanceRequest build() { + ScaleVmInstanceRequest 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.datacc.model.ScaleVmInstanceDetails body) { + scaleVmInstanceDetails(body); + return this; + } + + /** + * Build the instance of ScaleVmInstanceRequest 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 ScaleVmInstanceRequest + */ + public ScaleVmInstanceRequest buildWithoutInvocationCallback() { + ScaleVmInstanceRequest request = new ScaleVmInstanceRequest(); + request.scaleVmInstanceDetails = scaleVmInstanceDetails; + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ScaleVmInstanceRequest(scaleVmInstanceDetails, vmInstanceId, ifMatch, + // 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() + .scaleVmInstanceDetails(scaleVmInstanceDetails) + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .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(",scaleVmInstanceDetails=").append(String.valueOf(this.scaleVmInstanceDetails)); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 ScaleVmInstanceRequest)) { + return false; + } + + ScaleVmInstanceRequest other = (ScaleVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.scaleVmInstanceDetails, other.scaleVmInstanceDetails) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.scaleVmInstanceDetails == null + ? 43 + : this.scaleVmInstanceDetails.hashCode()); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/StartVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StartVmInstanceRequest.java new file mode 100644 index 00000000000..0824ec91fdd --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StartVmInstanceRequest.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use StartVmInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class StartVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StartVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(StartVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StartVmInstanceRequest 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 StartVmInstanceRequest + */ + public StartVmInstanceRequest build() { + StartVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of StartVmInstanceRequest 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 StartVmInstanceRequest + */ + public StartVmInstanceRequest buildWithoutInvocationCallback() { + StartVmInstanceRequest request = new StartVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new StartVmInstanceRequest(vmInstanceId, ifMatch, 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() + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .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(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 StartVmInstanceRequest)) { + return false; + } + + StartVmInstanceRequest other = (StartVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/StopVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StopVmInstanceRequest.java new file mode 100644 index 00000000000..08f4c8bbf9f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StopVmInstanceRequest.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use StopVmInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class StopVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StopVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(StopVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StopVmInstanceRequest 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 StopVmInstanceRequest + */ + public StopVmInstanceRequest build() { + StopVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of StopVmInstanceRequest 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 StopVmInstanceRequest + */ + public StopVmInstanceRequest buildWithoutInvocationCallback() { + StopVmInstanceRequest request = new StopVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new StopVmInstanceRequest(vmInstanceId, ifMatch, 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() + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .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(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 StopVmInstanceRequest)) { + return false; + } + + StopVmInstanceRequest other = (StopVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateInfrastructureRequest.java new file mode 100644 index 00000000000..9c9d0b29d36 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateInfrastructureRequest.java @@ -0,0 +1,313 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use UpdateInfrastructureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateInfrastructureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.UpdateInfrastructureDetails> { + + /** The updated Database Infrastructure details. */ + private com.oracle.bmc.datacc.model.UpdateInfrastructureDetails updateInfrastructureDetails; + + /** The updated Database Infrastructure details. */ + public com.oracle.bmc.datacc.model.UpdateInfrastructureDetails + getUpdateInfrastructureDetails() { + return updateInfrastructureDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.UpdateInfrastructureDetails getBody$() { + return updateInfrastructureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateInfrastructureRequest, + com.oracle.bmc.datacc.model.UpdateInfrastructureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The updated Database Infrastructure details. */ + private com.oracle.bmc.datacc.model.UpdateInfrastructureDetails + updateInfrastructureDetails = null; + + /** + * The updated Database Infrastructure details. + * + * @param updateInfrastructureDetails the value to set + * @return this builder instance + */ + public Builder updateInfrastructureDetails( + com.oracle.bmc.datacc.model.UpdateInfrastructureDetails + updateInfrastructureDetails) { + this.updateInfrastructureDetails = updateInfrastructureDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(UpdateInfrastructureRequest o) { + updateInfrastructureDetails(o.getUpdateInfrastructureDetails()); + infrastructureId(o.getInfrastructureId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateInfrastructureRequest 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 UpdateInfrastructureRequest + */ + public UpdateInfrastructureRequest build() { + UpdateInfrastructureRequest 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.datacc.model.UpdateInfrastructureDetails body) { + updateInfrastructureDetails(body); + return this; + } + + /** + * Build the instance of UpdateInfrastructureRequest 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 UpdateInfrastructureRequest + */ + public UpdateInfrastructureRequest buildWithoutInvocationCallback() { + UpdateInfrastructureRequest request = new UpdateInfrastructureRequest(); + request.updateInfrastructureDetails = updateInfrastructureDetails; + request.infrastructureId = infrastructureId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateInfrastructureRequest(updateInfrastructureDetails, infrastructureId, + // 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() + .updateInfrastructureDetails(updateInfrastructureDetails) + .infrastructureId(infrastructureId) + .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(",updateInfrastructureDetails=") + .append(String.valueOf(this.updateInfrastructureDetails)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + 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 UpdateInfrastructureRequest)) { + return false; + } + + UpdateInfrastructureRequest other = (UpdateInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateInfrastructureDetails, other.updateInfrastructureDetails) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && 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.updateInfrastructureDetails == null + ? 43 + : this.updateInfrastructureDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateMaintenanceRunRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateMaintenanceRunRequest.java new file mode 100644 index 00000000000..b49158a8027 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateMaintenanceRunRequest.java @@ -0,0 +1,303 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use UpdateMaintenanceRunRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateMaintenanceRunRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails> { + + /** The updated maintenance run details. */ + private com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails updateMaintenanceRunDetails; + + /** The updated maintenance run details. */ + public com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails + getUpdateMaintenanceRunDetails() { + return updateMaintenanceRunDetails; + } + /** The maintenance run OCID. */ + private String maintenanceRunId; + + /** The maintenance run OCID. */ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails getBody$() { + return updateMaintenanceRunDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateMaintenanceRunRequest, + com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The updated maintenance run details. */ + private com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails + updateMaintenanceRunDetails = null; + + /** + * The updated maintenance run details. + * + * @param updateMaintenanceRunDetails the value to set + * @return this builder instance + */ + public Builder updateMaintenanceRunDetails( + com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails + updateMaintenanceRunDetails) { + this.updateMaintenanceRunDetails = updateMaintenanceRunDetails; + return this; + } + + /** The maintenance run OCID. */ + private String maintenanceRunId = null; + + /** + * The maintenance run OCID. + * + * @param maintenanceRunId the value to set + * @return this builder instance + */ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(UpdateMaintenanceRunRequest o) { + updateMaintenanceRunDetails(o.getUpdateMaintenanceRunDetails()); + maintenanceRunId(o.getMaintenanceRunId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateMaintenanceRunRequest 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 UpdateMaintenanceRunRequest + */ + public UpdateMaintenanceRunRequest build() { + UpdateMaintenanceRunRequest 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.datacc.model.UpdateMaintenanceRunDetails body) { + updateMaintenanceRunDetails(body); + return this; + } + + /** + * Build the instance of UpdateMaintenanceRunRequest 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 UpdateMaintenanceRunRequest + */ + public UpdateMaintenanceRunRequest buildWithoutInvocationCallback() { + UpdateMaintenanceRunRequest request = new UpdateMaintenanceRunRequest(); + request.updateMaintenanceRunDetails = updateMaintenanceRunDetails; + request.maintenanceRunId = maintenanceRunId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateMaintenanceRunRequest(updateMaintenanceRunDetails, maintenanceRunId, + // 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() + .updateMaintenanceRunDetails(updateMaintenanceRunDetails) + .maintenanceRunId(maintenanceRunId) + .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(",updateMaintenanceRunDetails=") + .append(String.valueOf(this.updateMaintenanceRunDetails)); + sb.append(",maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + 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 UpdateMaintenanceRunRequest)) { + return false; + } + + UpdateMaintenanceRunRequest other = (UpdateMaintenanceRunRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateMaintenanceRunDetails, other.updateMaintenanceRunDetails) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && 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.updateMaintenanceRunDetails == null + ? 43 + : this.updateMaintenanceRunDetails.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmClusterNetworkRequest.java new file mode 100644 index 00000000000..c15b9f79ac5 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmClusterNetworkRequest.java @@ -0,0 +1,316 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * UpdateVmClusterNetworkRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateVmClusterNetworkRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails> { + + /** The updated VM cluster details. */ + private com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails updateVmClusterNetworkDetails; + + /** The updated VM cluster details. */ + public com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails + getUpdateVmClusterNetworkDetails() { + return updateVmClusterNetworkDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + private String vmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + public String getVmClusterNetworkId() { + return vmClusterNetworkId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails getBody$() { + return updateVmClusterNetworkDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateVmClusterNetworkRequest, + com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The updated VM cluster details. */ + private com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails + updateVmClusterNetworkDetails = null; + + /** + * The updated VM cluster details. + * + * @param updateVmClusterNetworkDetails the value to set + * @return this builder instance + */ + public Builder updateVmClusterNetworkDetails( + com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails + updateVmClusterNetworkDetails) { + this.updateVmClusterNetworkDetails = updateVmClusterNetworkDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + */ + private String vmClusterNetworkId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + * + * @param vmClusterNetworkId the value to set + * @return this builder instance + */ + public Builder vmClusterNetworkId(String vmClusterNetworkId) { + this.vmClusterNetworkId = vmClusterNetworkId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(UpdateVmClusterNetworkRequest o) { + updateVmClusterNetworkDetails(o.getUpdateVmClusterNetworkDetails()); + vmClusterNetworkId(o.getVmClusterNetworkId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateVmClusterNetworkRequest 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 UpdateVmClusterNetworkRequest + */ + public UpdateVmClusterNetworkRequest build() { + UpdateVmClusterNetworkRequest 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.datacc.model.UpdateVmClusterNetworkDetails body) { + updateVmClusterNetworkDetails(body); + return this; + } + + /** + * Build the instance of UpdateVmClusterNetworkRequest 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 UpdateVmClusterNetworkRequest + */ + public UpdateVmClusterNetworkRequest buildWithoutInvocationCallback() { + UpdateVmClusterNetworkRequest request = new UpdateVmClusterNetworkRequest(); + request.updateVmClusterNetworkDetails = updateVmClusterNetworkDetails; + request.vmClusterNetworkId = vmClusterNetworkId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateVmClusterNetworkRequest(updateVmClusterNetworkDetails, vmClusterNetworkId, + // 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() + .updateVmClusterNetworkDetails(updateVmClusterNetworkDetails) + .vmClusterNetworkId(vmClusterNetworkId) + .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(",updateVmClusterNetworkDetails=") + .append(String.valueOf(this.updateVmClusterNetworkDetails)); + sb.append(",vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); + 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 UpdateVmClusterNetworkRequest)) { + return false; + } + + UpdateVmClusterNetworkRequest other = (UpdateVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateVmClusterNetworkDetails, other.updateVmClusterNetworkDetails) + && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) + && 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.updateVmClusterNetworkDetails == null + ? 43 + : this.updateVmClusterNetworkDetails.hashCode()); + result = + (result * PRIME) + + (this.vmClusterNetworkId == null + ? 43 + : this.vmClusterNetworkId.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmInstanceRequest.java new file mode 100644 index 00000000000..bd8be10070e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmInstanceRequest.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use UpdateVmInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateVmInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.UpdateVmInstanceDetails> { + + /** The updated VM instance details. */ + private com.oracle.bmc.datacc.model.UpdateVmInstanceDetails updateVmInstanceDetails; + + /** The updated VM instance details. */ + public com.oracle.bmc.datacc.model.UpdateVmInstanceDetails getUpdateVmInstanceDetails() { + return updateVmInstanceDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.UpdateVmInstanceDetails getBody$() { + return updateVmInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateVmInstanceRequest, com.oracle.bmc.datacc.model.UpdateVmInstanceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The updated VM instance details. */ + private com.oracle.bmc.datacc.model.UpdateVmInstanceDetails updateVmInstanceDetails = null; + + /** + * The updated VM instance details. + * + * @param updateVmInstanceDetails the value to set + * @return this builder instance + */ + public Builder updateVmInstanceDetails( + com.oracle.bmc.datacc.model.UpdateVmInstanceDetails updateVmInstanceDetails) { + this.updateVmInstanceDetails = updateVmInstanceDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM instance. + * + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(UpdateVmInstanceRequest o) { + updateVmInstanceDetails(o.getUpdateVmInstanceDetails()); + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateVmInstanceRequest 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 UpdateVmInstanceRequest + */ + public UpdateVmInstanceRequest build() { + UpdateVmInstanceRequest 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.datacc.model.UpdateVmInstanceDetails body) { + updateVmInstanceDetails(body); + return this; + } + + /** + * Build the instance of UpdateVmInstanceRequest 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 UpdateVmInstanceRequest + */ + public UpdateVmInstanceRequest buildWithoutInvocationCallback() { + UpdateVmInstanceRequest request = new UpdateVmInstanceRequest(); + request.updateVmInstanceDetails = updateVmInstanceDetails; + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateVmInstanceRequest(updateVmInstanceDetails, vmInstanceId, 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() + .updateVmInstanceDetails(updateVmInstanceDetails) + .vmInstanceId(vmInstanceId) + .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(",updateVmInstanceDetails=").append(String.valueOf(this.updateVmInstanceDetails)); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + 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 UpdateVmInstanceRequest)) { + return false; + } + + UpdateVmInstanceRequest other = (UpdateVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateVmInstanceDetails, other.updateVmInstanceDetails) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && 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.updateVmInstanceDetails == null + ? 43 + : this.updateVmInstanceDetails.hashCode()); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateInfrastructureRequest.java new file mode 100644 index 00000000000..8c8cc5a7891 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateInfrastructureRequest.java @@ -0,0 +1,365 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * ValidateInfrastructureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ValidateInfrastructureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ValidateInfrastructureDetails> { + + /** The validation details for the Database Infrastructure. */ + private com.oracle.bmc.datacc.model.ValidateInfrastructureDetails validateInfrastructureDetails; + + /** The validation details for the Database Infrastructure. */ + public com.oracle.bmc.datacc.model.ValidateInfrastructureDetails + getValidateInfrastructureDetails() { + return validateInfrastructureDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ValidateInfrastructureDetails getBody$() { + return validateInfrastructureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateInfrastructureRequest, + com.oracle.bmc.datacc.model.ValidateInfrastructureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The validation details for the Database Infrastructure. */ + private com.oracle.bmc.datacc.model.ValidateInfrastructureDetails + validateInfrastructureDetails = null; + + /** + * The validation details for the Database Infrastructure. + * + * @param validateInfrastructureDetails the value to set + * @return this builder instance + */ + public Builder validateInfrastructureDetails( + com.oracle.bmc.datacc.model.ValidateInfrastructureDetails + validateInfrastructureDetails) { + this.validateInfrastructureDetails = validateInfrastructureDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Database Infrastructure. + * + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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(ValidateInfrastructureRequest o) { + validateInfrastructureDetails(o.getValidateInfrastructureDetails()); + infrastructureId(o.getInfrastructureId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateInfrastructureRequest 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 ValidateInfrastructureRequest + */ + public ValidateInfrastructureRequest build() { + ValidateInfrastructureRequest 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.datacc.model.ValidateInfrastructureDetails body) { + validateInfrastructureDetails(body); + return this; + } + + /** + * Build the instance of ValidateInfrastructureRequest 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 ValidateInfrastructureRequest + */ + public ValidateInfrastructureRequest buildWithoutInvocationCallback() { + ValidateInfrastructureRequest request = new ValidateInfrastructureRequest(); + request.validateInfrastructureDetails = validateInfrastructureDetails; + request.infrastructureId = infrastructureId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ValidateInfrastructureRequest(validateInfrastructureDetails, infrastructureId, + // ifMatch, 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() + .validateInfrastructureDetails(validateInfrastructureDetails) + .infrastructureId(infrastructureId) + .ifMatch(ifMatch) + .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(",validateInfrastructureDetails=") + .append(String.valueOf(this.validateInfrastructureDetails)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 ValidateInfrastructureRequest)) { + return false; + } + + ValidateInfrastructureRequest other = (ValidateInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.validateInfrastructureDetails, other.validateInfrastructureDetails) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && 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.validateInfrastructureDetails == null + ? 43 + : this.validateInfrastructureDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.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-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateVmClusterNetworkRequest.java new file mode 100644 index 00000000000..41ad5e43a1f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateVmClusterNetworkRequest.java @@ -0,0 +1,305 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use + * ValidateVmClusterNetworkRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ValidateVmClusterNetworkRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + private String vmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster network. + */ + public String getVmClusterNetworkId() { + return vmClusterNetworkId; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource was deleted and purged from the system, then a retry of the original + * creation request can be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request identifier. */ + private String opcRequestId; + + /** The client request identifier. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + private String ifMatch; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the Etag that you provide matches the + * current Etag value for the resource. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateVmClusterNetworkRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + */ + private String vmClusterNetworkId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * VM cluster network. + * + * @param vmClusterNetworkId the value to set + * @return this builder instance + */ + public Builder vmClusterNetworkId(String vmClusterNetworkId) { + this.vmClusterNetworkId = vmClusterNetworkId; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of + * processing that same action again, in the event of a timeout or server error. Retry + * tokens expire after 24 hours, but can be invalidated before then due to conflicting + * operations. For example, if a resource was deleted and purged from the system, then a + * retry of the original creation request can 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 identifier. */ + private String opcRequestId = null; + + /** + * The client request identifier. + * + * @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 + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for the resource. + */ + private String ifMatch = null; + + /** + * For Optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * 'if-match' parameter to the value of the Etag from a previous GET or POST response for + * that resource. The resource is updated or deleted only if the Etag that you provide + * matches the current Etag value for 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(ValidateVmClusterNetworkRequest o) { + vmClusterNetworkId(o.getVmClusterNetworkId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateVmClusterNetworkRequest 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 ValidateVmClusterNetworkRequest + */ + public ValidateVmClusterNetworkRequest build() { + ValidateVmClusterNetworkRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ValidateVmClusterNetworkRequest 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 ValidateVmClusterNetworkRequest + */ + public ValidateVmClusterNetworkRequest buildWithoutInvocationCallback() { + ValidateVmClusterNetworkRequest request = new ValidateVmClusterNetworkRequest(); + request.vmClusterNetworkId = vmClusterNetworkId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ValidateVmClusterNetworkRequest(vmClusterNetworkId, 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() + .vmClusterNetworkId(vmClusterNetworkId) + .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(",vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); + 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 ValidateVmClusterNetworkRequest)) { + return false; + } + + ValidateVmClusterNetworkRequest other = (ValidateVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) + && 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.vmClusterNetworkId == null + ? 43 + : this.vmClusterNetworkId.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-datacc/src/main/java/com/oracle/bmc/datacc/responses/ActivateInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ActivateInfrastructureResponse.java new file mode 100644 index 00000000000..3fe560d9e07 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ActivateInfrastructureResponse.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ActivateInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code Infrastructure} instance. */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned {@code Infrastructure} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.Infrastructure getInfrastructure() { + return infrastructure; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "infrastructure" + }) + private ActivateInfrastructureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.infrastructure = infrastructure; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ActivateInfrastructureResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code Infrastructure} instance. */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned {@code Infrastructure} instance. + * + * @param infrastructure the value to set + * @return this builder + */ + public Builder infrastructure(com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + this.infrastructure = infrastructure; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ActivateInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + infrastructure(o.getInfrastructure()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ActivateInfrastructureResponse build() { + return new ActivateInfrastructureResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + infrastructure); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",infrastructure=").append(String.valueOf(infrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateInfrastructureResponse)) { + return false; + } + + ActivateInfrastructureResponse other = (ActivateInfrastructureResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.infrastructure, other.infrastructure); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.infrastructure == null ? 43 : this.infrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeInfrastructureCompartmentResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeInfrastructureCompartmentResponse.java new file mode 100644 index 00000000000..cf4c5254d88 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeInfrastructureCompartmentResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeInfrastructureCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeInfrastructureCompartmentResponse( + 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< + ChangeInfrastructureCompartmentResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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(ChangeInfrastructureCompartmentResponse 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 ChangeInfrastructureCompartmentResponse build() { + return new ChangeInfrastructureCompartmentResponse( + __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 ChangeInfrastructureCompartmentResponse)) { + return false; + } + + ChangeInfrastructureCompartmentResponse other = (ChangeInfrastructureCompartmentResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmClusterNetworkCompartmentResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmClusterNetworkCompartmentResponse.java new file mode 100644 index 00000000000..9f3d4cf1afa --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmClusterNetworkCompartmentResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeVmClusterNetworkCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeVmClusterNetworkCompartmentResponse( + 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< + ChangeVmClusterNetworkCompartmentResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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(ChangeVmClusterNetworkCompartmentResponse 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 ChangeVmClusterNetworkCompartmentResponse build() { + return new ChangeVmClusterNetworkCompartmentResponse( + __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 ChangeVmClusterNetworkCompartmentResponse)) { + return false; + } + + ChangeVmClusterNetworkCompartmentResponse other = + (ChangeVmClusterNetworkCompartmentResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmInstanceCompartmentResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmInstanceCompartmentResponse.java new file mode 100644 index 00000000000..023a74199e3 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmInstanceCompartmentResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeVmInstanceCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeVmInstanceCompartmentResponse( + 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< + ChangeVmInstanceCompartmentResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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(ChangeVmInstanceCompartmentResponse 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 ChangeVmInstanceCompartmentResponse build() { + return new ChangeVmInstanceCompartmentResponse( + __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 ChangeVmInstanceCompartmentResponse)) { + return false; + } + + ChangeVmInstanceCompartmentResponse other = (ChangeVmInstanceCompartmentResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateInfrastructureResponse.java new file mode 100644 index 00000000000..c1a5b2b58a8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateInfrastructureResponse.java @@ -0,0 +1,292 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code Infrastructure} instance. */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned {@code Infrastructure} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.Infrastructure getInfrastructure() { + return infrastructure; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "infrastructure" + }) + private CreateInfrastructureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.infrastructure = infrastructure; + } + + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code Infrastructure} instance. */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned {@code Infrastructure} instance. + * + * @param infrastructure the value to set + * @return this builder + */ + public Builder infrastructure(com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + this.infrastructure = infrastructure; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + infrastructure(o.getInfrastructure()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateInfrastructureResponse build() { + return new CreateInfrastructureResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + infrastructure); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",infrastructure=").append(String.valueOf(infrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateInfrastructureResponse)) { + return false; + } + + CreateInfrastructureResponse other = (CreateInfrastructureResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.infrastructure, other.infrastructure); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.infrastructure == null ? 43 : this.infrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmClusterNetworkResponse.java new file mode 100644 index 00000000000..f712b5adc6c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmClusterNetworkResponse.java @@ -0,0 +1,294 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateVmClusterNetworkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code VmClusterNetwork} instance. */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned {@code VmClusterNetwork} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.VmClusterNetwork getVmClusterNetwork() { + return vmClusterNetwork; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "vmClusterNetwork" + }) + private CreateVmClusterNetworkResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmClusterNetwork = vmClusterNetwork; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateVmClusterNetworkResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code VmClusterNetwork} instance. */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned {@code VmClusterNetwork} instance. + * + * @param vmClusterNetwork the value to set + * @return this builder + */ + public Builder vmClusterNetwork( + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + this.vmClusterNetwork = vmClusterNetwork; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateVmClusterNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmClusterNetwork(o.getVmClusterNetwork()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateVmClusterNetworkResponse build() { + return new CreateVmClusterNetworkResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + vmClusterNetwork); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmClusterNetwork=").append(String.valueOf(vmClusterNetwork)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVmClusterNetworkResponse)) { + return false; + } + + CreateVmClusterNetworkResponse other = (CreateVmClusterNetworkResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmClusterNetwork, other.vmClusterNetwork); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.vmClusterNetwork == null ? 43 : this.vmClusterNetwork.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmInstanceResponse.java new file mode 100644 index 00000000000..22806c8a59c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmInstanceResponse.java @@ -0,0 +1,290 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code VmInstance} instance. */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned {@code VmInstance} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.VmInstance getVmInstance() { + return vmInstance; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "vmInstance" + }) + private CreateVmInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmInstance vmInstance) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmInstance = vmInstance; + } + + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code VmInstance} instance. */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned {@code VmInstance} instance. + * + * @param vmInstance the value to set + * @return this builder + */ + public Builder vmInstance(com.oracle.bmc.datacc.model.VmInstance vmInstance) { + this.vmInstance = vmInstance; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmInstance(o.getVmInstance()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateVmInstanceResponse build() { + return new CreateVmInstanceResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + vmInstance); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmInstance=").append(String.valueOf(vmInstance)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVmInstanceResponse)) { + return false; + } + + CreateVmInstanceResponse other = (CreateVmInstanceResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmInstance, other.vmInstance); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.vmInstance == null ? 43 : this.vmInstance.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteInfrastructureResponse.java new file mode 100644 index 00000000000..b9964b3b096 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteInfrastructureResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteInfrastructureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the 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(DeleteInfrastructureResponse 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 DeleteInfrastructureResponse build() { + return new DeleteInfrastructureResponse( + __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 DeleteInfrastructureResponse)) { + return false; + } + + DeleteInfrastructureResponse other = (DeleteInfrastructureResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmClusterNetworkResponse.java new file mode 100644 index 00000000000..d69cd234ee6 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmClusterNetworkResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteVmClusterNetworkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteVmClusterNetworkResponse( + 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< + DeleteVmClusterNetworkResponse> { + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the 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(DeleteVmClusterNetworkResponse 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 DeleteVmClusterNetworkResponse build() { + return new DeleteVmClusterNetworkResponse( + __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 DeleteVmClusterNetworkResponse)) { + return false; + } + + DeleteVmClusterNetworkResponse other = (DeleteVmClusterNetworkResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmInstanceResponse.java new file mode 100644 index 00000000000..ce482b90921 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmInstanceResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteVmInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the 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(DeleteVmInstanceResponse 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 DeleteVmInstanceResponse build() { + return new DeleteVmInstanceResponse( + __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 DeleteVmInstanceResponse)) { + return false; + } + + DeleteVmInstanceResponse other = (DeleteVmInstanceResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureConfigFileResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureConfigFileResponse.java new file mode 100644 index 00000000000..0ff2ec1b042 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureConfigFileResponse.java @@ -0,0 +1,292 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DownloadInfrastructureConfigFileResponse extends com.oracle.bmc.responses.BmcResponse { + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** Size of the file. */ + private Long contentLength; + + /** + * Size of the file. + * + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** + * The date and time the configuration file was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + private java.util.Date lastModified; + + /** + * The date and time the configuration file was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "contentLength", + "lastModified", + "inputStream" + }) + private DownloadInfrastructureConfigFileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Long contentLength, + java.util.Date lastModified, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.contentLength = contentLength; + this.lastModified = lastModified; + this.inputStream = inputStream; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DownloadInfrastructureConfigFileResponse> { + 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** Size of the file. */ + private Long contentLength; + + /** + * Size of the file. + * + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * The date and time the configuration file was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + private java.util.Date lastModified; + + /** + * The date and time the configuration file was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DownloadInfrastructureConfigFileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + contentLength(o.getContentLength()); + lastModified(o.getLastModified()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DownloadInfrastructureConfigFileResponse build() { + return new DownloadInfrastructureConfigFileResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + contentLength, + lastModified, + inputStream); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",contentLength=").append(String.valueOf(contentLength)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadInfrastructureConfigFileResponse)) { + return false; + } + + DownloadInfrastructureConfigFileResponse other = + (DownloadInfrastructureConfigFileResponse) 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.contentLength, other.contentLength) + && java.util.Objects.equals(this.lastModified, other.lastModified) + && java.util.Objects.equals(this.inputStream, other.inputStream); + } + + @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.contentLength == null ? 43 : this.contentLength.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureValidationScriptResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureValidationScriptResponse.java new file mode 100644 index 00000000000..7a2d6a97d0c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureValidationScriptResponse.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DownloadInfrastructureValidationScriptResponse + extends com.oracle.bmc.responses.BmcResponse { + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** Size of the file. */ + private Long contentLength; + + /** + * Size of the file. + * + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** + * The date and time the configuration file was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + private java.util.Date lastModified; + + /** + * The date and time the configuration file was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "contentLength", + "lastModified", + "inputStream" + }) + private DownloadInfrastructureValidationScriptResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Long contentLength, + java.util.Date lastModified, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.contentLength = contentLength; + this.lastModified = lastModified; + this.inputStream = inputStream; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DownloadInfrastructureValidationScriptResponse> { + 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** Size of the file. */ + private Long contentLength; + + /** + * Size of the file. + * + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * The date and time the configuration file was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + private java.util.Date lastModified; + + /** + * The date and time the configuration file was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DownloadInfrastructureValidationScriptResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + contentLength(o.getContentLength()); + lastModified(o.getLastModified()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DownloadInfrastructureValidationScriptResponse build() { + return new DownloadInfrastructureValidationScriptResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + contentLength, + lastModified, + inputStream); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",contentLength=").append(String.valueOf(contentLength)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadInfrastructureValidationScriptResponse)) { + return false; + } + + DownloadInfrastructureValidationScriptResponse other = + (DownloadInfrastructureValidationScriptResponse) 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.contentLength, other.contentLength) + && java.util.Objects.equals(this.lastModified, other.lastModified) + && java.util.Objects.equals(this.inputStream, other.inputStream); + } + + @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.contentLength == null ? 43 : this.contentLength.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GenerateRecommendedVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GenerateRecommendedVmClusterNetworkResponse.java new file mode 100644 index 00000000000..75c9759ea6e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GenerateRecommendedVmClusterNetworkResponse.java @@ -0,0 +1,304 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GenerateRecommendedVmClusterNetworkResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code CreateVmClusterNetworkDetails} instance. */ + private com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails createVmClusterNetworkDetails; + + /** + * The returned {@code CreateVmClusterNetworkDetails} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + getCreateVmClusterNetworkDetails() { + return createVmClusterNetworkDetails; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "createVmClusterNetworkDetails" + }) + private GenerateRecommendedVmClusterNetworkResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + createVmClusterNetworkDetails) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.createVmClusterNetworkDetails = createVmClusterNetworkDetails; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GenerateRecommendedVmClusterNetworkResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code CreateVmClusterNetworkDetails} instance. */ + private com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + createVmClusterNetworkDetails; + + /** + * The returned {@code CreateVmClusterNetworkDetails} instance. + * + * @param createVmClusterNetworkDetails the value to set + * @return this builder + */ + public Builder createVmClusterNetworkDetails( + com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + createVmClusterNetworkDetails) { + this.createVmClusterNetworkDetails = createVmClusterNetworkDetails; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GenerateRecommendedVmClusterNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + createVmClusterNetworkDetails(o.getCreateVmClusterNetworkDetails()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GenerateRecommendedVmClusterNetworkResponse build() { + return new GenerateRecommendedVmClusterNetworkResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + createVmClusterNetworkDetails); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",createVmClusterNetworkDetails=") + .append(String.valueOf(createVmClusterNetworkDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateRecommendedVmClusterNetworkResponse)) { + return false; + } + + GenerateRecommendedVmClusterNetworkResponse other = + (GenerateRecommendedVmClusterNetworkResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals( + this.createVmClusterNetworkDetails, other.createVmClusterNetworkDetails); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.createVmClusterNetworkDetails == null + ? 43 + : this.createVmClusterNetworkDetails.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureResponse.java new file mode 100644 index 00000000000..5409cb8ba18 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureResponse.java @@ -0,0 +1,243 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code Infrastructure} instance. */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned {@code Infrastructure} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.Infrastructure getInfrastructure() { + return infrastructure; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "infrastructure" + }) + private GetInfrastructureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.infrastructure = infrastructure; + } + + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code Infrastructure} instance. */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned {@code Infrastructure} instance. + * + * @param infrastructure the value to set + * @return this builder + */ + public Builder infrastructure(com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + this.infrastructure = infrastructure; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + infrastructure(o.getInfrastructure()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetInfrastructureResponse build() { + return new GetInfrastructureResponse( + __httpStatusCode__, headers, opcRequestId, etag, location, infrastructure); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",infrastructure=").append(String.valueOf(infrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetInfrastructureResponse)) { + return false; + } + + GetInfrastructureResponse other = (GetInfrastructureResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.infrastructure, other.infrastructure); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.infrastructure == null ? 43 : this.infrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureScaleOptionResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureScaleOptionResponse.java new file mode 100644 index 00000000000..c52928e8878 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureScaleOptionResponse.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetInfrastructureScaleOptionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code InfrastructureScaleOption} instance. */ + private com.oracle.bmc.datacc.model.InfrastructureScaleOption infrastructureScaleOption; + + /** + * The returned {@code InfrastructureScaleOption} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.InfrastructureScaleOption getInfrastructureScaleOption() { + return infrastructureScaleOption; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "infrastructureScaleOption" + }) + private GetInfrastructureScaleOptionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.datacc.model.InfrastructureScaleOption infrastructureScaleOption) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.infrastructureScaleOption = infrastructureScaleOption; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetInfrastructureScaleOptionResponse> { + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 InfrastructureScaleOption} instance. */ + private com.oracle.bmc.datacc.model.InfrastructureScaleOption infrastructureScaleOption; + + /** + * The returned {@code InfrastructureScaleOption} instance. + * + * @param infrastructureScaleOption the value to set + * @return this builder + */ + public Builder infrastructureScaleOption( + com.oracle.bmc.datacc.model.InfrastructureScaleOption infrastructureScaleOption) { + this.infrastructureScaleOption = infrastructureScaleOption; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetInfrastructureScaleOptionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + infrastructureScaleOption(o.getInfrastructureScaleOption()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetInfrastructureScaleOptionResponse build() { + return new GetInfrastructureScaleOptionResponse( + __httpStatusCode__, headers, opcRequestId, infrastructureScaleOption); + } + } + + /** + * 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(",infrastructureScaleOption=").append(String.valueOf(infrastructureScaleOption)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetInfrastructureScaleOptionResponse)) { + return false; + } + + GetInfrastructureScaleOptionResponse other = (GetInfrastructureScaleOptionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.infrastructureScaleOption, other.infrastructureScaleOption); + } + + @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.infrastructureScaleOption == null + ? 43 + : this.infrastructureScaleOption.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceExecutionResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceExecutionResponse.java new file mode 100644 index 00000000000..653fd6050e2 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceExecutionResponse.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetMaintenanceExecutionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code MaintenanceExecution} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceExecution maintenanceExecution; + + /** + * The returned {@code MaintenanceExecution} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceExecution getMaintenanceExecution() { + return maintenanceExecution; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "maintenanceExecution" + }) + private GetMaintenanceExecutionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.MaintenanceExecution maintenanceExecution) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.maintenanceExecution = maintenanceExecution; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetMaintenanceExecutionResponse> { + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code MaintenanceExecution} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceExecution maintenanceExecution; + + /** + * The returned {@code MaintenanceExecution} instance. + * + * @param maintenanceExecution the value to set + * @return this builder + */ + public Builder maintenanceExecution( + com.oracle.bmc.datacc.model.MaintenanceExecution maintenanceExecution) { + this.maintenanceExecution = maintenanceExecution; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetMaintenanceExecutionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + maintenanceExecution(o.getMaintenanceExecution()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetMaintenanceExecutionResponse build() { + return new GetMaintenanceExecutionResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + location, + maintenanceExecution); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",maintenanceExecution=").append(String.valueOf(maintenanceExecution)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMaintenanceExecutionResponse)) { + return false; + } + + GetMaintenanceExecutionResponse other = (GetMaintenanceExecutionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.maintenanceExecution, other.maintenanceExecution); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.maintenanceExecution == null + ? 43 + : this.maintenanceExecution.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceRunResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceRunResponse.java new file mode 100644 index 00000000000..3d3baed2788 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceRunResponse.java @@ -0,0 +1,243 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetMaintenanceRunResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code MaintenanceRun} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned {@code MaintenanceRun} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceRun getMaintenanceRun() { + return maintenanceRun; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "maintenanceRun" + }) + private GetMaintenanceRunResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.maintenanceRun = maintenanceRun; + } + + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code MaintenanceRun} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned {@code MaintenanceRun} instance. + * + * @param maintenanceRun the value to set + * @return this builder + */ + public Builder maintenanceRun(com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + this.maintenanceRun = maintenanceRun; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetMaintenanceRunResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + maintenanceRun(o.getMaintenanceRun()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetMaintenanceRunResponse build() { + return new GetMaintenanceRunResponse( + __httpStatusCode__, headers, opcRequestId, etag, location, maintenanceRun); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",maintenanceRun=").append(String.valueOf(maintenanceRun)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMaintenanceRunResponse)) { + return false; + } + + GetMaintenanceRunResponse other = (GetMaintenanceRunResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.maintenanceRun, other.maintenanceRun); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRun == null ? 43 : this.maintenanceRun.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmClusterNetworkResponse.java new file mode 100644 index 00000000000..70053f40fec --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmClusterNetworkResponse.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetVmClusterNetworkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code VmClusterNetwork} instance. */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned {@code VmClusterNetwork} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.VmClusterNetwork getVmClusterNetwork() { + return vmClusterNetwork; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "vmClusterNetwork" + }) + private GetVmClusterNetworkResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmClusterNetwork = vmClusterNetwork; + } + + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code VmClusterNetwork} instance. */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned {@code VmClusterNetwork} instance. + * + * @param vmClusterNetwork the value to set + * @return this builder + */ + public Builder vmClusterNetwork( + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + this.vmClusterNetwork = vmClusterNetwork; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetVmClusterNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmClusterNetwork(o.getVmClusterNetwork()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetVmClusterNetworkResponse build() { + return new GetVmClusterNetworkResponse( + __httpStatusCode__, headers, opcRequestId, etag, location, vmClusterNetwork); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmClusterNetwork=").append(String.valueOf(vmClusterNetwork)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVmClusterNetworkResponse)) { + return false; + } + + GetVmClusterNetworkResponse other = (GetVmClusterNetworkResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmClusterNetwork, other.vmClusterNetwork); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.vmClusterNetwork == null ? 43 : this.vmClusterNetwork.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmInstanceResponse.java new file mode 100644 index 00000000000..d8d6e790f71 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmInstanceResponse.java @@ -0,0 +1,241 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code VmInstance} instance. */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned {@code VmInstance} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.VmInstance getVmInstance() { + return vmInstance; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "vmInstance" + }) + private GetVmInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmInstance vmInstance) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmInstance = vmInstance; + } + + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code VmInstance} instance. */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned {@code VmInstance} instance. + * + * @param vmInstance the value to set + * @return this builder + */ + public Builder vmInstance(com.oracle.bmc.datacc.model.VmInstance vmInstance) { + this.vmInstance = vmInstance; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmInstance(o.getVmInstance()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetVmInstanceResponse build() { + return new GetVmInstanceResponse( + __httpStatusCode__, headers, opcRequestId, etag, location, vmInstance); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmInstance=").append(String.valueOf(vmInstance)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVmInstanceResponse)) { + return false; + } + + GetVmInstanceResponse other = (GetVmInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmInstance, other.vmInstance); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.vmInstance == null ? 43 : this.vmInstance.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetWorkRequestResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..7e930b5feca --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetWorkRequestResponse.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * An integer representing the number of seconds the client should wait before polling this + * endpoint again. + */ + private Integer retryAfter; + + /** + * An integer 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.datacc.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.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.datacc.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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * An integer representing the number of seconds the client should wait before polling this + * endpoint again. + */ + private Integer retryAfter; + + /** + * An integer 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.datacc.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest(com.oracle.bmc.datacc.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-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListInfrastructuresResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListInfrastructuresResponse.java new file mode 100644 index 00000000000..0b441c3a571 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListInfrastructuresResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListInfrastructuresResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then 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 it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code InfrastructureCollection} instance. */ + private com.oracle.bmc.datacc.model.InfrastructureCollection infrastructureCollection; + + /** + * The returned {@code InfrastructureCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.InfrastructureCollection getInfrastructureCollection() { + return infrastructureCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "infrastructureCollection" + }) + private ListInfrastructuresResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.InfrastructureCollection infrastructureCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.infrastructureCollection = infrastructureCollection; + } + + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code InfrastructureCollection} instance. */ + private com.oracle.bmc.datacc.model.InfrastructureCollection infrastructureCollection; + + /** + * The returned {@code InfrastructureCollection} instance. + * + * @param infrastructureCollection the value to set + * @return this builder + */ + public Builder infrastructureCollection( + com.oracle.bmc.datacc.model.InfrastructureCollection infrastructureCollection) { + this.infrastructureCollection = infrastructureCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListInfrastructuresResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + infrastructureCollection(o.getInfrastructureCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListInfrastructuresResponse build() { + return new ListInfrastructuresResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + infrastructureCollection); + } + } + + /** + * 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(",infrastructureCollection=").append(String.valueOf(infrastructureCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInfrastructuresResponse)) { + return false; + } + + ListInfrastructuresResponse other = (ListInfrastructuresResponse) 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.infrastructureCollection, other.infrastructureCollection); + } + + @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.infrastructureCollection == null + ? 43 + : this.infrastructureCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceExecutionsResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceExecutionsResponse.java new file mode 100644 index 00000000000..dc2443bd77c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceExecutionsResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListMaintenanceExecutionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then 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 it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code MaintenanceExecutionCollection} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceExecutionCollection + maintenanceExecutionCollection; + + /** + * The returned {@code MaintenanceExecutionCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceExecutionCollection + getMaintenanceExecutionCollection() { + return maintenanceExecutionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "maintenanceExecutionCollection" + }) + private ListMaintenanceExecutionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.MaintenanceExecutionCollection + maintenanceExecutionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.maintenanceExecutionCollection = maintenanceExecutionCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListMaintenanceExecutionsResponse> { + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code MaintenanceExecutionCollection} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceExecutionCollection + maintenanceExecutionCollection; + + /** + * The returned {@code MaintenanceExecutionCollection} instance. + * + * @param maintenanceExecutionCollection the value to set + * @return this builder + */ + public Builder maintenanceExecutionCollection( + com.oracle.bmc.datacc.model.MaintenanceExecutionCollection + maintenanceExecutionCollection) { + this.maintenanceExecutionCollection = maintenanceExecutionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListMaintenanceExecutionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + maintenanceExecutionCollection(o.getMaintenanceExecutionCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListMaintenanceExecutionsResponse build() { + return new ListMaintenanceExecutionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + maintenanceExecutionCollection); + } + } + + /** + * 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(",maintenanceExecutionCollection=") + .append(String.valueOf(maintenanceExecutionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaintenanceExecutionsResponse)) { + return false; + } + + ListMaintenanceExecutionsResponse other = (ListMaintenanceExecutionsResponse) 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.maintenanceExecutionCollection, other.maintenanceExecutionCollection); + } + + @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.maintenanceExecutionCollection == null + ? 43 + : this.maintenanceExecutionCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceRunsResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceRunsResponse.java new file mode 100644 index 00000000000..b6b155d4fa7 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceRunsResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListMaintenanceRunsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then 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 it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code MaintenanceRunCollection} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceRunCollection maintenanceRunCollection; + + /** + * The returned {@code MaintenanceRunCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceRunCollection getMaintenanceRunCollection() { + return maintenanceRunCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "maintenanceRunCollection" + }) + private ListMaintenanceRunsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.MaintenanceRunCollection maintenanceRunCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.maintenanceRunCollection = maintenanceRunCollection; + } + + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code MaintenanceRunCollection} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceRunCollection maintenanceRunCollection; + + /** + * The returned {@code MaintenanceRunCollection} instance. + * + * @param maintenanceRunCollection the value to set + * @return this builder + */ + public Builder maintenanceRunCollection( + com.oracle.bmc.datacc.model.MaintenanceRunCollection maintenanceRunCollection) { + this.maintenanceRunCollection = maintenanceRunCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListMaintenanceRunsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + maintenanceRunCollection(o.getMaintenanceRunCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListMaintenanceRunsResponse build() { + return new ListMaintenanceRunsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + maintenanceRunCollection); + } + } + + /** + * 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(",maintenanceRunCollection=").append(String.valueOf(maintenanceRunCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaintenanceRunsResponse)) { + return false; + } + + ListMaintenanceRunsResponse other = (ListMaintenanceRunsResponse) 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.maintenanceRunCollection, other.maintenanceRunCollection); + } + + @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.maintenanceRunCollection == null + ? 43 + : this.maintenanceRunCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmClusterNetworksResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmClusterNetworksResponse.java new file mode 100644 index 00000000000..54ff7f89e9f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmClusterNetworksResponse.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListVmClusterNetworksResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then 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 it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code VmClusterNetworkCollection} instance. */ + private com.oracle.bmc.datacc.model.VmClusterNetworkCollection vmClusterNetworkCollection; + + /** + * The returned {@code VmClusterNetworkCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.VmClusterNetworkCollection getVmClusterNetworkCollection() { + return vmClusterNetworkCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "vmClusterNetworkCollection" + }) + private ListVmClusterNetworksResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.VmClusterNetworkCollection vmClusterNetworkCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.vmClusterNetworkCollection = vmClusterNetworkCollection; + } + + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code VmClusterNetworkCollection} instance. */ + private com.oracle.bmc.datacc.model.VmClusterNetworkCollection vmClusterNetworkCollection; + + /** + * The returned {@code VmClusterNetworkCollection} instance. + * + * @param vmClusterNetworkCollection the value to set + * @return this builder + */ + public Builder vmClusterNetworkCollection( + com.oracle.bmc.datacc.model.VmClusterNetworkCollection vmClusterNetworkCollection) { + this.vmClusterNetworkCollection = vmClusterNetworkCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListVmClusterNetworksResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + vmClusterNetworkCollection(o.getVmClusterNetworkCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListVmClusterNetworksResponse build() { + return new ListVmClusterNetworksResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + vmClusterNetworkCollection); + } + } + + /** + * 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(",vmClusterNetworkCollection=") + .append(String.valueOf(vmClusterNetworkCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVmClusterNetworksResponse)) { + return false; + } + + ListVmClusterNetworksResponse other = (ListVmClusterNetworksResponse) 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.vmClusterNetworkCollection, other.vmClusterNetworkCollection); + } + + @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.vmClusterNetworkCollection == null + ? 43 + : this.vmClusterNetworkCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmInstancesResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmInstancesResponse.java new file mode 100644 index 00000000000..b0489a55dec --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmInstancesResponse.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListVmInstancesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then 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 it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code VmInstanceCollection} instance. */ + private com.oracle.bmc.datacc.model.VmInstanceCollection vmInstanceCollection; + + /** + * The returned {@code VmInstanceCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.VmInstanceCollection getVmInstanceCollection() { + return vmInstanceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "vmInstanceCollection" + }) + private ListVmInstancesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.VmInstanceCollection vmInstanceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.vmInstanceCollection = vmInstanceCollection; + } + + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code VmInstanceCollection} instance. */ + private com.oracle.bmc.datacc.model.VmInstanceCollection vmInstanceCollection; + + /** + * The returned {@code VmInstanceCollection} instance. + * + * @param vmInstanceCollection the value to set + * @return this builder + */ + public Builder vmInstanceCollection( + com.oracle.bmc.datacc.model.VmInstanceCollection vmInstanceCollection) { + this.vmInstanceCollection = vmInstanceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListVmInstancesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + vmInstanceCollection(o.getVmInstanceCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListVmInstancesResponse build() { + return new ListVmInstancesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, vmInstanceCollection); + } + } + + /** + * 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(",vmInstanceCollection=").append(String.valueOf(vmInstanceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVmInstancesResponse)) { + return false; + } + + ListVmInstancesResponse other = (ListVmInstancesResponse) 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.vmInstanceCollection, other.vmInstanceCollection); + } + + @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.vmInstanceCollection == null + ? 43 + : this.vmInstanceCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestErrorsResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..c158026dd9e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestErrorsResponse.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then 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 it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.datacc.model.WorkRequestErrorCollection workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.WorkRequestErrorCollection getWorkRequestErrorCollection() { + return workRequestErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestErrorCollection" + }) + private ListWorkRequestErrorsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.WorkRequestErrorCollection workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + 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; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.datacc.model.WorkRequestErrorCollection workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.datacc.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()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestErrorCollection(o.getWorkRequestErrorCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestErrorsResponse build() { + return new ListWorkRequestErrorsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + 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(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + 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.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestErrorCollection, other.workRequestErrorCollection); + } + + @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.workRequestErrorCollection == null + ? 43 + : this.workRequestErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestLogsResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..9500e1e8dba --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestLogsResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then 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 it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection + getWorkRequestLogEntryCollection() { + return workRequestLogEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestLogEntryCollection" + }) + private ListWorkRequestLogsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + 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; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.datacc.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()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestLogsResponse build() { + return new ListWorkRequestLogsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + 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(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + 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.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); + } + + @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.workRequestLogEntryCollection == null + ? 43 + : this.workRequestLogEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestsResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..6f457f129e1 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestsResponse.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then 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 it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then it can mean that a partial list was returned. To obtain the next batch of + * items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code WorkRequestCollection} instance. */ + private com.oracle.bmc.datacc.model.WorkRequestCollection workRequestCollection; + + /** + * The returned {@code WorkRequestCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.WorkRequestCollection getWorkRequestCollection() { + return workRequestCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.WorkRequestCollection workRequestCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestCollection = workRequestCollection; + } + + 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 identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then it can mean that a partial list was returned. To obtain the next batch + * of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code WorkRequestCollection} instance. */ + private com.oracle.bmc.datacc.model.WorkRequestCollection workRequestCollection; + + /** + * The returned {@code WorkRequestCollection} instance. + * + * @param workRequestCollection the value to set + * @return this builder + */ + public Builder workRequestCollection( + com.oracle.bmc.datacc.model.WorkRequestCollection workRequestCollection) { + this.workRequestCollection = workRequestCollection; + 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()); + workRequestCollection(o.getWorkRequestCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, workRequestCollection); + } + } + + /** + * 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(",workRequestCollection=").append(String.valueOf(workRequestCollection)); + 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.workRequestCollection, other.workRequestCollection); + } + + @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.workRequestCollection == null + ? 43 + : this.workRequestCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/MigrateVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/MigrateVmInstanceResponse.java new file mode 100644 index 00000000000..7c7f5d2beef --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/MigrateVmInstanceResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class MigrateVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private MigrateVmInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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(MigrateVmInstanceResponse 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 MigrateVmInstanceResponse build() { + return new MigrateVmInstanceResponse( + __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 MigrateVmInstanceResponse)) { + return false; + } + + MigrateVmInstanceResponse other = (MigrateVmInstanceResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/RescheduleMaintenanceRunResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RescheduleMaintenanceRunResponse.java new file mode 100644 index 00000000000..2543ef005db --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RescheduleMaintenanceRunResponse.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class RescheduleMaintenanceRunResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code MaintenanceRun} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned {@code MaintenanceRun} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceRun getMaintenanceRun() { + return maintenanceRun; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "maintenanceRun" + }) + private RescheduleMaintenanceRunResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.maintenanceRun = maintenanceRun; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RescheduleMaintenanceRunResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code MaintenanceRun} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned {@code MaintenanceRun} instance. + * + * @param maintenanceRun the value to set + * @return this builder + */ + public Builder maintenanceRun(com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + this.maintenanceRun = maintenanceRun; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RescheduleMaintenanceRunResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + maintenanceRun(o.getMaintenanceRun()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RescheduleMaintenanceRunResponse build() { + return new RescheduleMaintenanceRunResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + maintenanceRun); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",maintenanceRun=").append(String.valueOf(maintenanceRun)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RescheduleMaintenanceRunResponse)) { + return false; + } + + RescheduleMaintenanceRunResponse other = (RescheduleMaintenanceRunResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.maintenanceRun, other.maintenanceRun); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRun == null ? 43 : this.maintenanceRun.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RestartVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RestartVmInstanceResponse.java new file mode 100644 index 00000000000..1b0ee19f306 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RestartVmInstanceResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class RestartVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RestartVmInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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(RestartVmInstanceResponse 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 RestartVmInstanceResponse build() { + return new RestartVmInstanceResponse( + __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 RestartVmInstanceResponse)) { + return false; + } + + RestartVmInstanceResponse other = (RestartVmInstanceResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleInfrastructureStorageResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleInfrastructureStorageResponse.java new file mode 100644 index 00000000000..bc8a6fc9bf1 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleInfrastructureStorageResponse.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ScaleInfrastructureStorageResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "location" + }) + private ScaleInfrastructureStorageResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String location) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.location = location; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ScaleInfrastructureStorageResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ScaleInfrastructureStorageResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ScaleInfrastructureStorageResponse build() { + return new ScaleInfrastructureStorageResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId, location); + } + } + + /** + * 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleInfrastructureStorageResponse)) { + return false; + } + + ScaleInfrastructureStorageResponse other = (ScaleInfrastructureStorageResponse) 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); + } + + @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()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleVmInstanceResponse.java new file mode 100644 index 00000000000..7cd25e5949b --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleVmInstanceResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ScaleVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ScaleVmInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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(ScaleVmInstanceResponse 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 ScaleVmInstanceResponse build() { + return new ScaleVmInstanceResponse( + __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 ScaleVmInstanceResponse)) { + return false; + } + + ScaleVmInstanceResponse other = (ScaleVmInstanceResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/StartVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StartVmInstanceResponse.java new file mode 100644 index 00000000000..72a3360e478 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StartVmInstanceResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class StartVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StartVmInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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(StartVmInstanceResponse 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 StartVmInstanceResponse build() { + return new StartVmInstanceResponse( + __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 StartVmInstanceResponse)) { + return false; + } + + StartVmInstanceResponse other = (StartVmInstanceResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/StopVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StopVmInstanceResponse.java new file mode 100644 index 00000000000..9fa7907d83d --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StopVmInstanceResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class StopVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StopVmInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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(StopVmInstanceResponse 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 StopVmInstanceResponse build() { + return new StopVmInstanceResponse( + __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 StopVmInstanceResponse)) { + return false; + } + + StopVmInstanceResponse other = (StopVmInstanceResponse) 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-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateInfrastructureResponse.java new file mode 100644 index 00000000000..db95e2e5829 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateInfrastructureResponse.java @@ -0,0 +1,292 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code Infrastructure} instance. */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned {@code Infrastructure} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.Infrastructure getInfrastructure() { + return infrastructure; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "infrastructure" + }) + private UpdateInfrastructureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.infrastructure = infrastructure; + } + + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code Infrastructure} instance. */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned {@code Infrastructure} instance. + * + * @param infrastructure the value to set + * @return this builder + */ + public Builder infrastructure(com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + this.infrastructure = infrastructure; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + infrastructure(o.getInfrastructure()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateInfrastructureResponse build() { + return new UpdateInfrastructureResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + infrastructure); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",infrastructure=").append(String.valueOf(infrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInfrastructureResponse)) { + return false; + } + + UpdateInfrastructureResponse other = (UpdateInfrastructureResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.infrastructure, other.infrastructure); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.infrastructure == null ? 43 : this.infrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateMaintenanceRunResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateMaintenanceRunResponse.java new file mode 100644 index 00000000000..5e9697898ee --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateMaintenanceRunResponse.java @@ -0,0 +1,292 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateMaintenanceRunResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code MaintenanceRun} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned {@code MaintenanceRun} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceRun getMaintenanceRun() { + return maintenanceRun; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "maintenanceRun" + }) + private UpdateMaintenanceRunResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.maintenanceRun = maintenanceRun; + } + + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code MaintenanceRun} instance. */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned {@code MaintenanceRun} instance. + * + * @param maintenanceRun the value to set + * @return this builder + */ + public Builder maintenanceRun(com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + this.maintenanceRun = maintenanceRun; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateMaintenanceRunResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + maintenanceRun(o.getMaintenanceRun()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateMaintenanceRunResponse build() { + return new UpdateMaintenanceRunResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + maintenanceRun); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",maintenanceRun=").append(String.valueOf(maintenanceRun)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMaintenanceRunResponse)) { + return false; + } + + UpdateMaintenanceRunResponse other = (UpdateMaintenanceRunResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.maintenanceRun, other.maintenanceRun); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRun == null ? 43 : this.maintenanceRun.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmClusterNetworkResponse.java new file mode 100644 index 00000000000..9b875eefc36 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmClusterNetworkResponse.java @@ -0,0 +1,294 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateVmClusterNetworkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code VmClusterNetwork} instance. */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned {@code VmClusterNetwork} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.VmClusterNetwork getVmClusterNetwork() { + return vmClusterNetwork; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "vmClusterNetwork" + }) + private UpdateVmClusterNetworkResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmClusterNetwork = vmClusterNetwork; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateVmClusterNetworkResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code VmClusterNetwork} instance. */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned {@code VmClusterNetwork} instance. + * + * @param vmClusterNetwork the value to set + * @return this builder + */ + public Builder vmClusterNetwork( + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + this.vmClusterNetwork = vmClusterNetwork; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateVmClusterNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmClusterNetwork(o.getVmClusterNetwork()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateVmClusterNetworkResponse build() { + return new UpdateVmClusterNetworkResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + vmClusterNetwork); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmClusterNetwork=").append(String.valueOf(vmClusterNetwork)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVmClusterNetworkResponse)) { + return false; + } + + UpdateVmClusterNetworkResponse other = (UpdateVmClusterNetworkResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmClusterNetwork, other.vmClusterNetwork); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.vmClusterNetwork == null ? 43 : this.vmClusterNetwork.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmInstanceResponse.java new file mode 100644 index 00000000000..03d4fc9daea --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmInstanceResponse.java @@ -0,0 +1,290 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code VmInstance} instance. */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned {@code VmInstance} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.VmInstance getVmInstance() { + return vmInstance; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "vmInstance" + }) + private UpdateVmInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmInstance vmInstance) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmInstance = vmInstance; + } + + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code VmInstance} instance. */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned {@code VmInstance} instance. + * + * @param vmInstance the value to set + * @return this builder + */ + public Builder vmInstance(com.oracle.bmc.datacc.model.VmInstance vmInstance) { + this.vmInstance = vmInstance; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmInstance(o.getVmInstance()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateVmInstanceResponse build() { + return new UpdateVmInstanceResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + vmInstance); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmInstance=").append(String.valueOf(vmInstance)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVmInstanceResponse)) { + return false; + } + + UpdateVmInstanceResponse other = (UpdateVmInstanceResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmInstance, other.vmInstance); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.vmInstance == null ? 43 : this.vmInstance.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateInfrastructureResponse.java new file mode 100644 index 00000000000..a7b04fb2833 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateInfrastructureResponse.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ValidateInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For Optimistic concurrency control. See the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code Infrastructure} instance. */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned {@code Infrastructure} instance. + * + * @return the value + */ + public com.oracle.bmc.datacc.model.Infrastructure getInfrastructure() { + return infrastructure; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "infrastructure" + }) + private ValidateInfrastructureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.infrastructure = infrastructure; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ValidateInfrastructureResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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 the {@code if-match}. */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The full URI of the resource. */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code Infrastructure} instance. */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned {@code Infrastructure} instance. + * + * @param infrastructure the value to set + * @return this builder + */ + public Builder infrastructure(com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + this.infrastructure = infrastructure; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ValidateInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + infrastructure(o.getInfrastructure()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ValidateInfrastructureResponse build() { + return new ValidateInfrastructureResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + infrastructure); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",infrastructure=").append(String.valueOf(infrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateInfrastructureResponse)) { + return false; + } + + ValidateInfrastructureResponse other = (ValidateInfrastructureResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.infrastructure, other.infrastructure); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.infrastructure == null ? 43 : this.infrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateVmClusterNetworkResponse.java new file mode 100644 index 00000000000..540f8f65b49 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateVmClusterNetworkResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ValidateVmClusterNetworkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier + * to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about a + * particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ValidateVmClusterNetworkResponse( + 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< + ValidateVmClusterNetworkResponse> { + 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 identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this + * identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact Oracle about + * a particular request, then 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(ValidateVmClusterNetworkResponse 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 ValidateVmClusterNetworkResponse build() { + return new ValidateVmClusterNetworkResponse( + __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 ValidateVmClusterNetworkResponse)) { + return false; + } + + ValidateVmClusterNetworkResponse other = (ValidateVmClusterNetworkResponse) 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-datacc/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datacc/reflect-config.json b/bmc-datacc/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datacc/reflect-config.json new file mode 100644 index 00000000000..6d9105cde54 --- /dev/null +++ b/bmc-datacc/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datacc/reflect-config.json @@ -0,0 +1,884 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.AcfsCapacityDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.AcfsCapacityDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ActivateInfrastructureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ActivateInfrastructureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.BasePatchingMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ComputeCapacityDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ComputeCapacityDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.CreateInfrastructureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.CreateInfrastructureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.CreateVmInstanceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.CreateVmInstanceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.DiskGroupCapacityDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.DiskGroupCapacityDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfoVmNetworkDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfoVmNetworkDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.Infrastructure", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.Infrastructure$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureContact", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureContact$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureLifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureScaleOption", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureScaleOption$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureServer", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureServer$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureServerLifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.InfrastructureType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceExecution", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceExecution$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceExecutionCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceExecutionCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceExecutionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceExecutionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenancePreference", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceRun", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceRun$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceRunCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceRunCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceRunSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceRunSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceTypeEnum", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceWindow", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceWindow$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceWindow$Months", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.MaintenanceWindow$DaysOfWeek", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.NetworkBondingInterfaceEnum", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.NetworkBondingMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.NodeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.NodeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.OperationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.OperationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.PatchingModeEnum", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.PatchingStatusEnum", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ScaleVmInstanceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ScaleVmInstanceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ScanDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ScanDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ShapeEnum", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.StorageCapacityDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.StorageCapacityDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.StorageDiskRedundancy", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.StorageType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.SystemModelEnum", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.SystemStorageCapacityDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.SystemStorageCapacityDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.TargetResourceTypeEnum", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.TypeEnum", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.UpdateInfrastructureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.UpdateInfrastructureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.UpdateVmInstanceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.UpdateVmInstanceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ValidateInfrastructureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.ValidateInfrastructureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmClusterNetwork", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmClusterNetwork$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmClusterNetworkCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmClusterNetworkCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmClusterNetworkLifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmClusterNetworkSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmClusterNetworkSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmClusterNetworkType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmInstance", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmInstance$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmInstanceCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmInstanceCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmInstanceLifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmInstanceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmInstanceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmNetworkConsumerType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmNetworkDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.VmNetworkDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestLogEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestLogEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacc.model.WorkRequestResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + } +] \ No newline at end of file diff --git a/bmc-datacc/src/main/resources/com/oracle/bmc/datacc/client.properties b/bmc-datacc/src/main/resources/com/oracle/bmc/datacc/client.properties new file mode 100644 index 00000000000..5687ac440ce --- /dev/null +++ b/bmc-datacc/src/main/resources/com/oracle/bmc/datacc/client.properties @@ -0,0 +1,9 @@ +# +# Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +# + +java.client.codegen.version = 2.170 +java.minimum.client.codegen.version.from.client = 2.170 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 7139bf4d02d..db418520803 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index ea092bafcbd..6698b689005 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 04c592b839b..cd44007ba48 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 10b457ed837..2e70c848188 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 02c7eee137c..ac2adc91d81 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java index 7c63a92ca95..5453fbde780 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java @@ -1271,10 +1271,11 @@ CreateSdmMaskingPolicyDifferenceResponse createSdmMaskingPolicyDifference( CreateSdmMaskingPolicyDifferenceRequest request); /** - * Creates a new saved security assessment for one or multiple targets in a compartment. When - * this operation is performed, it will save the latest assessments in the specified - * compartment. If a schedule is passed, it will persist the latest assessments, at the defined - * date and time, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Creates a new saved security assessment for a target database or target database group in a + * compartment. When this operation is performed, it will save the latest assessment in the + * specified compartment. If a schedule is passed, it will persist the latest assessment, at the + * defined date and time, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -1515,10 +1516,10 @@ CreateUnifiedAuditPolicyResponse createUnifiedAuditPolicy( CreateUnifiedAuditPolicyRequest request); /** - * Creates a new saved user assessment for one or multiple targets in a compartment. It saves - * the latest assessments in the specified compartment. If a scheduled is passed in, this - * operation persists the latest assessments that exist at the defined date and time, in the - * format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Creates a new saved user assessment for a target database or target database group in a + * compartment. It saves the latest assessment in the specified compartment. If a schedule is + * passed in, this operation persists the latest assessment that exists at the defined date and + * time, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -4017,7 +4018,9 @@ ListDatabaseTableAccessEntriesResponse listDatabaseTableAccessEntries( * Retrieves a list of all database view access entries in Data Safe. * *

The ListDatabaseViewAccessEntries operation returns only the database view access objects - * for the specified security policy report. + * for the specified security policy report. If targetId is specified, it must match the target + * associated with the securityPolicyReportId path parameter; otherwise, the request is + * rejected. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -5309,6 +5312,23 @@ ListSqlFirewallViolationsResponse listSqlFirewallViolations( ListTargetAlertPolicyAssociationsResponse listTargetAlertPolicyAssociations( ListTargetAlertPolicyAssociationsRequest request); + /** + * Gets the details of target-alert policy association and its unassociated members by its 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 + * ListTargetAlertPolicyUnassociatedMembers API. + */ + ListTargetAlertPolicyUnassociatedMembersResponse listTargetAlertPolicyUnassociatedMembers( + ListTargetAlertPolicyUnassociatedMembersRequest request); + /** * Retrieves a list of target database groups according to the specified query parameters. * diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java index ca87a055a7d..870027ec3fa 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java @@ -1261,10 +1261,11 @@ java.util.concurrent.Future createReportDefiniti handler); /** - * Creates a new saved security assessment for one or multiple targets in a compartment. When - * this operation is performed, it will save the latest assessments in the specified - * compartment. If a schedule is passed, it will persist the latest assessments, at the defined - * date and time, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Creates a new saved security assessment for a target database or target database group in a + * compartment. When this operation is performed, it will save the latest assessment in the + * specified compartment. If a schedule is passed, it will persist the latest assessment, at the + * defined date and time, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1500,10 +1501,10 @@ java.util.concurrent.Future createUnifiedAudit handler); /** - * Creates a new saved user assessment for one or multiple targets in a compartment. It saves - * the latest assessments in the specified compartment. If a scheduled is passed in, this - * operation persists the latest assessments that exist at the defined date and time, in the - * format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Creates a new saved user assessment for a target database or target database group in a + * compartment. It saves the latest assessment in the specified compartment. If a schedule is + * passed in, this operation persists the latest assessment that exists at the defined date and + * time, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -3972,7 +3973,9 @@ java.util.concurrent.Future listDatabaseSec * Retrieves a list of all database view access entries in Data Safe. * *

The ListDatabaseViewAccessEntries operation returns only the database view access objects - * for the specified security policy report. + * for the specified security policy report. If targetId is specified, it must match the target + * associated with the securityPolicyReportId path parameter; otherwise, the request is + * rejected. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -5262,6 +5265,24 @@ java.util.concurrent.Future listTables( ListTargetAlertPolicyAssociationsResponse> handler); + /** + * Gets the details of target-alert policy association and its unassociated members by its 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 + listTargetAlertPolicyUnassociatedMembers( + ListTargetAlertPolicyUnassociatedMembersRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse> + handler); + /** * Retrieves a list of target database groups according to the specified query parameters. * diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java index a2729d5820a..c31e99f7802 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java @@ -8569,6 +8569,10 @@ public java.util.concurrent.Future listFindings( request.getContainsSeverity(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("category", request.getCategory()) + .appendListQueryParam( + "containsOracleDefinedSeverity", + request.getContainsOracleDefinedSeverity(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendEnumQueryParam("references", request.getReferences()) .appendListQueryParam( @@ -11320,6 +11324,7 @@ public java.util.concurrent.Future listTables( .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("targetType", request.getTargetType()) .appendQueryParam( "timeCreatedGreaterThanOrEqualTo", request.getTimeCreatedGreaterThanOrEqualTo()) @@ -11346,6 +11351,53 @@ public java.util.concurrent.Future listTables( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listTargetAlertPolicyUnassociatedMembers( + ListTargetAlertPolicyUnassociatedMembersRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse> + handler) { + + Validate.notBlank( + request.getTargetAlertPolicyAssociationId(), + "targetAlertPolicyAssociationId must not be blank"); + + return clientCall(request, ListTargetAlertPolicyUnassociatedMembersResponse::builder) + .logger(LOG, "listTargetAlertPolicyUnassociatedMembers") + .serviceDetails( + "DataSafe", + "ListTargetAlertPolicyUnassociatedMembers", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetAlertPolicyAssociation/ListTargetAlertPolicyUnassociatedMembers") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListTargetAlertPolicyUnassociatedMembersRequest::builder) + .basePath("/20181201") + .appendPathParam("targetAlertPolicyAssociations") + .appendPathParam(request.getTargetAlertPolicyAssociationId()) + .appendPathParam("unassociatedTargetMembers") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection.class, + ListTargetAlertPolicyUnassociatedMembersResponse.Builder + ::targetAlertPolicyUnassociatedCollection) + .handleResponseHeaderString( + "opc-request-id", + ListTargetAlertPolicyUnassociatedMembersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListTargetAlertPolicyUnassociatedMembersResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListTargetAlertPolicyUnassociatedMembersResponse.Builder::opcPrevPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listTargetDatabaseGroups( ListTargetDatabaseGroupsRequest request, @@ -11886,6 +11938,7 @@ public java.util.concurrent.Future listUsers( .appendQueryParam( "timePasswordExpiryLessThan", request.getTimePasswordExpiryLessThan()) .appendQueryParam("page", request.getPage()) + .appendQueryParam("compartmentId", request.getCompartmentId()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendListQueryParam( diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java index 55416c43d69..a13f436bfbb 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java @@ -7915,6 +7915,10 @@ public ListFindingsResponse listFindings(ListFindingsRequest request) { request.getContainsSeverity(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("category", request.getCategory()) + .appendListQueryParam( + "containsOracleDefinedSeverity", + request.getContainsOracleDefinedSeverity(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendEnumQueryParam("references", request.getReferences()) .appendListQueryParam( @@ -10501,6 +10505,7 @@ public ListTargetAlertPolicyAssociationsResponse listTargetAlertPolicyAssociatio .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("targetType", request.getTargetType()) .appendQueryParam( "timeCreatedGreaterThanOrEqualTo", request.getTimeCreatedGreaterThanOrEqualTo()) @@ -10528,6 +10533,50 @@ public ListTargetAlertPolicyAssociationsResponse listTargetAlertPolicyAssociatio .callSync(); } + @Override + public ListTargetAlertPolicyUnassociatedMembersResponse + listTargetAlertPolicyUnassociatedMembers( + ListTargetAlertPolicyUnassociatedMembersRequest request) { + + Validate.notBlank( + request.getTargetAlertPolicyAssociationId(), + "targetAlertPolicyAssociationId must not be blank"); + + return clientCall(request, ListTargetAlertPolicyUnassociatedMembersResponse::builder) + .logger(LOG, "listTargetAlertPolicyUnassociatedMembers") + .serviceDetails( + "DataSafe", + "ListTargetAlertPolicyUnassociatedMembers", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetAlertPolicyAssociation/ListTargetAlertPolicyUnassociatedMembers") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListTargetAlertPolicyUnassociatedMembersRequest::builder) + .basePath("/20181201") + .appendPathParam("targetAlertPolicyAssociations") + .appendPathParam(request.getTargetAlertPolicyAssociationId()) + .appendPathParam("unassociatedTargetMembers") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection.class, + ListTargetAlertPolicyUnassociatedMembersResponse.Builder + ::targetAlertPolicyUnassociatedCollection) + .handleResponseHeaderString( + "opc-request-id", + ListTargetAlertPolicyUnassociatedMembersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListTargetAlertPolicyUnassociatedMembersResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListTargetAlertPolicyUnassociatedMembersResponse.Builder::opcPrevPage) + .callSync(); + } + @Override public ListTargetDatabaseGroupsResponse listTargetDatabaseGroups( ListTargetDatabaseGroupsRequest request) { @@ -11037,6 +11086,7 @@ public ListUsersResponse listUsers(ListUsersRequest request) { .appendQueryParam( "timePasswordExpiryLessThan", request.getTimePasswordExpiryLessThan()) .appendQueryParam("page", request.getPage()) + .appendQueryParam("compartmentId", request.getCompartmentId()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendListQueryParam( diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java index e0edc103310..f0573215f2a 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java @@ -10016,6 +10016,142 @@ public ListTargetAlertPolicyAssociationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listTargetAlertPolicyUnassociatedMembers 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 + listTargetAlertPolicyUnassociatedMembersResponseIterator( + final ListTargetAlertPolicyUnassociatedMembersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder, + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse>( + new java.util.function.Supplier< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersRequest.Builder get() { + return ListTargetAlertPolicyUnassociatedMembersRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListTargetAlertPolicyUnassociatedMembersResponse, String>() { + @Override + public String apply(ListTargetAlertPolicyUnassociatedMembersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder>, + ListTargetAlertPolicyUnassociatedMembersRequest>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetAlertPolicyUnassociatedMembersRequest.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< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersResponse apply( + ListTargetAlertPolicyUnassociatedMembersRequest request) { + return client.listTargetAlertPolicyUnassociatedMembers(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedSummary} objects contained in + * responses from the listTargetAlertPolicyUnassociatedMembers 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.datasafe.model.TargetAlertPolicyUnassociatedSummary} objects contained in + * responses received from the service. + */ + public Iterable + listTargetAlertPolicyUnassociatedMembersRecordIterator( + final ListTargetAlertPolicyUnassociatedMembersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder, + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse, + com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedSummary>( + new java.util.function.Supplier< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersRequest.Builder get() { + return ListTargetAlertPolicyUnassociatedMembersRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListTargetAlertPolicyUnassociatedMembersResponse, String>() { + @Override + public String apply(ListTargetAlertPolicyUnassociatedMembersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder>, + ListTargetAlertPolicyUnassociatedMembersRequest>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetAlertPolicyUnassociatedMembersRequest.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< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersResponse apply( + ListTargetAlertPolicyUnassociatedMembersRequest request) { + return client.listTargetAlertPolicyUnassociatedMembers(request); + } + }, + new java.util.function.Function< + ListTargetAlertPolicyUnassociatedMembersResponse, + java.util.List< + com.oracle.bmc.datasafe.model + .TargetAlertPolicyUnassociatedSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model + .TargetAlertPolicyUnassociatedSummary> + apply(ListTargetAlertPolicyUnassociatedMembersResponse response) { + return response.getTargetAlertPolicyUnassociatedCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listTargetDatabaseGroups operation. This iterable will fetch more data from the server as diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AssociatedResourceSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AssociatedResourceSummary.java index 78e168c0068..f8a02c5df4d 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AssociatedResourceSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AssociatedResourceSummary.java @@ -184,6 +184,7 @@ public Builder toBuilder() { /** The resource type that is associated with the attribute set. */ public enum AssociatedResourceType implements com.oracle.bmc.http.internal.BmcEnum { AuditPolicy("AUDIT_POLICY"), + AuditReport("AUDIT_REPORT"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailStatus.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailStatus.java index 47240328e62..4b73f8309a6 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailStatus.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailStatus.java @@ -4,7 +4,9 @@ */ package com.oracle.bmc.datasafe.model; -/** The current sub-state of the audit trail. */ +/** + * The current sub-state of the audit trail. The states RETRYING,IDLE,RECOVERING will be deprecated. + */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") public enum AuditTrailStatus implements com.oracle.bmc.http.internal.BmcEnum { Starting("STARTING"), diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailSummary.java index 39311ca138d..8f3833a87c0 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailSummary.java @@ -251,12 +251,16 @@ public Builder lifecycleState(AuditTrailLifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } - /** Details about the current state of the audit trail in Data Safe. */ + /** + * Details about the current state of the audit trail in Data Safe. This attribute will be + * deprecated, but will still be available in GET audit trail response. + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** - * Details about the current state of the audit trail in Data Safe. + * Details about the current state of the audit trail in Data Safe. This attribute will be + * deprecated, but will still be available in GET audit trail response. * * @param lifecycleDetails the value to set * @return this builder @@ -613,12 +617,16 @@ public AuditTrailLifecycleState getLifecycleState() { return lifecycleState; } - /** Details about the current state of the audit trail in Data Safe. */ + /** + * Details about the current state of the audit trail in Data Safe. This attribute will be + * deprecated, but will still be available in GET audit trail response. + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * Details about the current state of the audit trail in Data Safe. + * Details about the current state of the audit trail in Data Safe. This attribute will be + * deprecated, but will still be available in GET audit trail response. * * @return the value */ diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ColumnsInfo.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ColumnsInfo.java index 123b253c12c..ee5da5005e3 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ColumnsInfo.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ColumnsInfo.java @@ -217,6 +217,7 @@ public String getSchemaName() { /** The type of the database object that contains the sensitive column. */ public enum ObjectType implements com.oracle.bmc.http.internal.BmcEnum { Table("TABLE"), + EditioningView("EDITIONING_VIEW"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateDataSafePrivateEndpointDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateDataSafePrivateEndpointDetails.java index b06c4910a78..7ede59f6324 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateDataSafePrivateEndpointDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateDataSafePrivateEndpointDetails.java @@ -32,7 +32,8 @@ public final class CreateDataSafePrivateEndpointDetails "description", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreateDataSafePrivateEndpointDetails( String displayName, @@ -43,7 +44,8 @@ public CreateDataSafePrivateEndpointDetails( String description, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.compartmentId = compartmentId; @@ -54,6 +56,7 @@ public CreateDataSafePrivateEndpointDetails( this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -216,6 +219,30 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -231,7 +258,8 @@ public CreateDataSafePrivateEndpointDetails build() { this.description, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -267,6 +295,9 @@ public Builder copy(CreateDataSafePrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -419,6 +450,27 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -443,6 +495,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -466,6 +519,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -486,6 +540,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateTargetAlertPolicyAssociationDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateTargetAlertPolicyAssociationDetails.java index 9b95653545c..bc6d0907e66 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateTargetAlertPolicyAssociationDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateTargetAlertPolicyAssociationDetails.java @@ -30,6 +30,7 @@ public final class CreateTargetAlertPolicyAssociationDetails "description", "compartmentId", "isEnabled", + "targetType", "freeformTags", "definedTags" }) @@ -40,6 +41,7 @@ public CreateTargetAlertPolicyAssociationDetails( String description, String compartmentId, Boolean isEnabled, + TargetAlertPolicyAssociation.TargetType targetType, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -49,6 +51,7 @@ public CreateTargetAlertPolicyAssociationDetails( this.description = description; this.compartmentId = compartmentId; this.isEnabled = isEnabled; + this.targetType = targetType; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -70,12 +73,12 @@ public Builder policyId(String policyId) { this.__explicitlySet__.add("policyId"); return this; } - /** The OCID of the target. */ + /** The OCID of the target or target database group. */ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private String targetId; /** - * The OCID of the target. + * The OCID of the target or target database group. * * @param targetId the value to set * @return this builder @@ -145,6 +148,25 @@ public Builder isEnabled(Boolean isEnabled) { this.__explicitlySet__.add("isEnabled"); return this; } + /** + * The resource type that is represented by the alert policy association. Default is + * considered as TARGET_DATABASE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private TargetAlertPolicyAssociation.TargetType targetType; + + /** + * The resource type that is represented by the alert policy association. Default is + * considered as TARGET_DATABASE. + * + * @param targetType the value to set + * @return this builder + */ + public Builder targetType(TargetAlertPolicyAssociation.TargetType targetType) { + this.targetType = targetType; + this.__explicitlySet__.add("targetType"); + 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 @@ -207,6 +229,7 @@ public CreateTargetAlertPolicyAssociationDetails build() { this.description, this.compartmentId, this.isEnabled, + this.targetType, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -235,6 +258,9 @@ public Builder copy(CreateTargetAlertPolicyAssociationDetails model) { if (model.wasPropertyExplicitlySet("isEnabled")) { this.isEnabled(model.getIsEnabled()); } + if (model.wasPropertyExplicitlySet("targetType")) { + this.targetType(model.getTargetType()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -267,12 +293,12 @@ public String getPolicyId() { return policyId; } - /** The OCID of the target. */ + /** The OCID of the target or target database group. */ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private final String targetId; /** - * The OCID of the target. + * The OCID of the target or target database group. * * @return the value */ @@ -332,6 +358,23 @@ public Boolean getIsEnabled() { return isEnabled; } + /** + * The resource type that is represented by the alert policy association. Default is considered + * as TARGET_DATABASE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private final TargetAlertPolicyAssociation.TargetType targetType; + + /** + * The resource type that is represented by the alert policy association. Default is considered + * as TARGET_DATABASE. + * + * @return the value + */ + public TargetAlertPolicyAssociation.TargetType getTargetType() { + return targetType; + } + /** * 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 @@ -397,6 +440,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", targetType=").append(String.valueOf(this.targetType)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -420,6 +464,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.targetType, other.targetType) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -437,6 +482,7 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + (this.targetType == null ? 43 : this.targetType.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpoint.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpoint.java index 43c4f5a7f18..651c72a0308 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpoint.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpoint.java @@ -39,7 +39,8 @@ public final class DataSafePrivateEndpoint "nsgIds", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public DataSafePrivateEndpoint( String id, @@ -56,7 +57,8 @@ public DataSafePrivateEndpoint( java.util.List nsgIds, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -73,6 +75,7 @@ public DataSafePrivateEndpoint( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -335,6 +338,30 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -356,7 +383,8 @@ public DataSafePrivateEndpoint build() { this.nsgIds, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -410,6 +438,9 @@ public Builder copy(DataSafePrivateEndpoint model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -650,6 +681,27 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -680,6 +732,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(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -709,6 +762,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.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -739,6 +793,11 @@ 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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpointSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpointSummary.java index 431a729e1c2..7309cfcd69b 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpointSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpointSummary.java @@ -35,7 +35,8 @@ public final class DataSafePrivateEndpointSummary "lifecycleState", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public DataSafePrivateEndpointSummary( String id, @@ -49,7 +50,8 @@ public DataSafePrivateEndpointSummary( LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -63,6 +65,7 @@ public DataSafePrivateEndpointSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -276,6 +279,30 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -294,7 +321,8 @@ public DataSafePrivateEndpointSummary build() { this.lifecycleState, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -339,6 +367,9 @@ public Builder copy(DataSafePrivateEndpointSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -536,6 +567,27 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -563,6 +615,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(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -589,6 +642,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.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -614,6 +668,11 @@ 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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSecurityAssessmentReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSecurityAssessmentReportDetails.java index 89c4faf2b1f..288f34cbcec 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSecurityAssessmentReportDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSecurityAssessmentReportDetails.java @@ -23,10 +23,11 @@ public final class DownloadSecurityAssessmentReportDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"format"}) - public DownloadSecurityAssessmentReportDetails(Format format) { + @java.beans.ConstructorProperties({"format", "isSingleReport"}) + public DownloadSecurityAssessmentReportDetails(Format format, Boolean isSingleReport) { super(); this.format = format; + this.isSingleReport = isSingleReport; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -46,13 +47,46 @@ public Builder format(Format format) { this.__explicitlySet__.add("format"); return this; } + /** + * Optional flag controlling the output format of a target group report: - true: Return a + * single consolidated report file for the entire target group. - false/null (default): + * Return a ZIP archive containing one file per target in the group. + * + *

Important: - This flag is only applicable when the security assessment OCID refers to + * a target group assessment (targetType TARGET_DATABASE_GROUP). - If {@code isSingleReport} + * is set to true for an individual target (targetType TARGET_DATABASE), the request will + * return an error. - If {@code isSingleReport} is null or false for an individual target, + * the value is ignored and the selected output format for the assessment type is returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSingleReport") + private Boolean isSingleReport; + + /** + * Optional flag controlling the output format of a target group report: - true: Return a + * single consolidated report file for the entire target group. - false/null (default): + * Return a ZIP archive containing one file per target in the group. + * + *

Important: - This flag is only applicable when the security assessment OCID refers to + * a target group assessment (targetType TARGET_DATABASE_GROUP). - If {@code isSingleReport} + * is set to true for an individual target (targetType TARGET_DATABASE), the request will + * return an error. - If {@code isSingleReport} is null or false for an individual target, + * the value is ignored and the selected output format for the assessment type is returned. + * + * @param isSingleReport the value to set + * @return this builder + */ + public Builder isSingleReport(Boolean isSingleReport) { + this.isSingleReport = isSingleReport; + this.__explicitlySet__.add("isSingleReport"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DownloadSecurityAssessmentReportDetails build() { DownloadSecurityAssessmentReportDetails model = - new DownloadSecurityAssessmentReportDetails(this.format); + new DownloadSecurityAssessmentReportDetails(this.format, this.isSingleReport); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -64,6 +98,9 @@ public Builder copy(DownloadSecurityAssessmentReportDetails model) { if (model.wasPropertyExplicitlySet("format")) { this.format(model.getFormat()); } + if (model.wasPropertyExplicitlySet("isSingleReport")) { + this.isSingleReport(model.getIsSingleReport()); + } return this; } } @@ -124,6 +161,37 @@ public Format getFormat() { return format; } + /** + * Optional flag controlling the output format of a target group report: - true: Return a single + * consolidated report file for the entire target group. - false/null (default): Return a ZIP + * archive containing one file per target in the group. + * + *

Important: - This flag is only applicable when the security assessment OCID refers to a + * target group assessment (targetType TARGET_DATABASE_GROUP). - If {@code isSingleReport} is + * set to true for an individual target (targetType TARGET_DATABASE), the request will return an + * error. - If {@code isSingleReport} is null or false for an individual target, the value is + * ignored and the selected output format for the assessment type is returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSingleReport") + private final Boolean isSingleReport; + + /** + * Optional flag controlling the output format of a target group report: - true: Return a single + * consolidated report file for the entire target group. - false/null (default): Return a ZIP + * archive containing one file per target in the group. + * + *

Important: - This flag is only applicable when the security assessment OCID refers to a + * target group assessment (targetType TARGET_DATABASE_GROUP). - If {@code isSingleReport} is + * set to true for an individual target (targetType TARGET_DATABASE), the request will return an + * error. - If {@code isSingleReport} is null or false for an individual target, the value is + * ignored and the selected output format for the assessment type is returned. + * + * @return the value + */ + public Boolean getIsSingleReport() { + return isSingleReport; + } + @Override public String toString() { return this.toString(true); @@ -140,6 +208,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DownloadSecurityAssessmentReportDetails("); sb.append("super=").append(super.toString()); sb.append("format=").append(String.valueOf(this.format)); + sb.append(", isSingleReport=").append(String.valueOf(this.isSingleReport)); sb.append(")"); return sb.toString(); } @@ -154,7 +223,9 @@ public boolean equals(Object o) { } DownloadSecurityAssessmentReportDetails other = (DownloadSecurityAssessmentReportDetails) o; - return java.util.Objects.equals(this.format, other.format) && super.equals(other); + return java.util.Objects.equals(this.format, other.format) + && java.util.Objects.equals(this.isSingleReport, other.isSingleReport) + && super.equals(other); } @Override @@ -162,6 +233,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.format == null ? 43 : this.format.hashCode()); + result = + (result * PRIME) + + (this.isSingleReport == null ? 43 : this.isSingleReport.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateReportDetails.java index b682482df71..8e034a7af82 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateReportDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateReportDetails.java @@ -32,7 +32,8 @@ public final class GenerateReportDetails "mimeType", "timeLessThan", "timeGreaterThan", - "rowLimit" + "rowLimit", + "isPaginationEnabled" }) public GenerateReportDetails( String displayName, @@ -43,7 +44,8 @@ public GenerateReportDetails( MimeType mimeType, java.util.Date timeLessThan, java.util.Date timeGreaterThan, - Integer rowLimit) { + Integer rowLimit, + Boolean isPaginationEnabled) { super(); this.displayName = displayName; this.targetIds = targetIds; @@ -54,6 +56,7 @@ public GenerateReportDetails( this.timeLessThan = timeLessThan; this.timeGreaterThan = timeGreaterThan; this.rowLimit = rowLimit; + this.isPaginationEnabled = isPaginationEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -197,6 +200,27 @@ public Builder rowLimit(Integer rowLimit) { this.__explicitlySet__.add("rowLimit"); return this; } + /** + * Indicates if the reports being generated should be pagination enabled. If set to true, + * multiple reports can be generated and the details of next and previous report are present + * in Report. Values can either be 'true' or 'false'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isPaginationEnabled") + private Boolean isPaginationEnabled; + + /** + * Indicates if the reports being generated should be pagination enabled. If set to true, + * multiple reports can be generated and the details of next and previous report are present + * in Report. Values can either be 'true' or 'false'. + * + * @param isPaginationEnabled the value to set + * @return this builder + */ + public Builder isPaginationEnabled(Boolean isPaginationEnabled) { + this.isPaginationEnabled = isPaginationEnabled; + this.__explicitlySet__.add("isPaginationEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -212,7 +236,8 @@ public GenerateReportDetails build() { this.mimeType, this.timeLessThan, this.timeGreaterThan, - this.rowLimit); + this.rowLimit, + this.isPaginationEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -248,6 +273,9 @@ public Builder copy(GenerateReportDetails model) { if (model.wasPropertyExplicitlySet("rowLimit")) { this.rowLimit(model.getRowLimit()); } + if (model.wasPropertyExplicitlySet("isPaginationEnabled")) { + this.isPaginationEnabled(model.getIsPaginationEnabled()); + } return this; } } @@ -416,6 +444,25 @@ public Integer getRowLimit() { return rowLimit; } + /** + * Indicates if the reports being generated should be pagination enabled. If set to true, + * multiple reports can be generated and the details of next and previous report are present in + * Report. Values can either be 'true' or 'false'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isPaginationEnabled") + private final Boolean isPaginationEnabled; + + /** + * Indicates if the reports being generated should be pagination enabled. If set to true, + * multiple reports can be generated and the details of next and previous report are present in + * Report. Values can either be 'true' or 'false'. + * + * @return the value + */ + public Boolean getIsPaginationEnabled() { + return isPaginationEnabled; + } + @Override public String toString() { return this.toString(true); @@ -440,6 +487,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeLessThan=").append(String.valueOf(this.timeLessThan)); sb.append(", timeGreaterThan=").append(String.valueOf(this.timeGreaterThan)); sb.append(", rowLimit=").append(String.valueOf(this.rowLimit)); + sb.append(", isPaginationEnabled=").append(String.valueOf(this.isPaginationEnabled)); sb.append(")"); return sb.toString(); } @@ -463,6 +511,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeLessThan, other.timeLessThan) && java.util.Objects.equals(this.timeGreaterThan, other.timeGreaterThan) && java.util.Objects.equals(this.rowLimit, other.rowLimit) + && java.util.Objects.equals(this.isPaginationEnabled, other.isPaginationEnabled) && super.equals(other); } @@ -485,6 +534,11 @@ public int hashCode() { (result * PRIME) + (this.timeGreaterThan == null ? 43 : this.timeGreaterThan.hashCode()); result = (result * PRIME) + (this.rowLimit == null ? 43 : this.rowLimit.hashCode()); + result = + (result * PRIME) + + (this.isPaginationEnabled == null + ? 43 + : this.isPaginationEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSecurityAssessmentReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSecurityAssessmentReportDetails.java index 6391e2a9c90..f8cf73c8152 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSecurityAssessmentReportDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSecurityAssessmentReportDetails.java @@ -23,10 +23,11 @@ public final class GenerateSecurityAssessmentReportDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"format"}) - public GenerateSecurityAssessmentReportDetails(Format format) { + @java.beans.ConstructorProperties({"format", "isSingleReport"}) + public GenerateSecurityAssessmentReportDetails(Format format, Boolean isSingleReport) { super(); this.format = format; + this.isSingleReport = isSingleReport; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -46,13 +47,46 @@ public Builder format(Format format) { this.__explicitlySet__.add("format"); return this; } + /** + * Optional flag controlling the output format of a target group report: - true: Generate a + * single consolidated report file for the entire target group. - false: Generate a ZIP + * archive containing one file per target in the group. + * + *

Important: - This flag is only applicable when the security assessment OCID refers to + * a target group assessment (targetType TARGET_DATABASE_GROUP). - If {@code isSingleReport} + * is set to true for an individual target (targetType TARGET_DATABASE), the request will + * return an error. - If {@code isSingleReport} is null or false for an individual target, + * the value is ignored and the selected output format for the assessment type is generated. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSingleReport") + private Boolean isSingleReport; + + /** + * Optional flag controlling the output format of a target group report: - true: Generate a + * single consolidated report file for the entire target group. - false: Generate a ZIP + * archive containing one file per target in the group. + * + *

Important: - This flag is only applicable when the security assessment OCID refers to + * a target group assessment (targetType TARGET_DATABASE_GROUP). - If {@code isSingleReport} + * is set to true for an individual target (targetType TARGET_DATABASE), the request will + * return an error. - If {@code isSingleReport} is null or false for an individual target, + * the value is ignored and the selected output format for the assessment type is generated. + * + * @param isSingleReport the value to set + * @return this builder + */ + public Builder isSingleReport(Boolean isSingleReport) { + this.isSingleReport = isSingleReport; + this.__explicitlySet__.add("isSingleReport"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public GenerateSecurityAssessmentReportDetails build() { GenerateSecurityAssessmentReportDetails model = - new GenerateSecurityAssessmentReportDetails(this.format); + new GenerateSecurityAssessmentReportDetails(this.format, this.isSingleReport); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -64,6 +98,9 @@ public Builder copy(GenerateSecurityAssessmentReportDetails model) { if (model.wasPropertyExplicitlySet("format")) { this.format(model.getFormat()); } + if (model.wasPropertyExplicitlySet("isSingleReport")) { + this.isSingleReport(model.getIsSingleReport()); + } return this; } } @@ -124,6 +161,37 @@ public Format getFormat() { return format; } + /** + * Optional flag controlling the output format of a target group report: - true: Generate a + * single consolidated report file for the entire target group. - false: Generate a ZIP archive + * containing one file per target in the group. + * + *

Important: - This flag is only applicable when the security assessment OCID refers to a + * target group assessment (targetType TARGET_DATABASE_GROUP). - If {@code isSingleReport} is + * set to true for an individual target (targetType TARGET_DATABASE), the request will return an + * error. - If {@code isSingleReport} is null or false for an individual target, the value is + * ignored and the selected output format for the assessment type is generated. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSingleReport") + private final Boolean isSingleReport; + + /** + * Optional flag controlling the output format of a target group report: - true: Generate a + * single consolidated report file for the entire target group. - false: Generate a ZIP archive + * containing one file per target in the group. + * + *

Important: - This flag is only applicable when the security assessment OCID refers to a + * target group assessment (targetType TARGET_DATABASE_GROUP). - If {@code isSingleReport} is + * set to true for an individual target (targetType TARGET_DATABASE), the request will return an + * error. - If {@code isSingleReport} is null or false for an individual target, the value is + * ignored and the selected output format for the assessment type is generated. + * + * @return the value + */ + public Boolean getIsSingleReport() { + return isSingleReport; + } + @Override public String toString() { return this.toString(true); @@ -140,6 +208,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("GenerateSecurityAssessmentReportDetails("); sb.append("super=").append(super.toString()); sb.append("format=").append(String.valueOf(this.format)); + sb.append(", isSingleReport=").append(String.valueOf(this.isSingleReport)); sb.append(")"); return sb.toString(); } @@ -154,7 +223,9 @@ public boolean equals(Object o) { } GenerateSecurityAssessmentReportDetails other = (GenerateSecurityAssessmentReportDetails) o; - return java.util.Objects.equals(this.format, other.format) && super.equals(other); + return java.util.Objects.equals(this.format, other.format) + && java.util.Objects.equals(this.isSingleReport, other.isSingleReport) + && super.equals(other); } @Override @@ -162,6 +233,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.format == null ? 43 : this.format.hashCode()); + result = + (result * PRIME) + + (this.isSingleReport == null ? 43 : this.isSingleReport.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Include.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Include.java index 9980bd9a375..f155e3093da 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Include.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Include.java @@ -6,8 +6,8 @@ /** * Criteria to determine whether a target database should be included in the target database group. - * If the database satisfies any of compartments, targetDatabaseIds, freeformTags, or definedTags - * criteria, it qualifies for inclusion in the target database group
+ * If the database satisfies any of compartments, targetDatabaseIds, freeformTags, definedTags or + * systemTags criteria then it qualifies for inclusion in the target database group.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Report.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Report.java index 500a7c4ce08..026f799cf48 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Report.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Report.java @@ -35,6 +35,8 @@ public final class Report extends com.oracle.bmc.http.client.internal.Explicitly "type", "dataSource", "lifecycleDetails", + "previousReportId", + "nextReportId", "freeformTags", "definedTags", "systemTags" @@ -53,6 +55,8 @@ public Report( ReportType type, ReportDefinitionDataSource dataSource, String lifecycleDetails, + String previousReportId, + String nextReportId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -70,6 +74,8 @@ public Report( this.type = type; this.dataSource = dataSource; this.lifecycleDetails = lifecycleDetails; + this.previousReportId = previousReportId; + this.nextReportId = nextReportId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -276,6 +282,36 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** The OCID of the previous report generated. */ + @com.fasterxml.jackson.annotation.JsonProperty("previousReportId") + private String previousReportId; + + /** + * The OCID of the previous report generated. + * + * @param previousReportId the value to set + * @return this builder + */ + public Builder previousReportId(String previousReportId) { + this.previousReportId = previousReportId; + this.__explicitlySet__.add("previousReportId"); + return this; + } + /** The OCID of the next report generated. */ + @com.fasterxml.jackson.annotation.JsonProperty("nextReportId") + private String nextReportId; + + /** + * The OCID of the next report generated. + * + * @param nextReportId the value to set + * @return this builder + */ + public Builder nextReportId(String nextReportId) { + this.nextReportId = nextReportId; + this.__explicitlySet__.add("nextReportId"); + 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 @@ -366,6 +402,8 @@ public Report build() { this.type, this.dataSource, this.lifecycleDetails, + this.previousReportId, + this.nextReportId, this.freeformTags, this.definedTags, this.systemTags); @@ -416,6 +454,12 @@ public Builder copy(Report model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("previousReportId")) { + this.previousReportId(model.getPreviousReportId()); + } + if (model.wasPropertyExplicitlySet("nextReportId")) { + this.nextReportId(model.getNextReportId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -658,6 +702,32 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** The OCID of the previous report generated. */ + @com.fasterxml.jackson.annotation.JsonProperty("previousReportId") + private final String previousReportId; + + /** + * The OCID of the previous report generated. + * + * @return the value + */ + public String getPreviousReportId() { + return previousReportId; + } + + /** The OCID of the next report generated. */ + @com.fasterxml.jackson.annotation.JsonProperty("nextReportId") + private final String nextReportId; + + /** + * The OCID of the next report generated. + * + * @return the value + */ + public String getNextReportId() { + return nextReportId; + } + /** * 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 @@ -749,6 +819,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", type=").append(String.valueOf(this.type)); sb.append(", dataSource=").append(String.valueOf(this.dataSource)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", previousReportId=").append(String.valueOf(this.previousReportId)); + sb.append(", nextReportId=").append(String.valueOf(this.nextReportId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -779,6 +851,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.dataSource, other.dataSource) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.previousReportId, other.previousReportId) + && java.util.Objects.equals(this.nextReportId, other.nextReportId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -814,6 +888,10 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.previousReportId == null ? 43 : this.previousReportId.hashCode()); + result = (result * PRIME) + (this.nextReportId == null ? 43 : this.nextReportId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java index 5f41c5db5fe..ca960d0c211 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java @@ -48,6 +48,7 @@ public final class ReportDefinition "recordTimeSpan", "complianceStandards", "lifecycleDetails", + "isSchedulePaginationEnabled", "freeformTags", "definedTags", "systemTags" @@ -78,6 +79,7 @@ public ReportDefinition( String recordTimeSpan, java.util.List complianceStandards, String lifecycleDetails, + Boolean isSchedulePaginationEnabled, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -107,6 +109,7 @@ public ReportDefinition( this.recordTimeSpan = recordTimeSpan; this.complianceStandards = complianceStandards; this.lifecycleDetails = lifecycleDetails; + this.isSchedulePaginationEnabled = isSchedulePaginationEnabled; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -571,6 +574,27 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * Indicates if the reports being generated should be paginated. If set to true, multiple + * reports can be generated and the details of next and previous report are present in + * Report. Values can either be 'true' or 'false'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulePaginationEnabled") + private Boolean isSchedulePaginationEnabled; + + /** + * Indicates if the reports being generated should be paginated. If set to true, multiple + * reports can be generated and the details of next and previous report are present in + * Report. Values can either be 'true' or 'false'. + * + * @param isSchedulePaginationEnabled the value to set + * @return this builder + */ + public Builder isSchedulePaginationEnabled(Boolean isSchedulePaginationEnabled) { + this.isSchedulePaginationEnabled = isSchedulePaginationEnabled; + this.__explicitlySet__.add("isSchedulePaginationEnabled"); + 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 @@ -673,6 +697,7 @@ public ReportDefinition build() { this.recordTimeSpan, this.complianceStandards, this.lifecycleDetails, + this.isSchedulePaginationEnabled, this.freeformTags, this.definedTags, this.systemTags); @@ -759,6 +784,9 @@ public Builder copy(ReportDefinition model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("isSchedulePaginationEnabled")) { + this.isSchedulePaginationEnabled(model.getIsSchedulePaginationEnabled()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -1283,6 +1311,25 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * Indicates if the reports being generated should be paginated. If set to true, multiple + * reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulePaginationEnabled") + private final Boolean isSchedulePaginationEnabled; + + /** + * Indicates if the reports being generated should be paginated. If set to true, multiple + * reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + * @return the value + */ + public Boolean getIsSchedulePaginationEnabled() { + return isSchedulePaginationEnabled; + } + /** * 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 @@ -1389,6 +1436,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", recordTimeSpan=").append(String.valueOf(this.recordTimeSpan)); sb.append(", complianceStandards=").append(String.valueOf(this.complianceStandards)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", isSchedulePaginationEnabled=") + .append(String.valueOf(this.isSchedulePaginationEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1434,6 +1483,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.recordTimeSpan, other.recordTimeSpan) && java.util.Objects.equals(this.complianceStandards, other.complianceStandards) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.isSchedulePaginationEnabled, other.isSchedulePaginationEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1501,6 +1552,11 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.isSchedulePaginationEnabled == null + ? 43 + : this.isSchedulePaginationEnabled.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ScheduleReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ScheduleReportDetails.java index 5fc562f5865..cf1f432f1dd 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ScheduleReportDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ScheduleReportDetails.java @@ -28,20 +28,23 @@ public final class ScheduleReportDetails "schedule", "mimeType", "compartmentId", - "reportDetails" + "reportDetails", + "isPaginationEnabled" }) public ScheduleReportDetails( String displayName, String schedule, MimeType mimeType, String compartmentId, - ReportDetails reportDetails) { + ReportDetails reportDetails, + Boolean isPaginationEnabled) { super(); this.displayName = displayName; this.schedule = schedule; this.mimeType = mimeType; this.compartmentId = compartmentId; this.reportDetails = reportDetails; + this.isPaginationEnabled = isPaginationEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -141,6 +144,27 @@ public Builder reportDetails(ReportDetails reportDetails) { this.__explicitlySet__.add("reportDetails"); return this; } + /** + * Indicates if the reports being generated should be paginated. If set to true, multiple + * reports can be generated and the details of next and previous report are present in + * Report. Values can either be 'true' or 'false'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isPaginationEnabled") + private Boolean isPaginationEnabled; + + /** + * Indicates if the reports being generated should be paginated. If set to true, multiple + * reports can be generated and the details of next and previous report are present in + * Report. Values can either be 'true' or 'false'. + * + * @param isPaginationEnabled the value to set + * @return this builder + */ + public Builder isPaginationEnabled(Boolean isPaginationEnabled) { + this.isPaginationEnabled = isPaginationEnabled; + this.__explicitlySet__.add("isPaginationEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -152,7 +176,8 @@ public ScheduleReportDetails build() { this.schedule, this.mimeType, this.compartmentId, - this.reportDetails); + this.reportDetails, + this.isPaginationEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -176,6 +201,9 @@ public Builder copy(ScheduleReportDetails model) { if (model.wasPropertyExplicitlySet("reportDetails")) { this.reportDetails(model.getReportDetails()); } + if (model.wasPropertyExplicitlySet("isPaginationEnabled")) { + this.isPaginationEnabled(model.getIsPaginationEnabled()); + } return this; } } @@ -306,6 +334,25 @@ public ReportDetails getReportDetails() { return reportDetails; } + /** + * Indicates if the reports being generated should be paginated. If set to true, multiple + * reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isPaginationEnabled") + private final Boolean isPaginationEnabled; + + /** + * Indicates if the reports being generated should be paginated. If set to true, multiple + * reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + * @return the value + */ + public Boolean getIsPaginationEnabled() { + return isPaginationEnabled; + } + @Override public String toString() { return this.toString(true); @@ -326,6 +373,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", mimeType=").append(String.valueOf(this.mimeType)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", reportDetails=").append(String.valueOf(this.reportDetails)); + sb.append(", isPaginationEnabled=").append(String.valueOf(this.isPaginationEnabled)); sb.append(")"); return sb.toString(); } @@ -345,6 +393,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.mimeType, other.mimeType) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.reportDetails, other.reportDetails) + && java.util.Objects.equals(this.isPaginationEnabled, other.isPaginationEnabled) && super.equals(other); } @@ -361,6 +410,11 @@ public int hashCode() { result = (result * PRIME) + (this.reportDetails == null ? 43 : this.reportDetails.hashCode()); + result = + (result * PRIME) + + (this.isPaginationEnabled == null + ? 43 + : this.isPaginationEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociation.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociation.java index 4c668ed9638..fdb823dec2e 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociation.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociation.java @@ -35,6 +35,7 @@ public final class TargetAlertPolicyAssociation "timeUpdated", "lifecycleState", "lifecycleDetails", + "targetType", "freeformTags", "definedTags", "systemTags" @@ -51,6 +52,7 @@ public TargetAlertPolicyAssociation( java.util.Date timeUpdated, AlertPolicyLifecycleState lifecycleState, String lifecycleDetails, + TargetType targetType, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -66,6 +68,7 @@ public TargetAlertPolicyAssociation( this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; + this.targetType = targetType; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -133,12 +136,14 @@ public Builder policyId(String policyId) { this.__explicitlySet__.add("policyId"); return this; } - /** The OCID of the target on which alert policy is to be applied. */ + /** + * The OCID of the target or target database group on which alert policy is to be applied. + */ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private String targetId; /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. * * @param targetId the value to set * @return this builder @@ -246,6 +251,21 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** The resource type that is represented by the target alert policy association. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private TargetType targetType; + + /** + * The resource type that is represented by the target alert policy association. + * + * @param targetType the value to set + * @return this builder + */ + public Builder targetType(TargetType targetType) { + this.targetType = targetType; + this.__explicitlySet__.add("targetType"); + 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 @@ -334,6 +354,7 @@ public TargetAlertPolicyAssociation build() { this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.targetType, this.freeformTags, this.definedTags, this.systemTags); @@ -378,6 +399,9 @@ public Builder copy(TargetAlertPolicyAssociation model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("targetType")) { + this.targetType(model.getTargetType()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -452,12 +476,12 @@ public String getPolicyId() { return policyId; } - /** The OCID of the target on which alert policy is to be applied. */ + /** The OCID of the target or target database group on which alert policy is to be applied. */ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private final String targetId; /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. * * @return the value */ @@ -551,6 +575,65 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** The resource type that is represented by the target alert policy association. */ + public enum TargetType implements com.oracle.bmc.http.internal.BmcEnum { + TargetDatabase("TARGET_DATABASE"), + TargetDatabaseGroup("TARGET_DATABASE_GROUP"), + + /** + * 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(TargetType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TargetType v : TargetType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TargetType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TargetType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TargetType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The resource type that is represented by the target alert policy association. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private final TargetType targetType; + + /** + * The resource type that is represented by the target alert policy association. + * + * @return the value + */ + public TargetType getTargetType() { + return targetType; + } + /** * 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 @@ -640,6 +723,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", targetType=").append(String.valueOf(this.targetType)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -668,6 +752,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.targetType, other.targetType) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -695,6 +780,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.targetType == null ? 43 : this.targetType.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociationSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociationSummary.java index 16b42e2fa46..4c27fc305c1 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociationSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociationSummary.java @@ -35,6 +35,7 @@ public final class TargetAlertPolicyAssociationSummary "timeUpdated", "lifecycleState", "lifecycleDetails", + "targetType", "freeformTags", "definedTags" }) @@ -50,6 +51,7 @@ public TargetAlertPolicyAssociationSummary( java.util.Date timeUpdated, AlertPolicyLifecycleState lifecycleState, String lifecycleDetails, + TargetAlertPolicyAssociation.TargetType targetType, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -64,6 +66,7 @@ public TargetAlertPolicyAssociationSummary( this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; + this.targetType = targetType; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -130,12 +133,14 @@ public Builder policyId(String policyId) { this.__explicitlySet__.add("policyId"); return this; } - /** The OCID of the target on which alert policy is to be applied. */ + /** + * The OCID of the target or target database group on which alert policy is to be applied. + */ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private String targetId; /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. * * @param targetId the value to set * @return this builder @@ -243,6 +248,21 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** The resource type that is represented by the target alert policy association. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private TargetAlertPolicyAssociation.TargetType targetType; + + /** + * The resource type that is represented by the target alert policy association. + * + * @param targetType the value to set + * @return this builder + */ + public Builder targetType(TargetAlertPolicyAssociation.TargetType targetType) { + this.targetType = targetType; + this.__explicitlySet__.add("targetType"); + 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 @@ -310,6 +330,7 @@ public TargetAlertPolicyAssociationSummary build() { this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.targetType, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -353,6 +374,9 @@ public Builder copy(TargetAlertPolicyAssociationSummary model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("targetType")) { + this.targetType(model.getTargetType()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -424,12 +448,12 @@ public String getPolicyId() { return policyId; } - /** The OCID of the target on which alert policy is to be applied. */ + /** The OCID of the target or target database group on which alert policy is to be applied. */ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private final String targetId; /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. * * @return the value */ @@ -523,6 +547,19 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** The resource type that is represented by the target alert policy association. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private final TargetAlertPolicyAssociation.TargetType targetType; + + /** + * The resource type that is represented by the target alert policy association. + * + * @return the value + */ + public TargetAlertPolicyAssociation.TargetType getTargetType() { + return targetType; + } + /** * 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 @@ -593,6 +630,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", targetType=").append(String.valueOf(this.targetType)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -620,6 +658,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.targetType, other.targetType) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -646,6 +685,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.targetType == null ? 43 : this.targetType.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedCollection.java new file mode 100644 index 00000000000..99c01e0df6c --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Collection of unassociated target alert policy association summary.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetAlertPolicyUnassociatedCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TargetAlertPolicyUnassociatedCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public TargetAlertPolicyUnassociatedCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Array of unassociated target alert policy association summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of unassociated target alert policy association summary. + * + * @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 TargetAlertPolicyUnassociatedCollection build() { + TargetAlertPolicyUnassociatedCollection model = + new TargetAlertPolicyUnassociatedCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetAlertPolicyUnassociatedCollection 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); + } + + /** Array of unassociated target alert policy association summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of unassociated target alert policy association summary. + * + * @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("TargetAlertPolicyUnassociatedCollection("); + 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 TargetAlertPolicyUnassociatedCollection)) { + return false; + } + + TargetAlertPolicyUnassociatedCollection other = (TargetAlertPolicyUnassociatedCollection) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedSummary.java new file mode 100644 index 00000000000..82ef8e46282 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedSummary.java @@ -0,0 +1,391 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Summary of the target databases that differ from the association of the target database group. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetAlertPolicyUnassociatedSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TargetAlertPolicyUnassociatedSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetDatabaseId", + "isEnabled", + "notAppliedReason", + "freeformTags", + "definedTags", + "systemTags" + }) + public TargetAlertPolicyUnassociatedSummary( + String targetDatabaseId, + Boolean isEnabled, + String notAppliedReason, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.targetDatabaseId = targetDatabaseId; + this.isEnabled = isEnabled; + this.notAppliedReason = notAppliedReason; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the target database that differs from the alert policy association of the + * target database group. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseId") + private String targetDatabaseId; + + /** + * The OCID of the target database that differs from the alert policy association of the + * target database group. + * + * @param targetDatabaseId the value to set + * @return this builder + */ + public Builder targetDatabaseId(String targetDatabaseId) { + this.targetDatabaseId = targetDatabaseId; + this.__explicitlySet__.add("targetDatabaseId"); + return this; + } + /** Indicates if the target-alert policy association is enabled or disabled by user. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Indicates if the target-alert policy association is enabled or disabled by user. + * + * @param isEnabled the value to set + * @return this builder + */ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** Details on why policy is not applied on target. */ + @com.fasterxml.jackson.annotation.JsonProperty("notAppliedReason") + private String notAppliedReason; + + /** + * Details on why policy is not applied on target. + * + * @param notAppliedReason the value to set + * @return this builder + */ + public Builder notAppliedReason(String notAppliedReason) { + this.notAppliedReason = notAppliedReason; + this.__explicitlySet__.add("notAppliedReason"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: + * {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: + * {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see Resource Tags. 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. For more + * information, see Resource Tags. 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 TargetAlertPolicyUnassociatedSummary build() { + TargetAlertPolicyUnassociatedSummary model = + new TargetAlertPolicyUnassociatedSummary( + this.targetDatabaseId, + this.isEnabled, + this.notAppliedReason, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetAlertPolicyUnassociatedSummary model) { + if (model.wasPropertyExplicitlySet("targetDatabaseId")) { + this.targetDatabaseId(model.getTargetDatabaseId()); + } + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("notAppliedReason")) { + this.notAppliedReason(model.getNotAppliedReason()); + } + 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 target database that differs from the alert policy association of the target + * database group. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseId") + private final String targetDatabaseId; + + /** + * The OCID of the target database that differs from the alert policy association of the target + * database group. + * + * @return the value + */ + public String getTargetDatabaseId() { + return targetDatabaseId; + } + + /** Indicates if the target-alert policy association is enabled or disabled by user. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Indicates if the target-alert policy association is enabled or disabled by user. + * + * @return the value + */ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** Details on why policy is not applied on target. */ + @com.fasterxml.jackson.annotation.JsonProperty("notAppliedReason") + private final String notAppliedReason; + + /** + * Details on why policy is not applied on target. + * + * @return the value + */ + public String getNotAppliedReason() { + return notAppliedReason; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: {@code + * {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: {@code + * {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see Resource Tags. 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. For more + * information, see Resource Tags. 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("TargetAlertPolicyUnassociatedSummary("); + sb.append("super=").append(super.toString()); + sb.append("targetDatabaseId=").append(String.valueOf(this.targetDatabaseId)); + sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", notAppliedReason=").append(String.valueOf(this.notAppliedReason)); + 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 TargetAlertPolicyUnassociatedSummary)) { + return false; + } + + TargetAlertPolicyUnassociatedSummary other = (TargetAlertPolicyUnassociatedSummary) o; + return java.util.Objects.equals(this.targetDatabaseId, other.targetDatabaseId) + && java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.notAppliedReason, other.notAppliedReason) + && 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.targetDatabaseId == null ? 43 : this.targetDatabaseId.hashCode()); + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.notAppliedReason == null ? 43 : this.notAppliedReason.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateDataSafePrivateEndpointDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateDataSafePrivateEndpointDetails.java index 5e00ecc8cd5..3602c984bbe 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateDataSafePrivateEndpointDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateDataSafePrivateEndpointDetails.java @@ -28,20 +28,23 @@ public final class UpdateDataSafePrivateEndpointDetails "description", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdateDataSafePrivateEndpointDetails( String displayName, String description, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.description = description; this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -140,6 +143,30 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -151,7 +178,8 @@ public UpdateDataSafePrivateEndpointDetails build() { this.description, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -175,6 +203,9 @@ public Builder copy(UpdateDataSafePrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -271,6 +302,27 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -291,6 +343,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -310,6 +363,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -322,6 +376,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java index 1fb34d527bf..9591364d2ef 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java @@ -366,6 +366,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { ChangeReportDefinitionCompartment("CHANGE_REPORT_DEFINITION_COMPARTMENT"), DeleteReportDefinition("DELETE_REPORT_DEFINITION"), GenerateReport("GENERATE_REPORT"), + GeneratePaginatedReport("GENERATE_PAGINATED_REPORT"), ChangeReportCompartment("CHANGE_REPORT_COMPARTMENT"), DeleteArchiveRetrieval("DELETE_ARCHIVE_RETRIEVAL"), CreateArchiveRetrieval("CREATE_ARCHIVE_RETRIEVAL"), diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java index 80eae3c9f74..1391971bce2 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java @@ -362,6 +362,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { ChangeReportDefinitionCompartment("CHANGE_REPORT_DEFINITION_COMPARTMENT"), DeleteReportDefinition("DELETE_REPORT_DEFINITION"), GenerateReport("GENERATE_REPORT"), + GeneratePaginatedReport("GENERATE_PAGINATED_REPORT"), ChangeReportCompartment("CHANGE_REPORT_COMPARTMENT"), DeleteArchiveRetrieval("DELETE_ARCHIVE_RETRIEVAL"), CreateArchiveRetrieval("CREATE_ARCHIVE_RETRIEVAL"), diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListChecksRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListChecksRequest.java index c936151a7c7..3aa22acf047 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListChecksRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListChecksRequest.java @@ -113,6 +113,7 @@ public SortOrder getSortOrder() { public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { Title("title"), Category("category"), + Key("key"), ; private final String value; diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListFindingsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListFindingsRequest.java index ae9b16f2a56..c9ca23037be 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListFindingsRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListFindingsRequest.java @@ -142,6 +142,61 @@ public java.util.List getContainsSeverity() { public String getCategory() { return category; } + /** + * A filter to return only findings that match the specified risk level(s). Use + * containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + */ + private java.util.List containsOracleDefinedSeverity; + + /** + * A filter to return only findings that match the specified risk level(s). Use + * containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + */ + public enum ContainsOracleDefinedSeverity implements com.oracle.bmc.http.internal.BmcEnum { + High("HIGH"), + Medium("MEDIUM"), + Low("LOW"), + Evaluate("EVALUATE"), + Advisory("ADVISORY"), + Pass("PASS"), + Deferred("DEFERRED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ContainsOracleDefinedSeverity v : ContainsOracleDefinedSeverity.values()) { + map.put(v.getValue(), v); + } + } + + ContainsOracleDefinedSeverity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ContainsOracleDefinedSeverity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ContainsOracleDefinedSeverity: " + key); + } + }; + + /** + * A filter to return only findings that match the specified risk level(s). Use + * containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + */ + public java.util.List getContainsOracleDefinedSeverity() { + return containsOracleDefinedSeverity; + } /** A filter to return only the findings that match the specified lifecycle states. */ private com.oracle.bmc.datasafe.model.FindingLifecycleState lifecycleState; @@ -599,6 +654,37 @@ public Builder category(String category) { return this; } + /** + * A filter to return only findings that match the specified risk level(s). Use + * containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + */ + private java.util.List containsOracleDefinedSeverity = null; + + /** + * A filter to return only findings that match the specified risk level(s). Use + * containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + * + * @param containsOracleDefinedSeverity the value to set + * @return this builder instance + */ + public Builder containsOracleDefinedSeverity( + java.util.List containsOracleDefinedSeverity) { + this.containsOracleDefinedSeverity = containsOracleDefinedSeverity; + return this; + } + + /** + * Singular setter. A filter to return only findings that match the specified risk level(s). + * Use containsOracleDefinedSeverity parameter if need to filter by one or multiple risk + * levels. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder containsOracleDefinedSeverity(ContainsOracleDefinedSeverity singularValue) { + return this.containsOracleDefinedSeverity(java.util.Arrays.asList(singularValue)); + } + /** A filter to return only the findings that match the specified lifecycle states. */ private com.oracle.bmc.datasafe.model.FindingLifecycleState lifecycleState = null; @@ -954,6 +1040,7 @@ public Builder copy(ListFindingsRequest o) { severity(o.getSeverity()); containsSeverity(o.getContainsSeverity()); category(o.getCategory()); + containsOracleDefinedSeverity(o.getContainsOracleDefinedSeverity()); lifecycleState(o.getLifecycleState()); references(o.getReferences()); containsReferences(o.getContainsReferences()); @@ -1009,6 +1096,7 @@ public ListFindingsRequest buildWithoutInvocationCallback() { request.severity = severity; request.containsSeverity = containsSeverity; request.category = category; + request.containsOracleDefinedSeverity = containsOracleDefinedSeverity; request.lifecycleState = lifecycleState; request.references = references; request.containsReferences = containsReferences; @@ -1026,9 +1114,9 @@ public ListFindingsRequest buildWithoutInvocationCallback() { request.findingKey = findingKey; return request; // new ListFindingsRequest(securityAssessmentId, opcRequestId, isTopFinding, severity, - // containsSeverity, category, lifecycleState, references, containsReferences, limit, - // page, compartmentId, compartmentIdInSubtree, accessLevel, targetId, targetIds, - // scimQuery, field, sortBy, sortOrder, findingKey); + // containsSeverity, category, containsOracleDefinedSeverity, lifecycleState, + // references, containsReferences, limit, page, compartmentId, compartmentIdInSubtree, + // accessLevel, targetId, targetIds, scimQuery, field, sortBy, sortOrder, findingKey); } } @@ -1045,6 +1133,7 @@ public Builder toBuilder() { .severity(severity) .containsSeverity(containsSeverity) .category(category) + .containsOracleDefinedSeverity(containsOracleDefinedSeverity) .lifecycleState(lifecycleState) .references(references) .containsReferences(containsReferences) @@ -1082,6 +1171,8 @@ public String toString() { sb.append(",severity=").append(String.valueOf(this.severity)); sb.append(",containsSeverity=").append(String.valueOf(this.containsSeverity)); sb.append(",category=").append(String.valueOf(this.category)); + sb.append(",containsOracleDefinedSeverity=") + .append(String.valueOf(this.containsOracleDefinedSeverity)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",references=").append(String.valueOf(this.references)); sb.append(",containsReferences=").append(String.valueOf(this.containsReferences)); @@ -1118,6 +1209,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.severity, other.severity) && java.util.Objects.equals(this.containsSeverity, other.containsSeverity) && java.util.Objects.equals(this.category, other.category) + && java.util.Objects.equals( + this.containsOracleDefinedSeverity, other.containsOracleDefinedSeverity) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.references, other.references) && java.util.Objects.equals(this.containsReferences, other.containsReferences) @@ -1152,6 +1245,11 @@ public int hashCode() { (result * PRIME) + (this.containsSeverity == null ? 43 : this.containsSeverity.hashCode()); result = (result * PRIME) + (this.category == null ? 43 : this.category.hashCode()); + result = + (result * PRIME) + + (this.containsOracleDefinedSeverity == null + ? 43 + : this.containsOracleDefinedSeverity.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyAssociationsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyAssociationsRequest.java index 72cab4efeb2..8a5e078f68b 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyAssociationsRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyAssociationsRequest.java @@ -165,6 +165,19 @@ public static SortBy create(String key) { public SortBy getSortBy() { return sortBy; } + /** + * A optional filter to return only resources that belong to the specified alert policy + * association type. + */ + private com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation.TargetType targetType; + + /** + * A optional filter to return only resources that belong to the specified alert policy + * association type. + */ + public com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation.TargetType getTargetType() { + return targetType; + } /** Unique identifier for the request. */ private String opcRequestId; @@ -437,6 +450,26 @@ public Builder sortBy(SortBy sortBy) { return this; } + /** + * A optional filter to return only resources that belong to the specified alert policy + * association type. + */ + private com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation.TargetType targetType = + null; + + /** + * A optional filter to return only resources that belong to the specified alert policy + * association type. + * + * @param targetType the value to set + * @return this builder instance + */ + public Builder targetType( + com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation.TargetType targetType) { + this.targetType = targetType; + return this; + } + /** Unique identifier for the request. */ private String opcRequestId = null; @@ -585,6 +618,7 @@ public Builder copy(ListTargetAlertPolicyAssociationsRequest o) { page(o.getPage()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); + targetType(o.getTargetType()); opcRequestId(o.getOpcRequestId()); timeCreatedGreaterThanOrEqualTo(o.getTimeCreatedGreaterThanOrEqualTo()); timeCreatedLessThan(o.getTimeCreatedLessThan()); @@ -636,6 +670,7 @@ public ListTargetAlertPolicyAssociationsRequest buildWithoutInvocationCallback() request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; + request.targetType = targetType; request.opcRequestId = opcRequestId; request.timeCreatedGreaterThanOrEqualTo = timeCreatedGreaterThanOrEqualTo; request.timeCreatedLessThan = timeCreatedLessThan; @@ -644,7 +679,7 @@ public ListTargetAlertPolicyAssociationsRequest buildWithoutInvocationCallback() return request; // new ListTargetAlertPolicyAssociationsRequest(compartmentId, // targetAlertPolicyAssociationId, alertPolicyId, targetId, lifecycleState, limit, page, - // sortOrder, sortBy, opcRequestId, timeCreatedGreaterThanOrEqualTo, + // sortOrder, sortBy, targetType, opcRequestId, timeCreatedGreaterThanOrEqualTo, // timeCreatedLessThan, compartmentIdInSubtree, accessLevel); } } @@ -665,6 +700,7 @@ public Builder toBuilder() { .page(page) .sortOrder(sortOrder) .sortBy(sortBy) + .targetType(targetType) .opcRequestId(opcRequestId) .timeCreatedGreaterThanOrEqualTo(timeCreatedGreaterThanOrEqualTo) .timeCreatedLessThan(timeCreatedLessThan) @@ -696,6 +732,7 @@ public String toString() { 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(",targetType=").append(String.valueOf(this.targetType)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",timeCreatedGreaterThanOrEqualTo=") .append(String.valueOf(this.timeCreatedGreaterThanOrEqualTo)); @@ -728,6 +765,7 @@ public boolean equals(Object o) { && 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.targetType, other.targetType) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals( this.timeCreatedGreaterThanOrEqualTo, other.timeCreatedGreaterThanOrEqualTo) @@ -760,6 +798,7 @@ public int 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.targetType == null ? 43 : this.targetType.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyUnassociatedMembersRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyUnassociatedMembersRequest.java new file mode 100644 index 00000000000..24a765ef219 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyUnassociatedMembersRequest.java @@ -0,0 +1,414 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListTargetAlertPolicyUnassociatedMembersRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListTargetAlertPolicyUnassociatedMembersRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the target-alert policy association. */ + private String targetAlertPolicyAssociationId; + + /** The OCID of the target-alert policy association. */ + public String getTargetAlertPolicyAssociationId() { + return targetAlertPolicyAssociationId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** The field to sort by. Only one sort parameter may be provided. */ + private SortBy sortBy; + + /** The field to sort by. Only one sort parameter may be provided. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TargetId("targetId"), + NotAppliedReason("notAppliedReason"), + ; + + 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 parameter may be provided. */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (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 (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** 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< + ListTargetAlertPolicyUnassociatedMembersRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the target-alert policy association. */ + private String targetAlertPolicyAssociationId = null; + + /** + * The OCID of the target-alert policy association. + * + * @param targetAlertPolicyAssociationId the value to set + * @return this builder instance + */ + public Builder targetAlertPolicyAssociationId(String targetAlertPolicyAssociationId) { + this.targetAlertPolicyAssociationId = targetAlertPolicyAssociationId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The field to sort by. Only one sort parameter may be provided. */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort parameter may be provided. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + 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(ListTargetAlertPolicyUnassociatedMembersRequest o) { + targetAlertPolicyAssociationId(o.getTargetAlertPolicyAssociationId()); + 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 ListTargetAlertPolicyUnassociatedMembersRequest 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 ListTargetAlertPolicyUnassociatedMembersRequest + */ + public ListTargetAlertPolicyUnassociatedMembersRequest build() { + ListTargetAlertPolicyUnassociatedMembersRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListTargetAlertPolicyUnassociatedMembersRequest 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 ListTargetAlertPolicyUnassociatedMembersRequest + */ + public ListTargetAlertPolicyUnassociatedMembersRequest buildWithoutInvocationCallback() { + ListTargetAlertPolicyUnassociatedMembersRequest request = + new ListTargetAlertPolicyUnassociatedMembersRequest(); + request.targetAlertPolicyAssociationId = targetAlertPolicyAssociationId; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListTargetAlertPolicyUnassociatedMembersRequest(targetAlertPolicyAssociationId, + // 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() + .targetAlertPolicyAssociationId(targetAlertPolicyAssociationId) + .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(",targetAlertPolicyAssociationId=") + .append(String.valueOf(this.targetAlertPolicyAssociationId)); + 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 ListTargetAlertPolicyUnassociatedMembersRequest)) { + return false; + } + + ListTargetAlertPolicyUnassociatedMembersRequest other = + (ListTargetAlertPolicyUnassociatedMembersRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.targetAlertPolicyAssociationId, other.targetAlertPolicyAssociationId) + && 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.targetAlertPolicyAssociationId == null + ? 43 + : this.targetAlertPolicyAssociationId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListUsersRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListUsersRequest.java index c321500761d..cefc5eda601 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListUsersRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListUsersRequest.java @@ -324,6 +324,13 @@ public java.util.Date getTimePasswordExpiryLessThan() { public String getPage() { return page; } + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId; + + /** A filter to return only resources that match the specified compartment OCID. */ + public String getCompartmentId() { + return compartmentId; + } /** The sort order to use, either ascending (ASC) or descending (DESC). */ private SortOrder sortOrder; @@ -863,6 +870,20 @@ public Builder page(String page) { return this; } + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ private SortOrder sortOrder = null; @@ -1004,6 +1025,7 @@ public Builder copy(ListUsersRequest o) { timePasswordExpiryGreaterThanOrEqualTo(o.getTimePasswordExpiryGreaterThanOrEqualTo()); timePasswordExpiryLessThan(o.getTimePasswordExpiryLessThan()); page(o.getPage()); + compartmentId(o.getCompartmentId()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); opcRequestId(o.getOpcRequestId()); @@ -1066,6 +1088,7 @@ public ListUsersRequest buildWithoutInvocationCallback() { request.timePasswordExpiryGreaterThanOrEqualTo = timePasswordExpiryGreaterThanOrEqualTo; request.timePasswordExpiryLessThan = timePasswordExpiryLessThan; request.page = page; + request.compartmentId = compartmentId; request.sortOrder = sortOrder; request.sortBy = sortBy; request.opcRequestId = opcRequestId; @@ -1077,8 +1100,8 @@ public ListUsersRequest buildWithoutInvocationCallback() { // authenticationType, userName, targetId, timeLastLoginGreaterThanOrEqualTo, // timeLastLoginLessThan, timeUserCreatedGreaterThanOrEqualTo, timeUserCreatedLessThan, // timePasswordLastChangedGreaterThanOrEqualTo, timePasswordLastChangedLessThan, - // timePasswordExpiryGreaterThanOrEqualTo, timePasswordExpiryLessThan, page, sortOrder, - // sortBy, opcRequestId, schemaList, areAllSchemasAccessible); + // timePasswordExpiryGreaterThanOrEqualTo, timePasswordExpiryLessThan, page, + // compartmentId, sortOrder, sortBy, opcRequestId, schemaList, areAllSchemasAccessible); } } @@ -1112,6 +1135,7 @@ public Builder toBuilder() { .timePasswordExpiryGreaterThanOrEqualTo(timePasswordExpiryGreaterThanOrEqualTo) .timePasswordExpiryLessThan(timePasswordExpiryLessThan) .page(page) + .compartmentId(compartmentId) .sortOrder(sortOrder) .sortBy(sortBy) .opcRequestId(opcRequestId) @@ -1161,6 +1185,7 @@ public String toString() { sb.append(",timePasswordExpiryLessThan=") .append(String.valueOf(this.timePasswordExpiryLessThan)); sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -1215,6 +1240,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.timePasswordExpiryLessThan, other.timePasswordExpiryLessThan) && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) @@ -1293,6 +1319,9 @@ public int hashCode() { ? 43 : this.timePasswordExpiryLessThan.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.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()); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTargetAlertPolicyUnassociatedMembersResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTargetAlertPolicyUnassociatedMembersResponse.java new file mode 100644 index 00000000000..1d0179d05db --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTargetAlertPolicyUnassociatedMembersResponse.java @@ -0,0 +1,290 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListTargetAlertPolicyUnassociatedMembersResponse + 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code TargetAlertPolicyUnassociatedCollection} instance. */ + private com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection + targetAlertPolicyUnassociatedCollection; + + /** + * The returned {@code TargetAlertPolicyUnassociatedCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection + getTargetAlertPolicyUnassociatedCollection() { + return targetAlertPolicyUnassociatedCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "targetAlertPolicyUnassociatedCollection" + }) + private ListTargetAlertPolicyUnassociatedMembersResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection + targetAlertPolicyUnassociatedCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.targetAlertPolicyUnassociatedCollection = targetAlertPolicyUnassociatedCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListTargetAlertPolicyUnassociatedMembersResponse> { + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code TargetAlertPolicyUnassociatedCollection} instance. */ + private com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection + targetAlertPolicyUnassociatedCollection; + + /** + * The returned {@code TargetAlertPolicyUnassociatedCollection} instance. + * + * @param targetAlertPolicyUnassociatedCollection the value to set + * @return this builder + */ + public Builder targetAlertPolicyUnassociatedCollection( + com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection + targetAlertPolicyUnassociatedCollection) { + this.targetAlertPolicyUnassociatedCollection = targetAlertPolicyUnassociatedCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListTargetAlertPolicyUnassociatedMembersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + targetAlertPolicyUnassociatedCollection(o.getTargetAlertPolicyUnassociatedCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListTargetAlertPolicyUnassociatedMembersResponse build() { + return new ListTargetAlertPolicyUnassociatedMembersResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + targetAlertPolicyUnassociatedCollection); + } + } + + /** + * 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(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",targetAlertPolicyUnassociatedCollection=") + .append(String.valueOf(targetAlertPolicyUnassociatedCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListTargetAlertPolicyUnassociatedMembersResponse)) { + return false; + } + + ListTargetAlertPolicyUnassociatedMembersResponse other = + (ListTargetAlertPolicyUnassociatedMembersResponse) 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.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.targetAlertPolicyUnassociatedCollection, + other.targetAlertPolicyUnassociatedCollection); + } + + @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.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.targetAlertPolicyUnassociatedCollection == null + ? 43 + : this.targetAlertPolicyUnassociatedCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json b/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json index 264e748fef1..2302c10ce6b 100644 --- a/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json +++ b/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json @@ -7045,6 +7045,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation$TargetType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociationCollection", @@ -7073,6 +7079,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.TargetDatabase", diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 2684698659e..db2692f9d95 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index e74837d0ad0..6da06fdfad4 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index 2726b5fb789..0193b8a3d18 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index 18f40c0ea43..39653669291 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 2535cc58f1b..fa819cc1689 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 0b3da7002c4..2d30a7a2cee 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index d2249044598..a26c8b54446 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index 1a685fe8418..e9b9dd6b9a2 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 97806f56feb..54677239e38 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index a41a0fff842..01157b58d0d 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 9159939b884..e3b3fe6a011 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.91.1 + 3.92.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 2cfdf578704..e35178a0509 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index ad9b3184941..3b118b9f6fb 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 7758675b270..13a86477e58 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 46f143e3530..25645088de0 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.91.1 + 3.92.0 com.fasterxml.jackson.core @@ -48,7 +48,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.91.1 + 3.92.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 272f95cdfd5..58ff1711a57 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.91.1 + 3.92.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 064b98501e4..9c218fb7820 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 4a3b60d5360..6b078211e47 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.91.1 + 3.92.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.91.1 + 3.92.0 pom import @@ -813,5 +813,9 @@ com.oracle.oci.sdk oci-java-sdk-costad + + com.oracle.oci.sdk + oci-java-sdk-datacc + \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index f2acf029116..23182cd3d82 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 29d5dd96e82..a19e7232deb 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 0702ac58a22..edc65037181 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 2cb3ec9d445..6c140bb7586 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.91.1 + 3.92.0 pom import @@ -699,5 +699,9 @@ com.oracle.oci.sdk oci-java-sdk-costad + + com.oracle.oci.sdk + oci-java-sdk-datacc + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 7a3d5825f62..b827362751c 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 5b41b37dc31..c8962484208 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index 4426200cf10..27781771394 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 7dc9878040d..c0c1503ba8c 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java index ee16df7b9af..61e16adeed8 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java @@ -234,6 +234,25 @@ ChangeGenerativeAiProjectCompartmentResponse changeGenerativeAiProjectCompartmen ChangeHostedApplicationCompartmentResponse changeHostedApplicationCompartment( ChangeHostedApplicationCompartmentRequest request); + /** + * Moves a hosted application into a different compartment within the same tenancy. For + * information about moving resources between compartments, see [Moving Resources to a Different + * Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @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 + * ChangeHostedApplicationIamCompartment API. + */ + ChangeHostedApplicationIamCompartmentResponse changeHostedApplicationIamCompartment( + ChangeHostedApplicationIamCompartmentRequest request); + /** * Moves a hosted application storage into a different compartment within the same tenancy. For * information about moving resources between compartments, see [Moving Resources to a Different @@ -410,6 +429,23 @@ CreateGenerativeAiProjectResponse createGenerativeAiProject( */ CreateHostedApplicationResponse createHostedApplication(CreateHostedApplicationRequest request); + /** + * Creates a hosted application. + * + * @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 + * CreateHostedApplicationIam API. + */ + CreateHostedApplicationIamResponse createHostedApplicationIam( + CreateHostedApplicationIamRequest request); + /** * Creates a hosted application storage. * @@ -640,6 +676,27 @@ DeleteGenerativeAiProjectResponse deleteGenerativeAiProject( */ DeleteHostedApplicationResponse deleteHostedApplication(DeleteHostedApplicationRequest request); + /** + * Deletes a hosted application. You can only delete hosted application without attached + * resources. Before you delete a hosting hosted application, you must delete the endpoints + * associated to that application. Before you delete a fine-tuning hosted application, you must + * delete the custom model on that application. The delete action permanently deletes the + * cluster. This action can't be undone. + * + * @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 + * DeleteHostedApplicationIam API. + */ + DeleteHostedApplicationIamResponse deleteHostedApplicationIam( + DeleteHostedApplicationIamRequest request); + /** * Deletes a hosted application. You can only delete hosted application without attached * resources. Before you delete a hosting hosted application, you must delete the endpoints @@ -859,6 +916,22 @@ GetGenerativeAiPrivateEndpointResponse getGenerativeAiPrivateEndpoint( */ GetHostedApplicationResponse getHostedApplication(GetHostedApplicationRequest request); + /** + * Gets information about a hosted application. + * + * @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 + * GetHostedApplicationIam API. + */ + GetHostedApplicationIamResponse getHostedApplicationIam(GetHostedApplicationIamRequest request); + /** * Gets information about a hosted application storage. * @@ -1127,6 +1200,24 @@ ListHostedApplicationStoragesResponse listHostedApplicationStorages( * 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 + * ListHostedApplicationsIam API. + */ + ListHostedApplicationsIamResponse listHostedApplicationsIam( + ListHostedApplicationsIamRequest request); + + /** + * Lists the hosted applications in a specific compartment. Provide either applicationId or + * applicationIamId to filter by parent. + * + * @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 * ListHostedDeployments API. @@ -1425,6 +1516,23 @@ UpdateGenerativeAiProjectResponse updateGenerativeAiProject( */ UpdateHostedApplicationResponse updateHostedApplication(UpdateHostedApplicationRequest request); + /** + * Updates a hosted application. + * + * @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 + * UpdateHostedApplicationIam API. + */ + UpdateHostedApplicationIamResponse updateHostedApplicationIam( + UpdateHostedApplicationIamRequest request); + /** * Updates a hosted deployment. * diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java index 42f946f3852..05a4895e87e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java @@ -233,6 +233,26 @@ java.util.concurrent.Future changeEndpointCom ChangeHostedApplicationCompartmentResponse> handler); + /** + * Moves a hosted application into a different compartment within the same tenancy. For + * information about moving resources between compartments, see [Moving Resources to a Different + * Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @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 + changeHostedApplicationIamCompartment( + ChangeHostedApplicationIamCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeHostedApplicationIamCompartmentRequest, + ChangeHostedApplicationIamCompartmentResponse> + handler); + /** * Moves a hosted application storage into a different compartment within the same tenancy. For * information about moving resources between compartments, see [Moving Resources to a Different @@ -411,6 +431,22 @@ java.util.concurrent.Future createHostedApplica CreateHostedApplicationRequest, CreateHostedApplicationResponse> handler); + /** + * Creates a hosted application. + * + * @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 createHostedApplicationIam( + CreateHostedApplicationIamRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateHostedApplicationIamRequest, CreateHostedApplicationIamResponse> + handler); + /** * Creates a hosted application storage. * @@ -640,6 +676,26 @@ java.util.concurrent.Future deleteHostedApplica DeleteHostedApplicationRequest, DeleteHostedApplicationResponse> handler); + /** + * Deletes a hosted application. You can only delete hosted application without attached + * resources. Before you delete a hosting hosted application, you must delete the endpoints + * associated to that application. Before you delete a fine-tuning hosted application, you must + * delete the custom model on that application. The delete action permanently deletes the + * cluster. This action can't be undone. + * + * @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 deleteHostedApplicationIam( + DeleteHostedApplicationIamRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteHostedApplicationIamRequest, DeleteHostedApplicationIamResponse> + handler); + /** * Deletes a hosted application. You can only delete hosted application without attached * resources. Before you delete a hosting hosted application, you must delete the endpoints @@ -858,6 +914,22 @@ java.util.concurrent.Future getHostedApplication( GetHostedApplicationRequest, GetHostedApplicationResponse> handler); + /** + * Gets information about a hosted application. + * + * @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 getHostedApplicationIam( + GetHostedApplicationIamRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + handler); + /** * Gets information about a hosted application storage. * @@ -1123,6 +1195,23 @@ java.util.concurrent.Future listHostedApplicatio * 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 listHostedApplicationsIam( + ListHostedApplicationsIamRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListHostedApplicationsIamRequest, ListHostedApplicationsIamResponse> + handler); + + /** + * Lists the hosted applications in a specific compartment. Provide either applicationId or + * applicationIamId to filter by parent. + * + * @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 listHostedDeployments( ListHostedDeploymentsRequest request, com.oracle.bmc.responses.AsyncHandler< @@ -1418,6 +1507,22 @@ java.util.concurrent.Future updateHostedApplica UpdateHostedApplicationRequest, UpdateHostedApplicationResponse> handler); + /** + * Updates a hosted application. + * + * @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 updateHostedApplicationIam( + UpdateHostedApplicationIamRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateHostedApplicationIamRequest, UpdateHostedApplicationIamResponse> + handler); + /** * Updates a hosted deployment. * diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java index c2cb9976caa..3670a1272de 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java @@ -431,6 +431,49 @@ public java.util.concurrent.Future changeEndp .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeHostedApplicationIamCompartment( + ChangeHostedApplicationIamCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeHostedApplicationIamCompartmentRequest, + ChangeHostedApplicationIamCompartmentResponse> + handler) { + + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + Objects.requireNonNull( + request.getChangeHostedApplicationCompartmentDetails(), + "changeHostedApplicationCompartmentDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + + return clientCall(request, ChangeHostedApplicationIamCompartmentResponse::builder) + .logger(LOG, "changeHostedApplicationIamCompartment") + .serviceDetails( + "GenerativeAi", + "ChangeHostedApplicationIamCompartment", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/ChangeHostedApplicationIamCompartment") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeHostedApplicationIamCompartmentRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .appendPathParam(request.getHostedApplicationIamId()) + .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-request-id", + ChangeHostedApplicationIamCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeHostedApplicationStorageCompartment( @@ -836,6 +879,48 @@ public java.util.concurrent.Future createHosted .callAsync(handler); } + @Override + public java.util.concurrent.Future + createHostedApplicationIam( + CreateHostedApplicationIamRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateHostedApplicationIamRequest, + CreateHostedApplicationIamResponse> + handler) { + Objects.requireNonNull( + request.getCreateHostedApplicationIamDetails(), + "createHostedApplicationIamDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + + return clientCall(request, CreateHostedApplicationIamResponse::builder) + .logger(LOG, "createHostedApplicationIam") + .serviceDetails( + "GenerativeAi", + "CreateHostedApplicationIam", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/CreateHostedApplicationIam") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateHostedApplicationIamRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.generativeai.model.HostedApplicationIam.class, + CreateHostedApplicationIamResponse.Builder::hostedApplicationIam) + .handleResponseHeaderString( + "etag", CreateHostedApplicationIamResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateHostedApplicationIamResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateHostedApplicationIamResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createHostedApplicationStorage( @@ -1331,6 +1416,44 @@ public java.util.concurrent.Future deleteHosted .callAsync(handler); } + @Override + public java.util.concurrent.Future + deleteHostedApplicationIam( + DeleteHostedApplicationIamRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteHostedApplicationIamRequest, + DeleteHostedApplicationIamResponse> + handler) { + + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + + return clientCall(request, DeleteHostedApplicationIamResponse::builder) + .logger(LOG, "deleteHostedApplicationIam") + .serviceDetails( + "GenerativeAi", + "DeleteHostedApplicationIam", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/DeleteHostedApplicationIam") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteHostedApplicationIamRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .appendPathParam(request.getHostedApplicationIamId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteHostedApplicationIamResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteHostedApplicationIamResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteHostedApplicationStorage( @@ -1809,6 +1932,42 @@ public java.util.concurrent.Future getHostedApplic .callAsync(handler); } + @Override + public java.util.concurrent.Future getHostedApplicationIam( + GetHostedApplicationIamRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + handler) { + + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + + return clientCall(request, GetHostedApplicationIamResponse::builder) + .logger(LOG, "getHostedApplicationIam") + .serviceDetails( + "GenerativeAi", + "GetHostedApplicationIam", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/GetHostedApplicationIam") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetHostedApplicationIamRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .appendPathParam(request.getHostedApplicationIamId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.generativeai.model.HostedApplicationIam.class, + GetHostedApplicationIamResponse.Builder::hostedApplicationIam) + .handleResponseHeaderString("etag", GetHostedApplicationIamResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetHostedApplicationIamResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getHostedApplicationStorage( @@ -2453,6 +2612,48 @@ public java.util.concurrent.Future listHostedApp .callAsync(handler); } + @Override + public java.util.concurrent.Future listHostedApplicationsIam( + ListHostedApplicationsIamRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListHostedApplicationsIamRequest, ListHostedApplicationsIamResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + + return clientCall(request, ListHostedApplicationsIamResponse::builder) + .logger(LOG, "listHostedApplicationsIam") + .serviceDetails( + "GenerativeAi", + "ListHostedApplicationsIam", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationCollection/ListHostedApplicationsIam") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListHostedApplicationsIamRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.generativeai.model.HostedApplicationCollection.class, + ListHostedApplicationsIamResponse.Builder::hostedApplicationCollection) + .handleResponseHeaderString( + "opc-request-id", ListHostedApplicationsIamResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListHostedApplicationsIamResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listHostedDeployments( ListHostedDeploymentsRequest request, @@ -3289,6 +3490,48 @@ public java.util.concurrent.Future updateHosted .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateHostedApplicationIam( + UpdateHostedApplicationIamRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateHostedApplicationIamRequest, + UpdateHostedApplicationIamResponse> + handler) { + + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + Objects.requireNonNull( + request.getUpdateHostedApplicationIamDetails(), + "updateHostedApplicationIamDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + + return clientCall(request, UpdateHostedApplicationIamResponse::builder) + .logger(LOG, "updateHostedApplicationIam") + .serviceDetails( + "GenerativeAi", + "UpdateHostedApplicationIam", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/UpdateHostedApplicationIam") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateHostedApplicationIamRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .appendPathParam(request.getHostedApplicationIamId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateHostedApplicationIamResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateHostedApplicationIamResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateHostedDeployment( UpdateHostedDeploymentRequest request, diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java index cbe05336d5d..b6b0c92daea 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java @@ -434,6 +434,45 @@ public ChangeHostedApplicationCompartmentResponse changeHostedApplicationCompart .callSync(); } + @Override + public ChangeHostedApplicationIamCompartmentResponse changeHostedApplicationIamCompartment( + ChangeHostedApplicationIamCompartmentRequest request) { + + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + Objects.requireNonNull( + request.getChangeHostedApplicationCompartmentDetails(), + "changeHostedApplicationCompartmentDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + + return clientCall(request, ChangeHostedApplicationIamCompartmentResponse::builder) + .logger(LOG, "changeHostedApplicationIamCompartment") + .serviceDetails( + "GenerativeAi", + "ChangeHostedApplicationIamCompartment", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/ChangeHostedApplicationIamCompartment") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeHostedApplicationIamCompartmentRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .appendPathParam(request.getHostedApplicationIamId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeHostedApplicationIamCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeHostedApplicationStorageCompartmentResponse changeHostedApplicationStorageCompartment( @@ -811,6 +850,44 @@ public CreateHostedApplicationResponse createHostedApplication( .callSync(); } + @Override + public CreateHostedApplicationIamResponse createHostedApplicationIam( + CreateHostedApplicationIamRequest request) { + Objects.requireNonNull( + request.getCreateHostedApplicationIamDetails(), + "createHostedApplicationIamDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + + return clientCall(request, CreateHostedApplicationIamResponse::builder) + .logger(LOG, "createHostedApplicationIam") + .serviceDetails( + "GenerativeAi", + "CreateHostedApplicationIam", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/CreateHostedApplicationIam") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateHostedApplicationIamRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.generativeai.model.HostedApplicationIam.class, + CreateHostedApplicationIamResponse.Builder::hostedApplicationIam) + .handleResponseHeaderString( + "etag", CreateHostedApplicationIamResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateHostedApplicationIamResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateHostedApplicationIamResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateHostedApplicationStorageResponse createHostedApplicationStorage( CreateHostedApplicationStorageRequest request) { @@ -1269,6 +1346,40 @@ public DeleteHostedApplicationResponse deleteHostedApplication( .callSync(); } + @Override + public DeleteHostedApplicationIamResponse deleteHostedApplicationIam( + DeleteHostedApplicationIamRequest request) { + + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + + return clientCall(request, DeleteHostedApplicationIamResponse::builder) + .logger(LOG, "deleteHostedApplicationIam") + .serviceDetails( + "GenerativeAi", + "DeleteHostedApplicationIam", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/DeleteHostedApplicationIam") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteHostedApplicationIamRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .appendPathParam(request.getHostedApplicationIamId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteHostedApplicationIamResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteHostedApplicationIamResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteHostedApplicationStorageResponse deleteHostedApplicationStorage( DeleteHostedApplicationStorageRequest request) { @@ -1710,6 +1821,40 @@ public GetHostedApplicationResponse getHostedApplication(GetHostedApplicationReq .callSync(); } + @Override + public GetHostedApplicationIamResponse getHostedApplicationIam( + GetHostedApplicationIamRequest request) { + + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + + return clientCall(request, GetHostedApplicationIamResponse::builder) + .logger(LOG, "getHostedApplicationIam") + .serviceDetails( + "GenerativeAi", + "GetHostedApplicationIam", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/GetHostedApplicationIam") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetHostedApplicationIamRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .appendPathParam(request.getHostedApplicationIamId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.generativeai.model.HostedApplicationIam.class, + GetHostedApplicationIamResponse.Builder::hostedApplicationIam) + .handleResponseHeaderString("etag", GetHostedApplicationIamResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetHostedApplicationIamResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetHostedApplicationStorageResponse getHostedApplicationStorage( GetHostedApplicationStorageRequest request) { @@ -2308,6 +2453,46 @@ public ListHostedApplicationsResponse listHostedApplications( .callSync(); } + @Override + public ListHostedApplicationsIamResponse listHostedApplicationsIam( + ListHostedApplicationsIamRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + + return clientCall(request, ListHostedApplicationsIamResponse::builder) + .logger(LOG, "listHostedApplicationsIam") + .serviceDetails( + "GenerativeAi", + "ListHostedApplicationsIam", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationCollection/ListHostedApplicationsIam") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListHostedApplicationsIamRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.generativeai.model.HostedApplicationCollection.class, + ListHostedApplicationsIamResponse.Builder::hostedApplicationCollection) + .handleResponseHeaderString( + "opc-request-id", ListHostedApplicationsIamResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListHostedApplicationsIamResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListHostedDeploymentsResponse listHostedDeployments( ListHostedDeploymentsRequest request) { @@ -3093,6 +3278,44 @@ public UpdateHostedApplicationResponse updateHostedApplication( .callSync(); } + @Override + public UpdateHostedApplicationIamResponse updateHostedApplicationIam( + UpdateHostedApplicationIamRequest request) { + + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + Objects.requireNonNull( + request.getUpdateHostedApplicationIamDetails(), + "updateHostedApplicationIamDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + + return clientCall(request, UpdateHostedApplicationIamResponse::builder) + .logger(LOG, "updateHostedApplicationIam") + .serviceDetails( + "GenerativeAi", + "UpdateHostedApplicationIam", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/UpdateHostedApplicationIam") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateHostedApplicationIamRequest::builder) + .basePath("/20231130") + .appendPathParam("hostedApplicationsIam") + .appendPathParam(request.getHostedApplicationIamId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateHostedApplicationIamResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateHostedApplicationIamResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateHostedDeploymentResponse updateHostedDeployment( UpdateHostedDeploymentRequest request) { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java index fb38b51564c..61bb4a93625 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java @@ -903,6 +903,131 @@ public ListHostedApplicationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listHostedApplicationsIam 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 listHostedApplicationsIamResponseIterator( + final ListHostedApplicationsIamRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListHostedApplicationsIamRequest.Builder, + ListHostedApplicationsIamRequest, + ListHostedApplicationsIamResponse>( + new java.util.function.Supplier() { + @Override + public ListHostedApplicationsIamRequest.Builder get() { + return ListHostedApplicationsIamRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListHostedApplicationsIamResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListHostedApplicationsIamRequest.Builder>, + ListHostedApplicationsIamRequest>() { + @Override + public ListHostedApplicationsIamRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListHostedApplicationsIamRequest.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< + ListHostedApplicationsIamRequest, ListHostedApplicationsIamResponse>() { + @Override + public ListHostedApplicationsIamResponse apply( + ListHostedApplicationsIamRequest request) { + return client.listHostedApplicationsIam(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.generativeai.model.HostedApplicationSummary} objects contained in responses + * from the listHostedApplicationsIam 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.generativeai.model.HostedApplicationSummary} objects contained in + * responses received from the service. + */ + public Iterable + listHostedApplicationsIamRecordIterator( + final ListHostedApplicationsIamRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListHostedApplicationsIamRequest.Builder, + ListHostedApplicationsIamRequest, + ListHostedApplicationsIamResponse, + com.oracle.bmc.generativeai.model.HostedApplicationSummary>( + new java.util.function.Supplier() { + @Override + public ListHostedApplicationsIamRequest.Builder get() { + return ListHostedApplicationsIamRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListHostedApplicationsIamResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListHostedApplicationsIamRequest.Builder>, + ListHostedApplicationsIamRequest>() { + @Override + public ListHostedApplicationsIamRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListHostedApplicationsIamRequest.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< + ListHostedApplicationsIamRequest, ListHostedApplicationsIamResponse>() { + @Override + public ListHostedApplicationsIamResponse apply( + ListHostedApplicationsIamRequest request) { + return client.listHostedApplicationsIam(request); + } + }, + new java.util.function.Function< + ListHostedApplicationsIamResponse, + java.util.List< + com.oracle.bmc.generativeai.model.HostedApplicationSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.generativeai.model.HostedApplicationSummary> + apply(ListHostedApplicationsIamResponse response) { + return response.getHostedApplicationCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listHostedDeployments operation. This iterable will fetch more data from the server as diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java index 4b9ea0ca0ba..5c0f6ef3988 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java @@ -676,6 +676,120 @@ public boolean test(GetHostedApplicationResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + forHostedApplicationIam( + GetHostedApplicationIamRequest request, + com.oracle.bmc.generativeai.model.HostedApplicationIam.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 forHostedApplicationIam( + 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< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + forHostedApplicationIam( + GetHostedApplicationIamRequest request, + com.oracle.bmc.generativeai.model.HostedApplicationIam.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 forHostedApplicationIam( + 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< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + forHostedApplicationIam( + GetHostedApplicationIamRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.generativeai.model.HostedApplicationIam.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 forHostedApplicationIam( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for HostedApplicationIam. + private com.oracle.bmc.waiter.Waiter< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + forHostedApplicationIam( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetHostedApplicationIamRequest request, + final com.oracle.bmc.generativeai.model.HostedApplicationIam.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< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse>() { + @Override + public GetHostedApplicationIamResponse apply( + GetHostedApplicationIamRequest request) { + return client.getHostedApplicationIam(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetHostedApplicationIamResponse response) { + return targetStatesSet.contains( + response.getHostedApplicationIam().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.generativeai.model.HostedApplicationIam + .LifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Artifact.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Artifact.java index 98d67ab0eef..7c037391ddd 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Artifact.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Artifact.java @@ -30,13 +30,24 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public class Artifact extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "timeCreated", "hostedDeploymentId", "status"}) + @java.beans.ConstructorProperties({ + "id", + "timeCreated", + "hostedDeploymentId", + "isVulnerabilityScanRequired", + "status" + }) protected Artifact( - String id, java.util.Date timeCreated, String hostedDeploymentId, Status status) { + String id, + java.util.Date timeCreated, + String hostedDeploymentId, + Boolean isVulnerabilityScanRequired, + Status status) { super(); this.id = id; this.timeCreated = timeCreated; this.hostedDeploymentId = hostedDeploymentId; + this.isVulnerabilityScanRequired = isVulnerabilityScanRequired; this.status = status; } @@ -83,11 +94,31 @@ public String getHostedDeploymentId() { return hostedDeploymentId; } + /** + * Optional flag that requires an OCI Vulnerability Scanning Service compliance report for this + * artifact before it can become active. When not provided, the value defaults to false and the + * artifact is not blocked on a scan result. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isVulnerabilityScanRequired") + private final Boolean isVulnerabilityScanRequired; + + /** + * Optional flag that requires an OCI Vulnerability Scanning Service compliance report for this + * artifact before it can become active. When not provided, the value defaults to false and the + * artifact is not blocked on a scan result. + * + * @return the value + */ + public Boolean getIsVulnerabilityScanRequired() { + return isVulnerabilityScanRequired; + } + /** The current status of the artifact. */ public enum Status implements com.oracle.bmc.http.internal.BmcEnum { Active("ACTIVE"), Inactive("INACTIVE"), Updating("UPDATING"), + Failed("FAILED"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -160,6 +191,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", hostedDeploymentId=").append(String.valueOf(this.hostedDeploymentId)); + sb.append(", isVulnerabilityScanRequired=") + .append(String.valueOf(this.isVulnerabilityScanRequired)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(")"); return sb.toString(); @@ -178,6 +211,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.hostedDeploymentId, other.hostedDeploymentId) + && java.util.Objects.equals( + this.isVulnerabilityScanRequired, other.isVulnerabilityScanRequired) && java.util.Objects.equals(this.status, other.status) && super.equals(other); } @@ -193,6 +228,11 @@ public int hashCode() { + (this.hostedDeploymentId == null ? 43 : this.hostedDeploymentId.hashCode()); + result = + (result * PRIME) + + (this.isVulnerabilityScanRequired == null + ? 43 + : this.isVulnerabilityScanRequired.hashCode()); result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateArtifactDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateArtifactDetails.java index 06880431b8b..428e7861d18 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateArtifactDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateArtifactDetails.java @@ -31,9 +31,27 @@ public class CreateArtifactDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateArtifactDetails() { + @java.beans.ConstructorProperties({"isVulnerabilityScanRequired"}) + protected CreateArtifactDetails(Boolean isVulnerabilityScanRequired) { super(); + this.isVulnerabilityScanRequired = isVulnerabilityScanRequired; + } + + /** + * Optional flag that requires an OCI Vulnerability Scanning Service compliance report for this + * artifact before it can become active. When omitted, the value defaults to false. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isVulnerabilityScanRequired") + private final Boolean isVulnerabilityScanRequired; + + /** + * Optional flag that requires an OCI Vulnerability Scanning Service compliance report for this + * artifact before it can become active. When omitted, the value defaults to false. + * + * @return the value + */ + public Boolean getIsVulnerabilityScanRequired() { + return isVulnerabilityScanRequired; } @Override @@ -51,6 +69,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateArtifactDetails("); sb.append("super=").append(super.toString()); + sb.append("isVulnerabilityScanRequired=") + .append(String.valueOf(this.isVulnerabilityScanRequired)); sb.append(")"); return sb.toString(); } @@ -65,13 +85,20 @@ public boolean equals(Object o) { } CreateArtifactDetails other = (CreateArtifactDetails) o; - return super.equals(other); + return java.util.Objects.equals( + this.isVulnerabilityScanRequired, other.isVulnerabilityScanRequired) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.isVulnerabilityScanRequired == null + ? 43 + : this.isVulnerabilityScanRequired.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java new file mode 100644 index 00000000000..ba308118476 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java @@ -0,0 +1,497 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Common creation properties shared by HostedApplication and HostedApplicationIam.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateHostedApplicationBaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateHostedApplicationBaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "compartmentId", + "description", + "scalingConfig", + "networkingConfig", + "storageConfigs", + "environmentVariables", + "freeformTags", + "definedTags" + }) + public CreateHostedApplicationBaseDetails( + String displayName, + String compartmentId, + String description, + ScalingConfig scalingConfig, + NetworkingConfig networkingConfig, + java.util.List storageConfigs, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.compartmentId = compartmentId; + this.description = description; + this.scalingConfig = scalingConfig; + this.networkingConfig = networkingConfig; + this.storageConfigs = storageConfigs; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-friendly display name for the Hosted Application. Does not need to be unique and + * can be updated after creation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly display name for the Hosted Application. Does not need to be unique and + * can be updated after creation. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The compartment OCID for the Hosted Application. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment OCID for the Hosted Application. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The description for the Hosted Application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description for the Hosted Application. + * + * @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.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private NetworkingConfig networkingConfig; + + public Builder networkingConfig(NetworkingConfig networkingConfig) { + this.networkingConfig = networkingConfig; + this.__explicitlySet__.add("networkingConfig"); + return this; + } + /** + * The list of storage configuration for the Hosted Application. Defines a list of + * service-managed storage back-ends. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private java.util.List storageConfigs; + + /** + * The list of storage configuration for the Hosted Application. Defines a list of + * service-managed storage back-ends. + * + * @param storageConfigs the value to set + * @return this builder + */ + public Builder storageConfigs(java.util.List storageConfigs) { + this.storageConfigs = storageConfigs; + this.__explicitlySet__.add("storageConfigs"); + return this; + } + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + */ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateHostedApplicationBaseDetails build() { + CreateHostedApplicationBaseDetails model = + new CreateHostedApplicationBaseDetails( + this.displayName, + this.compartmentId, + this.description, + this.scalingConfig, + this.networkingConfig, + this.storageConfigs, + this.environmentVariables, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateHostedApplicationBaseDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("networkingConfig")) { + this.networkingConfig(model.getNetworkingConfig()); + } + if (model.wasPropertyExplicitlySet("storageConfigs")) { + this.storageConfigs(model.getStorageConfigs()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + 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 display name for the Hosted Application. Does not need to be unique and can + * be updated after creation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly display name for the Hosted Application. Does not need to be unique and can + * be updated after creation. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The compartment OCID for the Hosted Application. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment OCID for the Hosted Application. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The description for the Hosted Application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description for the Hosted Application. + * + * @return the value + */ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private final NetworkingConfig networkingConfig; + + public NetworkingConfig getNetworkingConfig() { + return networkingConfig; + } + + /** + * The list of storage configuration for the Hosted Application. Defines a list of + * service-managed storage back-ends. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private final java.util.List storageConfigs; + + /** + * The list of storage configuration for the Hosted Application. Defines a list of + * service-managed storage back-ends. + * + * @return the value + */ + public java.util.List getStorageConfigs() { + return storageConfigs; + } + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + * + * @return the value + */ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateHostedApplicationBaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); + sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + 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 CreateHostedApplicationBaseDetails)) { + return false; + } + + CreateHostedApplicationBaseDetails other = (CreateHostedApplicationBaseDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) + && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); + result = + (result * PRIME) + + (this.storageConfigs == null ? 43 : this.storageConfigs.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java index 7e92bf5f422..4ac9fb78c5a 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java @@ -24,11 +24,11 @@ public final class CreateHostedApplicationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "inboundAuthConfig", "displayName", "compartmentId", "description", "scalingConfig", - "inboundAuthConfig", "networkingConfig", "storageConfigs", "environmentVariables", @@ -36,22 +36,22 @@ public final class CreateHostedApplicationDetails "definedTags" }) public CreateHostedApplicationDetails( + InboundAuthConfig inboundAuthConfig, String displayName, String compartmentId, String description, ScalingConfig scalingConfig, - InboundAuthConfig inboundAuthConfig, NetworkingConfig networkingConfig, java.util.List storageConfigs, java.util.List environmentVariables, java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.inboundAuthConfig = inboundAuthConfig; this.displayName = displayName; this.compartmentId = compartmentId; this.description = description; this.scalingConfig = scalingConfig; - this.inboundAuthConfig = inboundAuthConfig; this.networkingConfig = networkingConfig; this.storageConfigs = storageConfigs; this.environmentVariables = environmentVariables; @@ -61,6 +61,15 @@ public CreateHostedApplicationDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private InboundAuthConfig inboundAuthConfig; + + public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { + this.inboundAuthConfig = inboundAuthConfig; + this.__explicitlySet__.add("inboundAuthConfig"); + return this; + } /** * The user-friendly display name for the Hosted Application. Does not need to be unique and * can be updated after creation. @@ -120,15 +129,6 @@ public Builder scalingConfig(ScalingConfig scalingConfig) { return this; } - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private InboundAuthConfig inboundAuthConfig; - - public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { - this.inboundAuthConfig = inboundAuthConfig; - this.__explicitlySet__.add("inboundAuthConfig"); - return this; - } - @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") private NetworkingConfig networkingConfig; @@ -234,11 +234,11 @@ public Builder definedTags( public CreateHostedApplicationDetails build() { CreateHostedApplicationDetails model = new CreateHostedApplicationDetails( + this.inboundAuthConfig, this.displayName, this.compartmentId, this.description, this.scalingConfig, - this.inboundAuthConfig, this.networkingConfig, this.storageConfigs, this.environmentVariables, @@ -252,6 +252,9 @@ public CreateHostedApplicationDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateHostedApplicationDetails model) { + if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { + this.inboundAuthConfig(model.getInboundAuthConfig()); + } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } @@ -264,9 +267,6 @@ public Builder copy(CreateHostedApplicationDetails model) { if (model.wasPropertyExplicitlySet("scalingConfig")) { this.scalingConfig(model.getScalingConfig()); } - if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { - this.inboundAuthConfig(model.getInboundAuthConfig()); - } if (model.wasPropertyExplicitlySet("networkingConfig")) { this.networkingConfig(model.getNetworkingConfig()); } @@ -295,6 +295,13 @@ public Builder toBuilder() { return new Builder().copy(this); } + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private final InboundAuthConfig inboundAuthConfig; + + public InboundAuthConfig getInboundAuthConfig() { + return inboundAuthConfig; + } + /** * The user-friendly display name for the Hosted Application. Does not need to be unique and can * be updated after creation. @@ -345,13 +352,6 @@ public ScalingConfig getScalingConfig() { return scalingConfig; } - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private final InboundAuthConfig inboundAuthConfig; - - public InboundAuthConfig getInboundAuthConfig() { - return inboundAuthConfig; - } - @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") private final NetworkingConfig networkingConfig; @@ -454,11 +454,11 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateHostedApplicationDetails("); sb.append("super=").append(super.toString()); - sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append("inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); - sb.append(", inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); @@ -478,11 +478,11 @@ public boolean equals(Object o) { } CreateHostedApplicationDetails other = (CreateHostedApplicationDetails) o; - return java.util.Objects.equals(this.displayName, other.displayName) + return java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) + && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) - && java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) @@ -495,6 +495,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) @@ -503,9 +506,6 @@ public int hashCode() { result = (result * PRIME) + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); - result = - (result * PRIME) - + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java new file mode 100644 index 00000000000..177a5893142 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java @@ -0,0 +1,497 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * The details required to create a hosted application.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateHostedApplicationIamDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateHostedApplicationIamDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "compartmentId", + "description", + "scalingConfig", + "networkingConfig", + "storageConfigs", + "environmentVariables", + "freeformTags", + "definedTags" + }) + public CreateHostedApplicationIamDetails( + String displayName, + String compartmentId, + String description, + ScalingConfig scalingConfig, + NetworkingConfig networkingConfig, + java.util.List storageConfigs, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.compartmentId = compartmentId; + this.description = description; + this.scalingConfig = scalingConfig; + this.networkingConfig = networkingConfig; + this.storageConfigs = storageConfigs; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-friendly display name for the Hosted Application. Does not need to be unique and + * can be updated after creation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly display name for the Hosted Application. Does not need to be unique and + * can be updated after creation. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The compartment OCID for the Hosted Application. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment OCID for the Hosted Application. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The description for the Hosted Application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description for the Hosted Application. + * + * @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.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private NetworkingConfig networkingConfig; + + public Builder networkingConfig(NetworkingConfig networkingConfig) { + this.networkingConfig = networkingConfig; + this.__explicitlySet__.add("networkingConfig"); + return this; + } + /** + * The list of storage configuration for the Hosted Application. Defines a list of + * service-managed storage back-ends. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private java.util.List storageConfigs; + + /** + * The list of storage configuration for the Hosted Application. Defines a list of + * service-managed storage back-ends. + * + * @param storageConfigs the value to set + * @return this builder + */ + public Builder storageConfigs(java.util.List storageConfigs) { + this.storageConfigs = storageConfigs; + this.__explicitlySet__.add("storageConfigs"); + return this; + } + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + */ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateHostedApplicationIamDetails build() { + CreateHostedApplicationIamDetails model = + new CreateHostedApplicationIamDetails( + this.displayName, + this.compartmentId, + this.description, + this.scalingConfig, + this.networkingConfig, + this.storageConfigs, + this.environmentVariables, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateHostedApplicationIamDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("networkingConfig")) { + this.networkingConfig(model.getNetworkingConfig()); + } + if (model.wasPropertyExplicitlySet("storageConfigs")) { + this.storageConfigs(model.getStorageConfigs()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + 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 display name for the Hosted Application. Does not need to be unique and can + * be updated after creation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly display name for the Hosted Application. Does not need to be unique and can + * be updated after creation. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The compartment OCID for the Hosted Application. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment OCID for the Hosted Application. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The description for the Hosted Application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description for the Hosted Application. + * + * @return the value + */ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private final NetworkingConfig networkingConfig; + + public NetworkingConfig getNetworkingConfig() { + return networkingConfig; + } + + /** + * The list of storage configuration for the Hosted Application. Defines a list of + * service-managed storage back-ends. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private final java.util.List storageConfigs; + + /** + * The list of storage configuration for the Hosted Application. Defines a list of + * service-managed storage back-ends. + * + * @return the value + */ + public java.util.List getStorageConfigs() { + return storageConfigs; + } + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + * + * @return the value + */ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateHostedApplicationIamDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); + sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + 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 CreateHostedApplicationIamDetails)) { + return false; + } + + CreateHostedApplicationIamDetails other = (CreateHostedApplicationIamDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) + && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); + result = + (result * PRIME) + + (this.storageConfigs == null ? 43 : this.storageConfigs.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedDeploymentDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedDeploymentDetails.java index 9d7832afeac..e778b31ffb8 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedDeploymentDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedDeploymentDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.generativeai.model; /** - * The data to create a hosted deployment.
+ * The data to create a hosted deployment. Exactly one of hostedApplicationId or + * hostedApplicationIamId must be provided.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -81,14 +82,14 @@ public Builder compartmentId(String compartmentId) { } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. */ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private String hostedApplicationId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. * * @param hostedApplicationId the value to set * @return this builder @@ -238,14 +239,14 @@ public String getCompartmentId() { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. */ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private final String hostedApplicationId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSingleDockerArtifactDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSingleDockerArtifactDetails.java index 31a086664f4..7ae00713073 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSingleDockerArtifactDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSingleDockerArtifactDetails.java @@ -27,6 +27,14 @@ public final class CreateSingleDockerArtifactDetails extends CreateArtifactDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("isVulnerabilityScanRequired") + private Boolean isVulnerabilityScanRequired; + + public Builder isVulnerabilityScanRequired(Boolean isVulnerabilityScanRequired) { + this.isVulnerabilityScanRequired = isVulnerabilityScanRequired; + this.__explicitlySet__.add("isVulnerabilityScanRequired"); + return this; + } /** image url. */ @com.fasterxml.jackson.annotation.JsonProperty("containerUri") private String containerUri; @@ -63,7 +71,8 @@ public Builder tag(String tag) { public CreateSingleDockerArtifactDetails build() { CreateSingleDockerArtifactDetails model = - new CreateSingleDockerArtifactDetails(this.containerUri, this.tag); + new CreateSingleDockerArtifactDetails( + this.isVulnerabilityScanRequired, this.containerUri, this.tag); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -72,6 +81,9 @@ public CreateSingleDockerArtifactDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateSingleDockerArtifactDetails model) { + if (model.wasPropertyExplicitlySet("isVulnerabilityScanRequired")) { + this.isVulnerabilityScanRequired(model.getIsVulnerabilityScanRequired()); + } if (model.wasPropertyExplicitlySet("containerUri")) { this.containerUri(model.getContainerUri()); } @@ -92,8 +104,9 @@ public Builder toBuilder() { } @Deprecated - public CreateSingleDockerArtifactDetails(String containerUri, String tag) { - super(); + public CreateSingleDockerArtifactDetails( + Boolean isVulnerabilityScanRequired, String containerUri, String tag) { + super(isVulnerabilityScanRequired); this.containerUri = containerUri; this.tag = tag; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java index 7256e750c9d..92f7577a97e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java @@ -32,6 +32,7 @@ public final class HostedApplication extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "inboundAuthConfig", "id", "displayName", "description", @@ -42,7 +43,6 @@ public final class HostedApplication "lifecycleDetails", "scalingConfig", "storageConfigs", - "inboundAuthConfig", "networkingConfig", "environmentVariables", "freeformTags", @@ -50,6 +50,7 @@ public final class HostedApplication "systemTags" }) public HostedApplication( + InboundAuthConfig inboundAuthConfig, String id, String displayName, String description, @@ -60,13 +61,13 @@ public HostedApplication( String lifecycleDetails, ScalingConfig scalingConfig, java.util.List storageConfigs, - InboundAuthConfig inboundAuthConfig, NetworkingConfig networkingConfig, java.util.List environmentVariables, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { super(); + this.inboundAuthConfig = inboundAuthConfig; this.id = id; this.displayName = displayName; this.description = description; @@ -77,7 +78,6 @@ public HostedApplication( this.lifecycleDetails = lifecycleDetails; this.scalingConfig = scalingConfig; this.storageConfigs = storageConfigs; - this.inboundAuthConfig = inboundAuthConfig; this.networkingConfig = networkingConfig; this.environmentVariables = environmentVariables; this.freeformTags = freeformTags; @@ -87,6 +87,15 @@ public HostedApplication( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private InboundAuthConfig inboundAuthConfig; + + public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { + this.inboundAuthConfig = inboundAuthConfig; + this.__explicitlySet__.add("inboundAuthConfig"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * hosted application. @@ -248,15 +257,6 @@ public Builder storageConfigs(java.util.List storageConfigs) { return this; } - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private InboundAuthConfig inboundAuthConfig; - - public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { - this.inboundAuthConfig = inboundAuthConfig; - this.__explicitlySet__.add("inboundAuthConfig"); - return this; - } - @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") private NetworkingConfig networkingConfig; @@ -364,6 +364,7 @@ public Builder systemTags(java.util.Map> s public HostedApplication build() { HostedApplication model = new HostedApplication( + this.inboundAuthConfig, this.id, this.displayName, this.description, @@ -374,7 +375,6 @@ public HostedApplication build() { this.lifecycleDetails, this.scalingConfig, this.storageConfigs, - this.inboundAuthConfig, this.networkingConfig, this.environmentVariables, this.freeformTags, @@ -388,6 +388,9 @@ public HostedApplication build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(HostedApplication model) { + if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { + this.inboundAuthConfig(model.getInboundAuthConfig()); + } if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -418,9 +421,6 @@ public Builder copy(HostedApplication model) { if (model.wasPropertyExplicitlySet("storageConfigs")) { this.storageConfigs(model.getStorageConfigs()); } - if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { - this.inboundAuthConfig(model.getInboundAuthConfig()); - } if (model.wasPropertyExplicitlySet("networkingConfig")) { this.networkingConfig(model.getNetworkingConfig()); } @@ -449,6 +449,13 @@ public Builder toBuilder() { return new Builder().copy(this); } + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private final InboundAuthConfig inboundAuthConfig; + + public InboundAuthConfig getInboundAuthConfig() { + return inboundAuthConfig; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * hosted application. @@ -633,13 +640,6 @@ public java.util.List getStorageConfigs() { return storageConfigs; } - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private final InboundAuthConfig inboundAuthConfig; - - public InboundAuthConfig getInboundAuthConfig() { - return inboundAuthConfig; - } - @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") private final NetworkingConfig networkingConfig; @@ -744,7 +744,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("HostedApplication("); sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); + sb.append("inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); + sb.append(", id=").append(String.valueOf(this.id)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); @@ -754,7 +755,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); - sb.append(", inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -774,7 +774,8 @@ public boolean equals(Object o) { } HostedApplication other = (HostedApplication) o; - return java.util.Objects.equals(this.id, other.id) + return java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) + && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) @@ -784,7 +785,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) - && java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -797,6 +797,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); @@ -817,9 +820,6 @@ public int hashCode() { result = (result * PRIME) + (this.storageConfigs == null ? 43 : this.storageConfigs.hashCode()); - result = - (result * PRIME) - + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java new file mode 100644 index 00000000000..f8db48630b1 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java @@ -0,0 +1,801 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Common properties shared by HostedApplication and HostedApplicationIam.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HostedApplicationBase.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class HostedApplicationBase + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "scalingConfig", + "storageConfigs", + "networkingConfig", + "environmentVariables", + "freeformTags", + "definedTags", + "systemTags" + }) + public HostedApplicationBase( + String id, + String displayName, + String description, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + ScalingConfig scalingConfig, + java.util.List storageConfigs, + NetworkingConfig networkingConfig, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.scalingConfig = scalingConfig; + this.storageConfigs = storageConfigs; + this.networkingConfig = networkingConfig; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** An optional description of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * An optional description of the hosted application. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The compartment OCID to create the hosted application in. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment OCID to create the hosted application in. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the hosted application 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; + } + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The current state of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the hosted application. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state of the endpoint in more detail that can provide + * actionable information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state of the endpoint in more detail that can provide + * actionable information. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the + * application. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private java.util.List storageConfigs; + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the + * application. + * + * @param storageConfigs the value to set + * @return this builder + */ + public Builder storageConfigs(java.util.List storageConfigs) { + this.storageConfigs = storageConfigs; + this.__explicitlySet__.add("storageConfigs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private NetworkingConfig networkingConfig; + + public Builder networkingConfig(NetworkingConfig networkingConfig) { + this.networkingConfig = networkingConfig; + this.__explicitlySet__.add("networkingConfig"); + return this; + } + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + */ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HostedApplicationBase build() { + HostedApplicationBase model = + new HostedApplicationBase( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.scalingConfig, + this.storageConfigs, + this.networkingConfig, + this.environmentVariables, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HostedApplicationBase model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("storageConfigs")) { + this.storageConfigs(model.getStorageConfigs()); + } + if (model.wasPropertyExplicitlySet("networkingConfig")) { + this.networkingConfig(model.getNetworkingConfig()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + * + * @return the value + */ + public String getId() { + return id; + } + + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** An optional description of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * An optional description of the hosted application. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The compartment OCID to create the hosted application in. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment OCID to create the hosted application in. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The date and time the hosted application was created, in the format defined by RFC 3339 */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time the hosted application was updated, in the format defined by RFC 3339 */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the hosted application. */ + 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 state of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the hosted application. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state of the endpoint in more detail that can provide + * actionable information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state of the endpoint in more detail that can provide + * actionable information. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private final java.util.List storageConfigs; + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * + * @return the value + */ + public java.util.List getStorageConfigs() { + return storageConfigs; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private final NetworkingConfig networkingConfig; + + public NetworkingConfig getNetworkingConfig() { + return networkingConfig; + } + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + * + * @return the value + */ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("HostedApplicationBase("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); + sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + 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 HostedApplicationBase)) { + return false; + } + + HostedApplicationBase other = (HostedApplicationBase) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) + && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && 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.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.storageConfigs == null ? 43 : this.storageConfigs.hashCode()); + result = + (result * PRIME) + + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java new file mode 100644 index 00000000000..f12edad9909 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java @@ -0,0 +1,809 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Hosted Application IAM, defines shared configurations that apply across multiple deployments of + * the Agent or MCP application. + * + *

To use any of the API operations, you must be authorized in an IAM policy. If you're not + * authorized, talk to an administrator who gives OCI resource access to users. See [Getting Started + * with + * Policies](https://docs.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm) + * and [Getting Access to Generative AI + * Resources](https://docs.oracle.com/iaas/Content/generative-ai/iam-policies.htm).
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HostedApplicationIam.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class HostedApplicationIam + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "scalingConfig", + "storageConfigs", + "networkingConfig", + "environmentVariables", + "freeformTags", + "definedTags", + "systemTags" + }) + public HostedApplicationIam( + String id, + String displayName, + String description, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + ScalingConfig scalingConfig, + java.util.List storageConfigs, + NetworkingConfig networkingConfig, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.scalingConfig = scalingConfig; + this.storageConfigs = storageConfigs; + this.networkingConfig = networkingConfig; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** An optional description of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * An optional description of the hosted application. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The compartment OCID to create the hosted application in. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment OCID to create the hosted application in. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the hosted application 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; + } + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The current state of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the hosted application. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state of the endpoint in more detail that can provide + * actionable information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state of the endpoint in more detail that can provide + * actionable information. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the + * application. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private java.util.List storageConfigs; + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the + * application. + * + * @param storageConfigs the value to set + * @return this builder + */ + public Builder storageConfigs(java.util.List storageConfigs) { + this.storageConfigs = storageConfigs; + this.__explicitlySet__.add("storageConfigs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private NetworkingConfig networkingConfig; + + public Builder networkingConfig(NetworkingConfig networkingConfig) { + this.networkingConfig = networkingConfig; + this.__explicitlySet__.add("networkingConfig"); + return this; + } + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + */ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HostedApplicationIam build() { + HostedApplicationIam model = + new HostedApplicationIam( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.scalingConfig, + this.storageConfigs, + this.networkingConfig, + this.environmentVariables, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HostedApplicationIam model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("storageConfigs")) { + this.storageConfigs(model.getStorageConfigs()); + } + if (model.wasPropertyExplicitlySet("networkingConfig")) { + this.networkingConfig(model.getNetworkingConfig()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + 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.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + * + * @return the value + */ + public String getId() { + return id; + } + + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** An optional description of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * An optional description of the hosted application. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The compartment OCID to create the hosted application in. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment OCID to create the hosted application in. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The date and time the hosted application was created, in the format defined by RFC 3339 */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time the hosted application was updated, in the format defined by RFC 3339 */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the hosted application. */ + 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 state of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the hosted application. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state of the endpoint in more detail that can provide + * actionable information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state of the endpoint in more detail that can provide + * actionable information. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + */ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private final java.util.List storageConfigs; + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * + * @return the value + */ + public java.util.List getStorageConfigs() { + return storageConfigs; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private final NetworkingConfig networkingConfig; + + public NetworkingConfig getNetworkingConfig() { + return networkingConfig; + } + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + * + * @return the value + */ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("HostedApplicationIam("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); + sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + 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 HostedApplicationIam)) { + return false; + } + + HostedApplicationIam other = (HostedApplicationIam) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) + && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && 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.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.storageConfigs == null ? 43 : this.storageConfigs.hashCode()); + result = + (result * PRIME) + + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationSummary.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationSummary.java index 77301e4f4c9..69277f01c92 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationSummary.java @@ -42,7 +42,7 @@ public HostedApplicationSummary( String compartmentId, java.util.Date timeCreated, java.util.Date timeUpdated, - HostedApplication.LifecycleState lifecycleState, + HostedApplicationBase.LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -159,23 +159,17 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } - /** - * The current state of the hosted application. - * - *

Allowed values are: - CREATING - ACTIVE - UPDATING - DELETING - DELETED - FAILED - */ + /** The current state of the hosted application. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private HostedApplication.LifecycleState lifecycleState; + private HostedApplicationBase.LifecycleState lifecycleState; /** * The current state of the hosted application. * - *

Allowed values are: - CREATING - ACTIVE - UPDATING - DELETING - DELETED - FAILED - * * @param lifecycleState the value to set * @return this builder */ - public Builder lifecycleState(HostedApplication.LifecycleState lifecycleState) { + public Builder lifecycleState(HostedApplicationBase.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; @@ -402,22 +396,16 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** - * The current state of the hosted application. - * - *

Allowed values are: - CREATING - ACTIVE - UPDATING - DELETING - DELETED - FAILED - */ + /** The current state of the hosted application. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final HostedApplication.LifecycleState lifecycleState; + private final HostedApplicationBase.LifecycleState lifecycleState; /** * The current state of the hosted application. * - *

Allowed values are: - CREATING - ACTIVE - UPDATING - DELETING - DELETED - FAILED - * * @return the value */ - public HostedApplication.LifecycleState getLifecycleState() { + public HostedApplicationBase.LifecycleState getLifecycleState() { return lifecycleState; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeployment.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeployment.java index 9f50712df71..b507cc614bb 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeployment.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeployment.java @@ -175,14 +175,14 @@ public Builder lifecycleState(LifecycleState lifecycleState) { } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. */ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private String hostedApplicationId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. * * @param hostedApplicationId the value to set * @return this builder @@ -436,6 +436,7 @@ public java.util.Date getTimeUpdated() { /** The current state of the hosted deployment. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Creating("CREATING"), + NeedsAttention("NEEDS_ATTENTION"), Active("ACTIVE"), Inactive("INACTIVE"), Updating("UPDATING"), @@ -499,14 +500,14 @@ public LifecycleState getLifecycleState() { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. */ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private final String hostedApplicationId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeploymentSummary.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeploymentSummary.java index 3030fd55a37..b170b38b153 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeploymentSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeploymentSummary.java @@ -137,14 +137,14 @@ public Builder lifecycleState(HostedDeployment.LifecycleState lifecycleState) { } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. */ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private String hostedApplicationId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. * * @param hostedApplicationId the value to set * @return this builder @@ -382,14 +382,14 @@ public HostedDeployment.LifecycleState getLifecycleState() { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. */ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private final String hostedApplicationId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * application. + * HostedApplication parent. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SingleDockerArtifact.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SingleDockerArtifact.java index f4dbdf4ca3e..a56f4eb0251 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SingleDockerArtifact.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SingleDockerArtifact.java @@ -54,6 +54,15 @@ public Builder hostedDeploymentId(String hostedDeploymentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isVulnerabilityScanRequired") + private Boolean isVulnerabilityScanRequired; + + public Builder isVulnerabilityScanRequired(Boolean isVulnerabilityScanRequired) { + this.isVulnerabilityScanRequired = isVulnerabilityScanRequired; + this.__explicitlySet__.add("isVulnerabilityScanRequired"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("status") private Status status; @@ -102,6 +111,7 @@ public SingleDockerArtifact build() { this.id, this.timeCreated, this.hostedDeploymentId, + this.isVulnerabilityScanRequired, this.status, this.containerUri, this.tag); @@ -122,6 +132,9 @@ public Builder copy(SingleDockerArtifact model) { if (model.wasPropertyExplicitlySet("hostedDeploymentId")) { this.hostedDeploymentId(model.getHostedDeploymentId()); } + if (model.wasPropertyExplicitlySet("isVulnerabilityScanRequired")) { + this.isVulnerabilityScanRequired(model.getIsVulnerabilityScanRequired()); + } if (model.wasPropertyExplicitlySet("status")) { this.status(model.getStatus()); } @@ -149,10 +162,11 @@ public SingleDockerArtifact( String id, java.util.Date timeCreated, String hostedDeploymentId, + Boolean isVulnerabilityScanRequired, Status status, String containerUri, String tag) { - super(id, timeCreated, hostedDeploymentId, status); + super(id, timeCreated, hostedDeploymentId, isVulnerabilityScanRequired, status); this.containerUri = containerUri; this.tag = tag; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationBaseDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationBaseDetails.java new file mode 100644 index 00000000000..444656c5e11 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationBaseDetails.java @@ -0,0 +1,373 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Common update properties shared by HostedApplication and HostedApplicationIam.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateHostedApplicationBaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateHostedApplicationBaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "scalingConfig", + "environmentVariables", + "freeformTags", + "definedTags" + }) + public UpdateHostedApplicationBaseDetails( + String displayName, + String description, + ScalingConfig scalingConfig, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.scalingConfig = scalingConfig; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** An optional description of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * An optional description of the hosted application. + * + * @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.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + */ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateHostedApplicationBaseDetails build() { + UpdateHostedApplicationBaseDetails model = + new UpdateHostedApplicationBaseDetails( + this.displayName, + this.description, + this.scalingConfig, + this.environmentVariables, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateHostedApplicationBaseDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** An optional description of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * An optional description of the hosted application. + * + * @return the value + */ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + * + * @return the value + */ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateHostedApplicationBaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + 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 UpdateHostedApplicationBaseDetails)) { + return false; + } + + UpdateHostedApplicationBaseDetails other = (UpdateHostedApplicationBaseDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && 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.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationDetails.java index 29f5f7bb869..c2fbca78afa 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationDetails.java @@ -24,27 +24,27 @@ public final class UpdateHostedApplicationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "inboundAuthConfig", "displayName", "description", "scalingConfig", - "inboundAuthConfig", "environmentVariables", "freeformTags", "definedTags" }) public UpdateHostedApplicationDetails( + InboundAuthConfig inboundAuthConfig, String displayName, String description, ScalingConfig scalingConfig, - InboundAuthConfig inboundAuthConfig, java.util.List environmentVariables, java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.inboundAuthConfig = inboundAuthConfig; this.displayName = displayName; this.description = description; this.scalingConfig = scalingConfig; - this.inboundAuthConfig = inboundAuthConfig; this.environmentVariables = environmentVariables; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -52,6 +52,15 @@ public UpdateHostedApplicationDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private InboundAuthConfig inboundAuthConfig; + + public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { + this.inboundAuthConfig = inboundAuthConfig; + this.__explicitlySet__.add("inboundAuthConfig"); + return this; + } /** A user-friendly name. Does not have to be unique, and it's changeable. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; @@ -91,15 +100,6 @@ public Builder scalingConfig(ScalingConfig scalingConfig) { this.__explicitlySet__.add("scalingConfig"); return this; } - - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private InboundAuthConfig inboundAuthConfig; - - public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { - this.inboundAuthConfig = inboundAuthConfig; - this.__explicitlySet__.add("inboundAuthConfig"); - return this; - } /** * The list of environment variables for the Hosted Application. Defines a list of * environment variables injected at runtime. @@ -178,10 +178,10 @@ public Builder definedTags( public UpdateHostedApplicationDetails build() { UpdateHostedApplicationDetails model = new UpdateHostedApplicationDetails( + this.inboundAuthConfig, this.displayName, this.description, this.scalingConfig, - this.inboundAuthConfig, this.environmentVariables, this.freeformTags, this.definedTags); @@ -193,6 +193,9 @@ public UpdateHostedApplicationDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(UpdateHostedApplicationDetails model) { + if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { + this.inboundAuthConfig(model.getInboundAuthConfig()); + } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } @@ -202,9 +205,6 @@ public Builder copy(UpdateHostedApplicationDetails model) { if (model.wasPropertyExplicitlySet("scalingConfig")) { this.scalingConfig(model.getScalingConfig()); } - if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { - this.inboundAuthConfig(model.getInboundAuthConfig()); - } if (model.wasPropertyExplicitlySet("environmentVariables")) { this.environmentVariables(model.getEnvironmentVariables()); } @@ -227,6 +227,13 @@ public Builder toBuilder() { return new Builder().copy(this); } + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private final InboundAuthConfig inboundAuthConfig; + + public InboundAuthConfig getInboundAuthConfig() { + return inboundAuthConfig; + } + /** A user-friendly name. Does not have to be unique, and it's changeable. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; @@ -260,13 +267,6 @@ public ScalingConfig getScalingConfig() { return scalingConfig; } - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private final InboundAuthConfig inboundAuthConfig; - - public InboundAuthConfig getInboundAuthConfig() { - return inboundAuthConfig; - } - /** * The list of environment variables for the Hosted Application. Defines a list of environment * variables injected at runtime. @@ -345,10 +345,10 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateHostedApplicationDetails("); sb.append("super=").append(super.toString()); - sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append("inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); - sb.append(", inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -366,10 +366,10 @@ public boolean equals(Object o) { } UpdateHostedApplicationDetails other = (UpdateHostedApplicationDetails) o; - return java.util.Objects.equals(this.displayName, other.displayName) + return java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) + && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) - && java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -380,14 +380,14 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.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.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); - result = - (result * PRIME) - + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.environmentVariables == null diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationIamDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationIamDetails.java new file mode 100644 index 00000000000..3c298ca1b5b --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationIamDetails.java @@ -0,0 +1,373 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * The data to update a hosted application.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateHostedApplicationIamDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateHostedApplicationIamDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "scalingConfig", + "environmentVariables", + "freeformTags", + "definedTags" + }) + public UpdateHostedApplicationIamDetails( + String displayName, + String description, + ScalingConfig scalingConfig, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.scalingConfig = scalingConfig; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** An optional description of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * An optional description of the hosted application. + * + * @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.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of + * environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + */ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateHostedApplicationIamDetails build() { + UpdateHostedApplicationIamDetails model = + new UpdateHostedApplicationIamDetails( + this.displayName, + this.description, + this.scalingConfig, + this.environmentVariables, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateHostedApplicationIamDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** An optional description of the hosted application. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * An optional description of the hosted application. + * + * @return the value + */ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. Defines a list of environment + * variables injected at runtime. + * + * @return the value + */ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateHostedApplicationIamDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + 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 UpdateHostedApplicationIamDetails)) { + return false; + } + + UpdateHostedApplicationIamDetails other = (UpdateHostedApplicationIamDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && 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.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.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-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeHostedApplicationIamCompartmentRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeHostedApplicationIamCompartmentRequest.java new file mode 100644 index 00000000000..1cebc249a07 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeHostedApplicationIamCompartmentRequest.java @@ -0,0 +1,393 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use + * ChangeHostedApplicationIamCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ChangeHostedApplicationIamCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + private String hostedApplicationIamId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + public String getHostedApplicationIamId() { + return hostedApplicationIamId; + } + /** The information to be updated. */ + private com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails + changeHostedApplicationCompartmentDetails; + + /** The information to be updated. */ + public com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails + getChangeHostedApplicationCompartmentDetails() { + return changeHostedApplicationCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails getBody$() { + return changeHostedApplicationCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeHostedApplicationIamCompartmentRequest, + com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + private String hostedApplicationIamId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + * + * @param hostedApplicationIamId the value to set + * @return this builder instance + */ + public Builder hostedApplicationIamId(String hostedApplicationIamId) { + this.hostedApplicationIamId = hostedApplicationIamId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails + changeHostedApplicationCompartmentDetails = null; + + /** + * The information to be updated. + * + * @param changeHostedApplicationCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeHostedApplicationCompartmentDetails( + com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails + changeHostedApplicationCompartmentDetails) { + this.changeHostedApplicationCompartmentDetails = + changeHostedApplicationCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeHostedApplicationIamCompartmentRequest o) { + hostedApplicationIamId(o.getHostedApplicationIamId()); + changeHostedApplicationCompartmentDetails( + o.getChangeHostedApplicationCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeHostedApplicationIamCompartmentRequest 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 ChangeHostedApplicationIamCompartmentRequest + */ + public ChangeHostedApplicationIamCompartmentRequest build() { + ChangeHostedApplicationIamCompartmentRequest 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.generativeai.model.ChangeHostedApplicationCompartmentDetails body) { + changeHostedApplicationCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeHostedApplicationIamCompartmentRequest 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 ChangeHostedApplicationIamCompartmentRequest + */ + public ChangeHostedApplicationIamCompartmentRequest buildWithoutInvocationCallback() { + ChangeHostedApplicationIamCompartmentRequest request = + new ChangeHostedApplicationIamCompartmentRequest(); + request.hostedApplicationIamId = hostedApplicationIamId; + request.changeHostedApplicationCompartmentDetails = + changeHostedApplicationCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeHostedApplicationIamCompartmentRequest(hostedApplicationIamId, + // changeHostedApplicationCompartmentDetails, 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() + .hostedApplicationIamId(hostedApplicationIamId) + .changeHostedApplicationCompartmentDetails( + changeHostedApplicationCompartmentDetails) + .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(",hostedApplicationIamId=").append(String.valueOf(this.hostedApplicationIamId)); + sb.append(",changeHostedApplicationCompartmentDetails=") + .append(String.valueOf(this.changeHostedApplicationCompartmentDetails)); + 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 ChangeHostedApplicationIamCompartmentRequest)) { + return false; + } + + ChangeHostedApplicationIamCompartmentRequest other = + (ChangeHostedApplicationIamCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.hostedApplicationIamId, other.hostedApplicationIamId) + && java.util.Objects.equals( + this.changeHostedApplicationCompartmentDetails, + other.changeHostedApplicationCompartmentDetails) + && 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.hostedApplicationIamId == null + ? 43 + : this.hostedApplicationIamId.hashCode()); + result = + (result * PRIME) + + (this.changeHostedApplicationCompartmentDetails == null + ? 43 + : this.changeHostedApplicationCompartmentDetails.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-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateHostedApplicationIamRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateHostedApplicationIamRequest.java new file mode 100644 index 00000000000..36cd8379336 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateHostedApplicationIamRequest.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use + * CreateHostedApplicationIamRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class CreateHostedApplicationIamRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails> { + + /** Details for the new hosted application. */ + private com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails + createHostedApplicationIamDetails; + + /** Details for the new hosted application. */ + public com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails + getCreateHostedApplicationIamDetails() { + return createHostedApplicationIamDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails getBody$() { + return createHostedApplicationIamDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateHostedApplicationIamRequest, + com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new hosted application. */ + private com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails + createHostedApplicationIamDetails = null; + + /** + * Details for the new hosted application. + * + * @param createHostedApplicationIamDetails the value to set + * @return this builder instance + */ + public Builder createHostedApplicationIamDetails( + com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails + createHostedApplicationIamDetails) { + this.createHostedApplicationIamDetails = createHostedApplicationIamDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateHostedApplicationIamRequest o) { + createHostedApplicationIamDetails(o.getCreateHostedApplicationIamDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateHostedApplicationIamRequest 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 CreateHostedApplicationIamRequest + */ + public CreateHostedApplicationIamRequest build() { + CreateHostedApplicationIamRequest 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.generativeai.model.CreateHostedApplicationIamDetails body) { + createHostedApplicationIamDetails(body); + return this; + } + + /** + * Build the instance of CreateHostedApplicationIamRequest 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 CreateHostedApplicationIamRequest + */ + public CreateHostedApplicationIamRequest buildWithoutInvocationCallback() { + CreateHostedApplicationIamRequest request = new CreateHostedApplicationIamRequest(); + request.createHostedApplicationIamDetails = createHostedApplicationIamDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateHostedApplicationIamRequest(createHostedApplicationIamDetails, + // 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() + .createHostedApplicationIamDetails(createHostedApplicationIamDetails) + .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(",createHostedApplicationIamDetails=") + .append(String.valueOf(this.createHostedApplicationIamDetails)); + 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 CreateHostedApplicationIamRequest)) { + return false; + } + + CreateHostedApplicationIamRequest other = (CreateHostedApplicationIamRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createHostedApplicationIamDetails, + other.createHostedApplicationIamDetails) + && 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.createHostedApplicationIamDetails == null + ? 43 + : this.createHostedApplicationIamDetails.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-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteHostedApplicationIamRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteHostedApplicationIamRequest.java new file mode 100644 index 00000000000..16211d2869c --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteHostedApplicationIamRequest.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use + * DeleteHostedApplicationIamRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class DeleteHostedApplicationIamRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + private String hostedApplicationIamId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + public String getHostedApplicationIamId() { + return hostedApplicationIamId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteHostedApplicationIamRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + private String hostedApplicationIamId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + * + * @param hostedApplicationIamId the value to set + * @return this builder instance + */ + public Builder hostedApplicationIamId(String hostedApplicationIamId) { + this.hostedApplicationIamId = hostedApplicationIamId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(DeleteHostedApplicationIamRequest o) { + hostedApplicationIamId(o.getHostedApplicationIamId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteHostedApplicationIamRequest 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 DeleteHostedApplicationIamRequest + */ + public DeleteHostedApplicationIamRequest build() { + DeleteHostedApplicationIamRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteHostedApplicationIamRequest 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 DeleteHostedApplicationIamRequest + */ + public DeleteHostedApplicationIamRequest buildWithoutInvocationCallback() { + DeleteHostedApplicationIamRequest request = new DeleteHostedApplicationIamRequest(); + request.hostedApplicationIamId = hostedApplicationIamId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteHostedApplicationIamRequest(hostedApplicationIamId, 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() + .hostedApplicationIamId(hostedApplicationIamId) + .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(",hostedApplicationIamId=").append(String.valueOf(this.hostedApplicationIamId)); + 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 DeleteHostedApplicationIamRequest)) { + return false; + } + + DeleteHostedApplicationIamRequest other = (DeleteHostedApplicationIamRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.hostedApplicationIamId, other.hostedApplicationIamId) + && 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.hostedApplicationIamId == null + ? 43 + : this.hostedApplicationIamId.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-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetHostedApplicationIamRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetHostedApplicationIamRequest.java new file mode 100644 index 00000000000..f4291b1ce37 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetHostedApplicationIamRequest.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use + * GetHostedApplicationIamRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class GetHostedApplicationIamRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + private String hostedApplicationIamId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + public String getHostedApplicationIamId() { + return hostedApplicationIamId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetHostedApplicationIamRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + private String hostedApplicationIamId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + * + * @param hostedApplicationIamId the value to set + * @return this builder instance + */ + public Builder hostedApplicationIamId(String hostedApplicationIamId) { + this.hostedApplicationIamId = hostedApplicationIamId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetHostedApplicationIamRequest o) { + hostedApplicationIamId(o.getHostedApplicationIamId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetHostedApplicationIamRequest 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 GetHostedApplicationIamRequest + */ + public GetHostedApplicationIamRequest build() { + GetHostedApplicationIamRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetHostedApplicationIamRequest 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 GetHostedApplicationIamRequest + */ + public GetHostedApplicationIamRequest buildWithoutInvocationCallback() { + GetHostedApplicationIamRequest request = new GetHostedApplicationIamRequest(); + request.hostedApplicationIamId = hostedApplicationIamId; + request.opcRequestId = opcRequestId; + return request; + // new GetHostedApplicationIamRequest(hostedApplicationIamId, 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() + .hostedApplicationIamId(hostedApplicationIamId) + .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(",hostedApplicationIamId=").append(String.valueOf(this.hostedApplicationIamId)); + 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 GetHostedApplicationIamRequest)) { + return false; + } + + GetHostedApplicationIamRequest other = (GetHostedApplicationIamRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.hostedApplicationIamId, other.hostedApplicationIamId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.hostedApplicationIamId == null + ? 43 + : this.hostedApplicationIamId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsIamRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsIamRequest.java new file mode 100644 index 00000000000..976255e1c6f --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsIamRequest.java @@ -0,0 +1,512 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use + * ListHostedApplicationsIamRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListHostedApplicationsIamRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only the hosted applications that their lifecycle state matches the given + * lifecycle state. + */ + private com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState lifecycleState; + + /** + * A filter to return only the hosted applications that their lifecycle state matches the given + * lifecycle state. + */ + public com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the given display name exactly. */ + private String displayName; + + /** A filter to return only resources that match the given display name exactly. */ + public String getDisplayName() { + return displayName; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + public String getId() { + return id; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.generativeai.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.generativeai.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + LifecycleState("lifecycleState"), + ; + + 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 only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListHostedApplicationsIamRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only the hosted applications that their lifecycle state matches the + * given lifecycle state. + */ + private com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + lifecycleState = null; + + /** + * A filter to return only the hosted applications that their lifecycle state matches the + * given lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the given display name exactly. */ + private String displayName = null; + + /** + * A filter to return only resources that match the given display name exactly. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + private String id = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.generativeai.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.generativeai.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListHostedApplicationsIamRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListHostedApplicationsIamRequest 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 ListHostedApplicationsIamRequest + */ + public ListHostedApplicationsIamRequest build() { + ListHostedApplicationsIamRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListHostedApplicationsIamRequest 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 ListHostedApplicationsIamRequest + */ + public ListHostedApplicationsIamRequest buildWithoutInvocationCallback() { + ListHostedApplicationsIamRequest request = new ListHostedApplicationsIamRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListHostedApplicationsIamRequest(compartmentId, lifecycleState, displayName, id, + // limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListHostedApplicationsIamRequest)) { + return false; + } + + ListHostedApplicationsIamRequest other = (ListHostedApplicationsIamRequest) 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.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.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.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsRequest.java index 4b47701bdea..55eab4b7129 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsRequest.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsRequest.java @@ -32,13 +32,14 @@ public String getCompartmentId() { * A filter to return only the hosted applications that their lifecycle state matches the given * lifecycle state. */ - private com.oracle.bmc.generativeai.model.HostedApplication.LifecycleState lifecycleState; + private com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState lifecycleState; /** * A filter to return only the hosted applications that their lifecycle state matches the given * lifecycle state. */ - public com.oracle.bmc.generativeai.model.HostedApplication.LifecycleState getLifecycleState() { + public com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + getLifecycleState() { return lifecycleState; } /** A filter to return only resources that match the given display name exactly. */ @@ -193,8 +194,8 @@ public Builder compartmentId(String compartmentId) { * A filter to return only the hosted applications that their lifecycle state matches the * given lifecycle state. */ - private com.oracle.bmc.generativeai.model.HostedApplication.LifecycleState lifecycleState = - null; + private com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + lifecycleState = null; /** * A filter to return only the hosted applications that their lifecycle state matches the @@ -204,7 +205,8 @@ public Builder compartmentId(String compartmentId) { * @return this builder instance */ public Builder lifecycleState( - com.oracle.bmc.generativeai.model.HostedApplication.LifecycleState lifecycleState) { + com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + lifecycleState) { this.lifecycleState = lifecycleState; return this; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedDeploymentsRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedDeploymentsRequest.java index 6cdd39d87fb..6cebb1e5ca3 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedDeploymentsRequest.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedDeploymentsRequest.java @@ -30,13 +30,13 @@ public String getCompartmentId() { } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * hosted application. + * HostedApplication parent. */ private String applicationId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * hosted application. + * HostedApplication parent. */ public String getApplicationId() { return applicationId; @@ -204,13 +204,13 @@ public Builder compartmentId(String compartmentId) { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * hosted application. + * HostedApplication parent. */ private String applicationId = null; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * hosted application. + * HostedApplication parent. * * @param applicationId the value to set * @return this builder instance diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateHostedApplicationIamRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateHostedApplicationIamRequest.java new file mode 100644 index 00000000000..7164aecb393 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateHostedApplicationIamRequest.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use + * UpdateHostedApplicationIamRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class UpdateHostedApplicationIamRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + private String hostedApplicationIamId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + public String getHostedApplicationIamId() { + return hostedApplicationIamId; + } + /** The information to be updated. */ + private com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails + updateHostedApplicationIamDetails; + + /** The information to be updated. */ + public com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails + getUpdateHostedApplicationIamDetails() { + return updateHostedApplicationIamDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails getBody$() { + return updateHostedApplicationIamDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateHostedApplicationIamRequest, + com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + */ + private String hostedApplicationIamId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * hosted application. + * + * @param hostedApplicationIamId the value to set + * @return this builder instance + */ + public Builder hostedApplicationIamId(String hostedApplicationIamId) { + this.hostedApplicationIamId = hostedApplicationIamId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails + updateHostedApplicationIamDetails = null; + + /** + * The information to be updated. + * + * @param updateHostedApplicationIamDetails the value to set + * @return this builder instance + */ + public Builder updateHostedApplicationIamDetails( + com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails + updateHostedApplicationIamDetails) { + this.updateHostedApplicationIamDetails = updateHostedApplicationIamDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(UpdateHostedApplicationIamRequest o) { + hostedApplicationIamId(o.getHostedApplicationIamId()); + updateHostedApplicationIamDetails(o.getUpdateHostedApplicationIamDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateHostedApplicationIamRequest 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 UpdateHostedApplicationIamRequest + */ + public UpdateHostedApplicationIamRequest build() { + UpdateHostedApplicationIamRequest 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.generativeai.model.UpdateHostedApplicationIamDetails body) { + updateHostedApplicationIamDetails(body); + return this; + } + + /** + * Build the instance of UpdateHostedApplicationIamRequest 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 UpdateHostedApplicationIamRequest + */ + public UpdateHostedApplicationIamRequest buildWithoutInvocationCallback() { + UpdateHostedApplicationIamRequest request = new UpdateHostedApplicationIamRequest(); + request.hostedApplicationIamId = hostedApplicationIamId; + request.updateHostedApplicationIamDetails = updateHostedApplicationIamDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateHostedApplicationIamRequest(hostedApplicationIamId, + // updateHostedApplicationIamDetails, 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() + .hostedApplicationIamId(hostedApplicationIamId) + .updateHostedApplicationIamDetails(updateHostedApplicationIamDetails) + .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(",hostedApplicationIamId=").append(String.valueOf(this.hostedApplicationIamId)); + sb.append(",updateHostedApplicationIamDetails=") + .append(String.valueOf(this.updateHostedApplicationIamDetails)); + 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 UpdateHostedApplicationIamRequest)) { + return false; + } + + UpdateHostedApplicationIamRequest other = (UpdateHostedApplicationIamRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.hostedApplicationIamId, other.hostedApplicationIamId) + && java.util.Objects.equals( + this.updateHostedApplicationIamDetails, + other.updateHostedApplicationIamDetails) + && 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.hostedApplicationIamId == null + ? 43 + : this.hostedApplicationIamId.hashCode()); + result = + (result * PRIME) + + (this.updateHostedApplicationIamDetails == null + ? 43 + : this.updateHostedApplicationIamDetails.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-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeHostedApplicationIamCompartmentResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeHostedApplicationIamCompartmentResponse.java new file mode 100644 index 00000000000..d6e9eb0819a --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeHostedApplicationIamCompartmentResponse.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ChangeHostedApplicationIamCompartmentResponse + 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 ChangeHostedApplicationIamCompartmentResponse( + 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< + ChangeHostedApplicationIamCompartmentResponse> { + 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(ChangeHostedApplicationIamCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeHostedApplicationIamCompartmentResponse build() { + return new ChangeHostedApplicationIamCompartmentResponse( + __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 ChangeHostedApplicationIamCompartmentResponse)) { + return false; + } + + ChangeHostedApplicationIamCompartmentResponse other = + (ChangeHostedApplicationIamCompartmentResponse) 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-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateHostedApplicationIamResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateHostedApplicationIamResponse.java new file mode 100644 index 00000000000..b266d1b1c6a --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateHostedApplicationIamResponse.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class CreateHostedApplicationIamResponse 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; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code HostedApplicationIam} instance. */ + private com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam; + + /** + * The returned {@code HostedApplicationIam} instance. + * + * @return the value + */ + public com.oracle.bmc.generativeai.model.HostedApplicationIam getHostedApplicationIam() { + return hostedApplicationIam; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcWorkRequestId", + "opcRequestId", + "hostedApplicationIam" + }) + private CreateHostedApplicationIamResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.hostedApplicationIam = hostedApplicationIam; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateHostedApplicationIamResponse> { + 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; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code HostedApplicationIam} instance. */ + private com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam; + + /** + * The returned {@code HostedApplicationIam} instance. + * + * @param hostedApplicationIam the value to set + * @return this builder + */ + public Builder hostedApplicationIam( + com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam) { + this.hostedApplicationIam = hostedApplicationIam; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateHostedApplicationIamResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + hostedApplicationIam(o.getHostedApplicationIam()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateHostedApplicationIamResponse build() { + return new CreateHostedApplicationIamResponse( + __httpStatusCode__, + headers, + etag, + opcWorkRequestId, + opcRequestId, + hostedApplicationIam); + } + } + + /** + * 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(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",hostedApplicationIam=").append(String.valueOf(hostedApplicationIam)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateHostedApplicationIamResponse)) { + return false; + } + + CreateHostedApplicationIamResponse other = (CreateHostedApplicationIamResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.hostedApplicationIam, other.hostedApplicationIam); + } + + @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.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.hostedApplicationIam == null + ? 43 + : this.hostedApplicationIam.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteHostedApplicationIamResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteHostedApplicationIamResponse.java new file mode 100644 index 00000000000..027236c2643 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteHostedApplicationIamResponse.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class DeleteHostedApplicationIamResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteHostedApplicationIamResponse( + 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< + DeleteHostedApplicationIamResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteHostedApplicationIamResponse 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 DeleteHostedApplicationIamResponse build() { + return new DeleteHostedApplicationIamResponse( + __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 DeleteHostedApplicationIamResponse)) { + return false; + } + + DeleteHostedApplicationIamResponse other = (DeleteHostedApplicationIamResponse) 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-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetHostedApplicationIamResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetHostedApplicationIamResponse.java new file mode 100644 index 00000000000..814ddbc209f --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetHostedApplicationIamResponse.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class GetHostedApplicationIamResponse 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 HostedApplicationIam} instance. */ + private com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam; + + /** + * The returned {@code HostedApplicationIam} instance. + * + * @return the value + */ + public com.oracle.bmc.generativeai.model.HostedApplicationIam getHostedApplicationIam() { + return hostedApplicationIam; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "hostedApplicationIam" + }) + private GetHostedApplicationIamResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.hostedApplicationIam = hostedApplicationIam; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetHostedApplicationIamResponse> { + 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 HostedApplicationIam} instance. */ + private com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam; + + /** + * The returned {@code HostedApplicationIam} instance. + * + * @param hostedApplicationIam the value to set + * @return this builder + */ + public Builder hostedApplicationIam( + com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam) { + this.hostedApplicationIam = hostedApplicationIam; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetHostedApplicationIamResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + hostedApplicationIam(o.getHostedApplicationIam()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetHostedApplicationIamResponse build() { + return new GetHostedApplicationIamResponse( + __httpStatusCode__, headers, etag, opcRequestId, hostedApplicationIam); + } + } + + /** + * 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(",hostedApplicationIam=").append(String.valueOf(hostedApplicationIam)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetHostedApplicationIamResponse)) { + return false; + } + + GetHostedApplicationIamResponse other = (GetHostedApplicationIamResponse) 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.hostedApplicationIam, other.hostedApplicationIam); + } + + @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.hostedApplicationIam == null + ? 43 + : this.hostedApplicationIam.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListHostedApplicationsIamResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListHostedApplicationsIamResponse.java new file mode 100644 index 00000000000..2f74ab10175 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListHostedApplicationsIamResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListHostedApplicationsIamResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code HostedApplicationCollection} instance. */ + private com.oracle.bmc.generativeai.model.HostedApplicationCollection + hostedApplicationCollection; + + /** + * The returned {@code HostedApplicationCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.generativeai.model.HostedApplicationCollection + getHostedApplicationCollection() { + return hostedApplicationCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "hostedApplicationCollection" + }) + private ListHostedApplicationsIamResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.generativeai.model.HostedApplicationCollection + hostedApplicationCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.hostedApplicationCollection = hostedApplicationCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListHostedApplicationsIamResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code HostedApplicationCollection} instance. */ + private com.oracle.bmc.generativeai.model.HostedApplicationCollection + hostedApplicationCollection; + + /** + * The returned {@code HostedApplicationCollection} instance. + * + * @param hostedApplicationCollection the value to set + * @return this builder + */ + public Builder hostedApplicationCollection( + com.oracle.bmc.generativeai.model.HostedApplicationCollection + hostedApplicationCollection) { + this.hostedApplicationCollection = hostedApplicationCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListHostedApplicationsIamResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + hostedApplicationCollection(o.getHostedApplicationCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListHostedApplicationsIamResponse build() { + return new ListHostedApplicationsIamResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + hostedApplicationCollection); + } + } + + /** + * 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(",hostedApplicationCollection=") + .append(String.valueOf(hostedApplicationCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListHostedApplicationsIamResponse)) { + return false; + } + + ListHostedApplicationsIamResponse other = (ListHostedApplicationsIamResponse) 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.hostedApplicationCollection, other.hostedApplicationCollection); + } + + @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.hostedApplicationCollection == null + ? 43 + : this.hostedApplicationCollection.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateHostedApplicationIamResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateHostedApplicationIamResponse.java new file mode 100644 index 00000000000..6d8f4515e25 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateHostedApplicationIamResponse.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class UpdateHostedApplicationIamResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateHostedApplicationIamResponse( + 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< + UpdateHostedApplicationIamResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateHostedApplicationIamResponse 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 UpdateHostedApplicationIamResponse build() { + return new UpdateHostedApplicationIamResponse( + __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 UpdateHostedApplicationIamResponse)) { + return false; + } + + UpdateHostedApplicationIamResponse other = (UpdateHostedApplicationIamResponse) 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-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json b/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json index 7756fa79c94..6151c6cf00b 100644 --- a/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json +++ b/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json @@ -431,6 +431,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.CreateHostedApplicationBaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.CreateHostedApplicationBaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.CreateHostedApplicationDetails", @@ -445,6 +459,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.CreateHostedApplicationStorageDetails", @@ -1019,6 +1047,26 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.HostedApplicationBase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.HostedApplicationBase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.HostedApplicationBase$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.HostedApplicationCollection", @@ -1033,6 +1081,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.HostedApplicationIam", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.HostedApplicationIam$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.HostedApplicationIam$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.HostedApplicationStorage", @@ -1979,6 +2047,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.UpdateHostedApplicationBaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.UpdateHostedApplicationBaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.UpdateHostedApplicationDetails", @@ -1993,6 +2075,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.UpdateHostedDeploymentDetails", diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index 4f89d8c1409..bea2f97ae98 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 9774c177b90..6c0e963d3d2 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index 98fa6e0d6be..86134d055ed 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index e21f47ef3da..82bb1e14785 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index bf74509f32f..a43d3350d2b 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index e16b11da374..948b4075a19 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 70ac7e428e1..e254b1ae369 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index e69dd15c85f..1494bcd7ae6 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 321d178bf7d..679d388fd26 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index c29d2731fd0..5bb586db001 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index beafa845129..9299f2a6dac 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 26fbf8d0ca6..900e9270356 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index 27692aa4d28..7d94177814d 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 8a2bb26447c..cf16615ed12 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index ab960fddb1d..5d5f0d16527 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 58b691eadfa..aefb60cf1f1 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index d352b532d31..0a3faaf2f67 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 5d20c354feb..bb367f2b142 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 54794fb5705..d39b3b7a81d 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index 4685e495bec..d33e073b7df 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 89e217223f0..9aaada4f307 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 788ff57db8f..05e259c2ad2 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 91326bc0d8c..72fad8d6691 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 3eaafa1275a..26d4d3abad3 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 246c92135f7..12853e85555 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 8e138fab946..f53cb058c20 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index 043d1db3666..a71cf3b27b5 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index 1a0b42dbce5..13e2b86aee4 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index 9205347207d..373ecc4dc88 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index cb08da660e9..aba5df90954 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index d26fbf56176..c9039166ede 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 685896317b5..955d9be0f01 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 603ce363387..d14e4cabfad 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index f687665e014..2e1471ffff9 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index 26ff54136e9..3d31331c794 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index 196d870508b..90e852e93b5 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index eb15d7d4648..f8e78884d5c 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index 0ef287941fb..2618aee71b9 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 046aad522f6..d0767b1e06b 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 17ab4f243ef..fd8878bac04 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index e5c99f52910..24b44c01106 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 87901fafb0a..a369e3285fd 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 87647afb801..b1aa2453f9f 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.91.1 + 3.92.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.91.1 + 3.92.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index ff78f2b7d70..cdeb0703eb8 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.91.1 + 3.92.0 ../pom.xml @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.91.1 + 3.92.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 601d9a82eab..70eb933af4b 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.91.1 + 3.92.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index da3d597e3f5..84639ebb758 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index b2382c1e088..87af4d9cccb 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 7ba1ff5accb..cf62886c4ec 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index e5beb98013b..2a480f3342f 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index d3edc1167b6..76789e6b6d0 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOdaPrivateEndpointDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOdaPrivateEndpointDetails.java index a441cef21c0..34b66483379 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOdaPrivateEndpointDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOdaPrivateEndpointDetails.java @@ -30,7 +30,8 @@ public final class CreateOdaPrivateEndpointDetails "subnetId", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreateOdaPrivateEndpointDetails( String displayName, @@ -39,7 +40,8 @@ public CreateOdaPrivateEndpointDetails( String subnetId, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.description = description; @@ -48,6 +50,7 @@ public CreateOdaPrivateEndpointDetails( this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -184,6 +187,30 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -197,7 +224,8 @@ public CreateOdaPrivateEndpointDetails build() { this.subnetId, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -227,6 +255,9 @@ public Builder copy(CreateOdaPrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -357,6 +388,27 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -379,6 +431,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -400,6 +453,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -416,6 +470,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpoint.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpoint.java index 44c7cccb864..ebe9bc46165 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpoint.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpoint.java @@ -34,6 +34,7 @@ public final class OdaPrivateEndpoint "lifecycleState", "subnetId", "nsgIds", + "securityAttributes", "freeformTags", "definedTags" }) @@ -47,6 +48,7 @@ public OdaPrivateEndpoint( LifecycleState lifecycleState, String subnetId, java.util.List nsgIds, + java.util.Map> securityAttributes, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -59,6 +61,7 @@ public OdaPrivateEndpoint( this.lifecycleState = lifecycleState; this.subnetId = subnetId; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -230,6 +233,30 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type, or scope. * Example: {@code {"bar-key": "value"}} @@ -285,6 +312,7 @@ public OdaPrivateEndpoint build() { this.lifecycleState, this.subnetId, this.nsgIds, + this.securityAttributes, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -322,6 +350,9 @@ public Builder copy(OdaPrivateEndpoint model) { if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -538,6 +569,27 @@ public java.util.List getNsgIds() { return nsgIds; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * Simple key-value pair that is applied without any predefined name, type, or scope. Example: * {@code {"bar-key": "value"}} @@ -596,6 +648,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -621,6 +674,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -643,6 +697,11 @@ public int hashCode() { + (this.lifecycleState == null ? 43 : this.lifecycleState.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.securityAttributes == null + ? 43 + : this.securityAttributes.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-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpointSummary.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpointSummary.java index cc1a80af960..026eb331ceb 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpointSummary.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpointSummary.java @@ -32,7 +32,8 @@ public final class OdaPrivateEndpointSummary "timeUpdated", "lifecycleState", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public OdaPrivateEndpointSummary( String id, @@ -43,7 +44,8 @@ public OdaPrivateEndpointSummary( java.util.Date timeUpdated, OdaPrivateEndpoint.LifecycleState lifecycleState, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -54,6 +56,7 @@ public OdaPrivateEndpointSummary( this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -222,6 +225,30 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -237,7 +264,8 @@ public OdaPrivateEndpointSummary build() { this.timeUpdated, this.lifecycleState, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -273,6 +301,9 @@ public Builder copy(OdaPrivateEndpointSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -431,6 +462,27 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -455,6 +507,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(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -478,6 +531,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.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -498,6 +552,11 @@ 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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/ParameterDefinition.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/ParameterDefinition.java index 24dd2b6973b..3e813e104b5 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/ParameterDefinition.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/ParameterDefinition.java @@ -355,6 +355,7 @@ public enum Type implements com.oracle.bmc.http.internal.BmcEnum { Url("URL"), Number("NUMBER"), Boolean("BOOLEAN"), + ParameterizedString("PARAMETERIZED_STRING"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOdaPrivateEndpointDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOdaPrivateEndpointDetails.java index 6bfe7a31d1a..3a7565ec4a9 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOdaPrivateEndpointDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOdaPrivateEndpointDetails.java @@ -28,20 +28,23 @@ public final class UpdateOdaPrivateEndpointDetails "description", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdateOdaPrivateEndpointDetails( String displayName, String description, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.description = description; this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -140,6 +143,30 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -151,7 +178,8 @@ public UpdateOdaPrivateEndpointDetails build() { this.description, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -175,6 +203,9 @@ public Builder copy(UpdateOdaPrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -271,6 +302,27 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -291,6 +343,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -310,6 +363,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -322,6 +376,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.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.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index bd88375d594..55c120e465f 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 669c276d9c7..01896f4cd02 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index d659ae40ecb..424a3ed5d86 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 2a42a7ec667..2a4dfcf4056 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index bcfbba7a1fa..ec3d03559cc 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index c3ac83ce813..2b46d5dcc76 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 1d0111a7f0a..dd632b6e973 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 4550bb91118..e168e0be869 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 60034b7fa58..48ac7e9c078 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index f9efa731735..c0e77951a81 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 9ec4f0d8bec..b4a52596783 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 255784ebdcc..dfdad6de7c7 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 03e13b35e35..18905b561b1 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.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 d94b092cb3b..514ffc611f1 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.91.1 + 3.92.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.91.1 + 3.92.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.91.1 + 3.92.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.91.1 + 3.92.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 5054f261d98..96fc8f642dd 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.91.1 + 3.92.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.91.1 + 3.92.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.91.1 + 3.92.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.91.1 + 3.92.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 296bfb67d68..915cad33ddd 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.91.1 + 3.92.0 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.91.1 + 3.92.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.91.1 + 3.92.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index b5f79ef3eb7..bf2994c77ec 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.91.1 + 3.92.0 ../pom.xml diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index 2a207bb53e2..b349d577e8e 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 8f5204e76f0..b92e16e5df5 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 0d32d5f15ce..0f35f9976cd 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index aedae428f68..6498e86df90 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index ff0f5fef011..c6b722439ab 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index 3c6b2ea7f82..e639b933b39 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 3d360cccb15..08f31f810e7 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index d9f44b8f62f..11cabe014f0 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index b7648c7649f..215b0a0378c 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index df266ce2c65..8474bc00f39 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 913a481a2ed..ce53f83632a 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index aba1792ee4c..afd0c635e3c 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index d91edbc5bad..375df3820b3 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index 450f92ab9fb..9833644b3a0 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index aa1dba4cc34..5c1feba5e85 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index c6715751032..714efc4faac 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.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 554f84bdbbe..08552c284dc 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.91.1 + 3.92.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 6901fa89ea7..4e632acdd41 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 48515ae0bbf..76fc2284417 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index a7795d9ce89..6cd3aafa3b9 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index ecca2c8564a..ea8a2a7abe6 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 562677548ea..ca5504bd32c 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 18e3da68c33..95de326a621 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index bae575d0447..32ee97dd157 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index acdd1af6399..c87f42df61c 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 26d548e01f7..5e47dac4baa 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index 6ba6e911da8..70eca63ee9c 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 2980dadb2dc..a856eac5274 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index c722730b7a8..f2d9cb69e74 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index ad24b05f87d..b0ea14400c2 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 561f2d9e925..6355dd1f25f 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 6871c205716..0e7e415d3c0 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index 5d7202b8e61..84443e38413 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 77cfd4b4842..9c8873436b9 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index d694f8fca2d..cada45f23d2 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.91.1 + 3.92.0 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 5dee96ef8e0..4044ae5266b 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.91.1 + 3.92.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -36,7 +36,7 @@ UTF-8 2.21 2.21.2 - 2.21.2 + 2.21.4 2.47 4.5.13 4.5.13 @@ -679,6 +679,7 @@ bmc-containerregistry bmc-databasetoolsruntime bmc-costad + bmc-datacc bmc-containerengine bmc-keymanagement bmc-resourcesearch