From f4694526b069d15c1481f312612302042b7ab33b Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 29 Sep 2026 14:47:46 +0000 Subject: [PATCH] Releasing version 3.97.1 --- CHANGELOG.md | 7 + bmc-accessgovernancecp/pom.xml | 4 +- bmc-addons/bmc-adk/pom.xml | 2 +- bmc-addons/bmc-aispeech-realtime/pom.xml | 6 +- .../pom.xml | 6 +- .../pom.xml | 6 +- .../bmc-apache-connector-provider/pom.xml | 4 +- bmc-addons/bmc-oke-workload-identity/pom.xml | 10 +- .../bmc-resteasy-client-configurator/pom.xml | 4 +- .../bmc-sasl-oke-workload-identity/pom.xml | 6 +- bmc-addons/bmc-sasl/pom.xml | 4 +- bmc-addons/bmc-sse-support-jersey3/pom.xml | 8 +- bmc-addons/bmc-sse-support/pom.xml | 8 +- bmc-addons/pom.xml | 2 +- bmc-adm/pom.xml | 4 +- bmc-aidataplatform/pom.xml | 4 +- bmc-aidocument/pom.xml | 4 +- bmc-ailanguage/pom.xml | 4 +- bmc-aispeech/pom.xml | 4 +- bmc-aivision/pom.xml | 4 +- bmc-analytics/pom.xml | 4 +- bmc-announcementsservice/pom.xml | 4 +- bmc-apiaccesscontrol/pom.xml | 4 +- bmc-apigateway/pom.xml | 4 +- bmc-apiplatform/pom.xml | 4 +- bmc-apmconfig/pom.xml | 4 +- bmc-apmcontrolplane/pom.xml | 4 +- bmc-apmsynthetics/pom.xml | 4 +- bmc-apmtraces/pom.xml | 4 +- bmc-appmgmtcontrol/pom.xml | 4 +- bmc-artifacts/pom.xml | 4 +- bmc-audit/pom.xml | 4 +- bmc-autoscaling/pom.xml | 4 +- bmc-bastion/pom.xml | 4 +- bmc-batch/pom.xml | 4 +- bmc-bds/pom.xml | 4 +- bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 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-clusterhealth/pom.xml | 4 +- bmc-clusterplacementgroups/pom.xml | 4 +- .../bmc-common-httpclient-jersey/pom.xml | 6 +- .../bmc-common-httpclient-jersey3/pom.xml | 6 +- bmc-common-httpclient-choices/pom.xml | 2 +- bmc-common-httpclient/pom.xml | 2 +- bmc-common/pom.xml | 8 +- bmc-computecloudatcustomer/pom.xml | 4 +- bmc-computeinstanceagent/pom.xml | 4 +- bmc-containerengine/pom.xml | 4 +- bmc-containerinstances/pom.xml | 4 +- bmc-containerregistry/pom.xml | 4 +- bmc-core/pom.xml | 6 +- .../com/oracle/bmc/core/VirtualNetwork.java | 180 ++ .../oracle/bmc/core/VirtualNetworkAsync.java | 179 ++ .../bmc/core/VirtualNetworkAsyncClient.java | 427 ++++ .../oracle/bmc/core/VirtualNetworkClient.java | 392 +++ .../bmc/core/VirtualNetworkPaginators.java | 232 ++ .../bmc/core/VirtualNetworkWaiters.java | 347 +++ .../bmc/core/model/AddDrgNatRuleDetails.java | 387 +++ .../bmc/core/model/AddDrgNatRulesDetails.java | 133 + .../ChangeDrgNatPolicyCompartmentDetails.java | 145 ++ .../model/CreateDrgAttachmentDetails.java | 117 +- .../core/model/CreateDrgNatPolicyDetails.java | 312 +++ .../oracle/bmc/core/model/DrgAttachment.java | 111 + .../oracle/bmc/core/model/DrgNatPolicy.java | 547 ++++ .../com/oracle/bmc/core/model/DrgNatRule.java | 473 ++++ .../core/model/RemoveDrgNatRulesDetails.java | 133 + .../model/UpdateDrgAttachmentDetails.java | 111 + .../core/model/UpdateDrgNatPolicyDetails.java | 258 ++ .../core/model/UpdateDrgNatRuleDetails.java | 425 +++ .../core/model/UpdateDrgNatRulesDetails.java | 133 + .../core/requests/AddDrgNatRulesRequest.java | 368 +++ .../ChangeDrgNatPolicyCompartmentRequest.java | 378 +++ .../requests/CreateDrgNatPolicyRequest.java | 288 +++ .../requests/DeleteDrgNatPolicyRequest.java | 259 ++ .../core/requests/GetDrgNatPolicyRequest.java | 212 ++ .../requests/ListDrgAttachmentsRequest.java | 44 +- .../requests/ListDrgNatPoliciesRequest.java | 512 ++++ .../core/requests/ListDrgNatRulesRequest.java | 364 +++ .../requests/RemoveDrgNatPolicyRequest.java | 220 ++ .../requests/RemoveDrgNatRulesRequest.java | 370 +++ .../requests/UpdateDrgNatPolicyRequest.java | 321 +++ .../requests/UpdateDrgNatRulesRequest.java | 370 +++ .../responses/AddDrgNatRulesResponse.java | 193 ++ ...ChangeDrgNatPolicyCompartmentResponse.java | 138 + .../responses/CreateDrgNatPolicyResponse.java | 282 ++ .../responses/DeleteDrgNatPolicyResponse.java | 193 ++ .../responses/GetDrgNatPolicyResponse.java | 208 ++ .../responses/ListDrgNatPoliciesResponse.java | 220 ++ .../responses/ListDrgNatRulesResponse.java | 220 ++ .../responses/RemoveDrgNatPolicyResponse.java | 210 ++ .../responses/RemoveDrgNatRulesResponse.java | 193 ++ .../responses/UpdateDrgNatPolicyResponse.java | 208 ++ .../responses/UpdateDrgNatRulesResponse.java | 193 ++ .../oci-java-sdk-core/reflect-config.json | 146 ++ bmc-costad/pom.xml | 4 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- .../UpdateAutonomousVmClusterDetails.java | 84 + ...UpdateCloudAutonomousVmClusterDetails.java | 84 + bmc-databasemanagement/pom.xml | 4 +- bmc-databasemigration/pom.xml | 4 +- bmc-databasetools/pom.xml | 4 +- bmc-databasetoolsruntime/pom.xml | 4 +- bmc-datacatalog/pom.xml | 4 +- bmc-datacc/pom.xml | 4 +- bmc-dataflow/pom.xml | 4 +- bmc-dataintegration/pom.xml | 4 +- bmc-datalabelingservice/pom.xml | 4 +- bmc-datalabelingservicedataplane/pom.xml | 4 +- bmc-datasafe/pom.xml | 4 +- .../com/oracle/bmc/datasafe/DataSafe.java | 906 ++++++- .../oracle/bmc/datasafe/DataSafeAsync.java | 877 ++++++- .../bmc/datasafe/DataSafeAsyncClient.java | 2267 +++++++++++++++-- .../oracle/bmc/datasafe/DataSafeClient.java | 1988 ++++++++++++++- .../bmc/datasafe/DataSafePaginators.java | 1877 ++++++++++++++ .../oracle/bmc/datasafe/DataSafeWaiters.java | 439 ++++ ...eRegistrationPolicyCompartmentDetails.java | 139 + ...ngeSubsettingPolicyCompartmentDetails.java | 138 + ...gPolicyHealthReportCompartmentDetails.java | 138 + .../model/ConditionSubsetRuleEntry.java | 134 + .../CreateRegistrationPolicyDetails.java | 484 ++++ .../model/CreateSchemaSourceDetails.java | 115 + .../CreateSchemaSourceFromSdmDetails.java | 140 + .../CreateSchemaSourceFromTargetDetails.java | 177 ++ .../model/CreateSubsettingPolicyDetails.java | 802 ++++++ .../model/CreateSubsettingRuleDetails.java | 475 ++++ ...CreateSubsettingSchemaRelationDetails.java | 419 +++ .../model/DownloadSubsettingLogDetails.java | 176 ++ .../DownloadSubsettingPolicyDetails.java | 135 + .../DownloadSubsettingReportDetails.java | 203 ++ .../model/EstimateTableSizesDetails.java | 168 ++ ...GenerateSubsettingHealthReportDetails.java | 456 ++++ ...ateSubsettingPolicyForDownloadDetails.java | 136 + ...ateSubsettingReportForDownloadDetails.java | 205 ++ .../oracle/bmc/datasafe/model/Include.java | 105 +- .../model/ManagePrivilegesDetails.java | 177 ++ .../bmc/datasafe/model/MaskingReport.java | 42 + .../datasafe/model/MaskingReportSummary.java | 42 + .../model/PartitionSubsetRuleEntry.java | 184 ++ .../model/PatchSubsettingRulesDetails.java | 133 + .../model/PercentSubsetRuleEntry.java | 134 + .../model/PolicyConnectionOption.java | 247 ++ .../datasafe/model/RegistrationPolicy.java | 901 +++++++ .../model/RegistrationPolicyCollection.java | 134 + .../model/RegistrationPolicyFeatures.java | 60 + .../model/RegistrationPolicySummary.java | 683 +++++ ...gistrationPolicyTargetDatabaseSummary.java | 331 +++ ...PolicyTargetDatabaseSummaryCollection.java | 136 + .../datasafe/model/SchemaSourceDetails.java | 174 ++ .../model/SchemaSourceForSummary.java | 128 + .../model/SchemaSourceFromSdmDetails.java | 169 ++ .../model/SchemaSourceFromSdmForSummary.java | 140 + .../model/SchemaSourceFromTargetDetails.java | 162 ++ .../SchemaSourceFromTargetForSummary.java | 135 + .../bmc/datasafe/model/SubsetDataDetails.java | 693 +++++ .../bmc/datasafe/model/SubsetRuleEntry.java | 131 + .../bmc/datasafe/model/SubsetScope.java | 127 + .../model/SubsetScopeForAllObjects.java | 135 + .../model/SubsetScopeForSpecificObjects.java | 171 ++ .../model/SubsettedObjectCollection.java | 133 + .../model/SubsettedObjectSummary.java | 392 +++ .../model/SubsettingAnalyticsCollection.java | 133 + .../model/SubsettingAnalyticsDimensions.java | 170 ++ .../model/SubsettingAnalyticsSummary.java | 297 +++ .../model/SubsettingErrorCollection.java | 133 + .../model/SubsettingErrorSummary.java | 303 +++ .../bmc/datasafe/model/SubsettingPolicy.java | 1106 ++++++++ .../model/SubsettingPolicyCollection.java | 133 + .../model/SubsettingPolicyFormat.java | 39 + .../model/SubsettingPolicyHealthReport.java | 667 +++++ ...ubsettingPolicyHealthReportCollection.java | 135 + ...ettingPolicyHealthReportLogCollection.java | 136 + ...ubsettingPolicyHealthReportLogSummary.java | 557 ++++ .../SubsettingPolicyHealthReportSummary.java | 572 +++++ .../model/SubsettingPolicySummary.java | 616 +++++ .../bmc/datasafe/model/SubsettingReport.java | 1215 +++++++++ .../model/SubsettingReportCollection.java | 133 + .../model/SubsettingReportSummary.java | 1165 +++++++++ .../bmc/datasafe/model/SubsettingRule.java | 560 ++++ .../model/SubsettingRuleCollection.java | 133 + ...ttingRuleProcessingChainObjectSummary.java | 655 +++++ ...gRuleProcessingChainObjectsCollection.java | 136 + .../datasafe/model/SubsettingRuleSummary.java | 589 +++++ .../model/SubsettingSchemaCollection.java | 133 + .../SubsettingSchemaObjectCollection.java | 134 + .../model/SubsettingSchemaObjectSummary.java | 439 ++++ .../model/SubsettingSchemaRelation.java | 663 +++++ .../SubsettingSchemaRelationCollection.java | 135 + .../SubsettingSchemaRelationSummary.java | 663 +++++ .../model/SubsettingSchemaSummary.java | 178 ++ .../model/TableEstimateCollection.java | 133 + .../datasafe/model/TableEstimateSummary.java | 415 +++ .../bmc/datasafe/model/TargetDatabase.java | 38 + .../datasafe/model/TargetDatabaseSummary.java | 38 + .../UpdateProcessingChainObjectDetails.java | 139 + .../UpdateRegistrationPolicyDetails.java | 406 +++ .../model/UpdateSchemaSourceDetails.java | 115 + .../UpdateSchemaSourceFromSdmDetails.java | 140 + .../UpdateSchemaSourceFromTargetDetails.java | 177 ++ .../model/UpdateSubsettingPolicyDetails.java | 755 ++++++ .../model/UpdateSubsettingRuleDetails.java | 475 ++++ .../bmc/datasafe/model/WorkRequest.java | 22 + .../datasafe/model/WorkRequestSummary.java | 22 + ...eRegistrationPolicyCompartmentRequest.java | 368 +++ ...ngeSubsettingPolicyCompartmentRequest.java | 316 +++ ...gPolicyHealthReportCompartmentRequest.java | 327 +++ .../CreateRegistrationPolicyRequest.java | 350 +++ .../CreateSubsettingPolicyRequest.java | 282 ++ .../requests/CreateSubsettingRuleRequest.java | 311 +++ ...CreateSubsettingSchemaRelationRequest.java | 316 +++ .../DeleteRegistrationPolicyRequest.java | 243 ++ ...teSubsettingPolicyHealthReportRequest.java | 250 ++ .../DeleteSubsettingPolicyRequest.java | 243 ++ .../DeleteSubsettingReportRequest.java | 243 ++ .../requests/DeleteSubsettingRuleRequest.java | 282 ++ ...DeleteSubsettingSchemaRelationRequest.java | 288 +++ .../DownloadSubsettingLogRequest.java | 261 ++ .../DownloadSubsettingPolicyRequest.java | 262 ++ .../DownloadSubsettingReportRequest.java | 262 ++ .../requests/EstimateTableSizesRequest.java | 309 +++ ...GenerateSubsettingHealthReportRequest.java | 316 +++ ...ateSubsettingPolicyForDownloadRequest.java | 272 ++ ...ateSubsettingReportForDownloadRequest.java | 272 ++ .../GetRegistrationPolicyRequest.java | 196 ++ ...etSubsettingPolicyHealthReportRequest.java | 204 ++ .../requests/GetSubsettingPolicyRequest.java | 194 ++ .../requests/GetSubsettingReportRequest.java | 194 ++ .../requests/GetSubsettingRuleRequest.java | 235 ++ .../GetSubsettingSchemaRelationRequest.java | 242 ++ .../ListRegistrationPoliciesRequest.java | 885 +++++++ ...istrationPolicyTargetDatabasesRequest.java | 436 ++++ .../requests/ListSubsettedObjectsRequest.java | 493 ++++ .../ListSubsettingAnalyticsRequest.java | 734 ++++++ .../requests/ListSubsettingErrorsRequest.java | 471 ++++ .../ListSubsettingPoliciesRequest.java | 889 +++++++ ...bsettingPolicyHealthReportLogsRequest.java | 487 ++++ ...tSubsettingPolicyHealthReportsRequest.java | 739 ++++++ .../ListSubsettingReportsRequest.java | 639 +++++ ...tingRuleProcessingChainObjectsRequest.java | 496 ++++ .../requests/ListSubsettingRulesRequest.java | 493 ++++ .../ListSubsettingSchemaObjectsRequest.java | 495 ++++ .../ListSubsettingSchemaRelationsRequest.java | 569 +++++ .../ListSubsettingSchemasRequest.java | 495 ++++ .../requests/ListTableEstimatesRequest.java | 519 ++++ .../requests/ListTargetDatabasesRequest.java | 49 +- .../requests/ManagePrivilegesRequest.java | 351 +++ .../requests/PatchSubsettingRulesRequest.java | 305 +++ .../datasafe/requests/SubsetDataRequest.java | 303 +++ .../UpdateProcessingChainObjectRequest.java | 391 +++ .../UpdateRegistrationPolicyRequest.java | 358 +++ .../UpdateSubsettingPolicyRequest.java | 307 +++ .../requests/UpdateSubsettingRuleRequest.java | 344 +++ .../UploadSubsettingPolicyRequest.java | 301 +++ ...RegistrationPolicyCompartmentResponse.java | 274 ++ ...geSubsettingPolicyCompartmentResponse.java | 140 + ...PolicyHealthReportCompartmentResponse.java | 140 + .../CreateRegistrationPolicyResponse.java | 272 ++ .../CreateSubsettingPolicyResponse.java | 270 ++ .../CreateSubsettingRuleResponse.java | 185 ++ ...reateSubsettingSchemaRelationResponse.java | 186 ++ .../DeleteRegistrationPolicyResponse.java | 186 ++ ...eSubsettingPolicyHealthReportResponse.java | 188 ++ .../DeleteSubsettingPolicyResponse.java | 186 ++ .../DeleteSubsettingReportResponse.java | 186 ++ .../DeleteSubsettingRuleResponse.java | 185 ++ ...eleteSubsettingSchemaRelationResponse.java | 186 ++ .../DownloadSubsettingLogResponse.java | 253 ++ .../DownloadSubsettingPolicyResponse.java | 254 ++ .../DownloadSubsettingReportResponse.java | 254 ++ .../responses/EstimateTableSizesResponse.java | 185 ++ ...enerateSubsettingHealthReportResponse.java | 186 ++ ...teSubsettingPolicyForDownloadResponse.java | 188 ++ ...teSubsettingReportForDownloadResponse.java | 188 ++ .../GetRegistrationPolicyResponse.java | 223 ++ ...tSubsettingPolicyHealthReportResponse.java | 230 ++ .../GetSubsettingPolicyResponse.java | 221 ++ .../GetSubsettingReportResponse.java | 221 ++ .../responses/GetSubsettingRuleResponse.java | 220 ++ .../GetSubsettingSchemaRelationResponse.java | 225 ++ .../ListRegistrationPoliciesResponse.java | 286 +++ ...strationPolicyTargetDatabasesResponse.java | 248 ++ .../ListSubsettedObjectsResponse.java | 280 ++ .../ListSubsettingAnalyticsResponse.java | 287 +++ .../ListSubsettingErrorsResponse.java | 280 ++ .../ListSubsettingPoliciesResponse.java | 284 +++ ...settingPolicyHealthReportLogsResponse.java | 292 +++ ...SubsettingPolicyHealthReportsResponse.java | 290 +++ .../ListSubsettingReportsResponse.java | 283 ++ ...ingRuleProcessingChainObjectsResponse.java | 293 +++ .../ListSubsettingRulesResponse.java | 280 ++ .../ListSubsettingSchemaObjectsResponse.java | 288 +++ ...ListSubsettingSchemaRelationsResponse.java | 288 +++ .../ListSubsettingSchemasResponse.java | 283 ++ .../responses/ListTableEstimatesResponse.java | 280 ++ .../responses/ManagePrivilegesResponse.java | 185 ++ .../PatchSubsettingRulesResponse.java | 185 ++ .../responses/SubsetDataResponse.java | 185 ++ .../UpdateProcessingChainObjectResponse.java | 186 ++ .../UpdateRegistrationPolicyResponse.java | 272 ++ .../UpdateSubsettingPolicyResponse.java | 186 ++ .../UpdateSubsettingRuleResponse.java | 185 ++ .../UploadSubsettingPolicyResponse.java | 186 ++ .../oci-java-sdk-datasafe/reflect-config.json | 1384 +++++++++- bmc-datascience/pom.xml | 4 +- bmc-dblm/pom.xml | 4 +- bmc-dbmulticloud/pom.xml | 4 +- bmc-ddfs/pom.xml | 4 +- bmc-delegateaccesscontrol/pom.xml | 4 +- bmc-demandsignal/pom.xml | 4 +- bmc-desktops/pom.xml | 4 +- bmc-devops/pom.xml | 4 +- bmc-dif/pom.xml | 4 +- bmc-disasterrecovery/pom.xml | 4 +- bmc-distributeddatabase/pom.xml | 4 +- bmc-dns/pom.xml | 6 +- bmc-email/pom.xml | 4 +- bmc-emaildataplane/pom.xml | 4 +- bmc-emwarehouse/pom.xml | 4 +- bmc-encryption/pom.xml | 10 +- bmc-enforcer-rules/pom.xml | 2 +- bmc-events/pom.xml | 4 +- bmc-examples/pom.xml | 6 +- bmc-filestorage/pom.xml | 4 +- bmc-fleetappsmanagement/pom.xml | 4 +- bmc-fleetsoftwareupdate/pom.xml | 4 +- bmc-full/pom.xml | 4 +- bmc-functions/pom.xml | 4 +- bmc-fusionapps/pom.xml | 4 +- bmc-gdp/pom.xml | 4 +- bmc-generativeai/pom.xml | 4 +- bmc-generativeaiagent/pom.xml | 4 +- bmc-generativeaiagentruntime/pom.xml | 4 +- bmc-generativeaidata/pom.xml | 4 +- bmc-generativeaiinference/pom.xml | 4 +- bmc-genericartifactscontent/pom.xml | 4 +- bmc-goldengate/pom.xml | 4 +- bmc-governancerulescontrolplane/pom.xml | 4 +- bmc-healthchecks/pom.xml | 4 +- bmc-identity/pom.xml | 4 +- bmc-identitydataplane/pom.xml | 4 +- bmc-identitydomains/pom.xml | 4 +- bmc-integration/pom.xml | 4 +- bmc-iot/pom.xml | 4 +- bmc-jms/pom.xml | 4 +- bmc-jmsjavadownloads/pom.xml | 4 +- bmc-jmsutils/pom.xml | 4 +- bmc-keymanagement/pom.xml | 4 +- bmc-licensemanager/pom.xml | 4 +- bmc-limits/pom.xml | 4 +- bmc-limitsincrease/pom.xml | 4 +- bmc-loadbalancer/pom.xml | 4 +- bmc-lockbox/pom.xml | 4 +- bmc-loganalytics/pom.xml | 4 +- bmc-logging/pom.xml | 4 +- bmc-loggingingestion/pom.xml | 4 +- bmc-loggingsearch/pom.xml | 4 +- bmc-lustrefilestorage/pom.xml | 4 +- bmc-managedkafka/pom.xml | 4 +- bmc-managementagent/pom.xml | 4 +- bmc-managementdashboard/pom.xml | 4 +- bmc-marketplace/pom.xml | 4 +- bmc-marketplaceprivateoffer/pom.xml | 4 +- bmc-marketplacepublisher/pom.xml | 4 +- bmc-mediaservices/pom.xml | 4 +- bmc-mngdmac/pom.xml | 4 +- bmc-modeldeployment/pom.xml | 4 +- bmc-monitoring/pom.xml | 4 +- bmc-multicloud/pom.xml | 4 +- bmc-mysql/pom.xml | 4 +- bmc-networkfirewall/pom.xml | 4 +- bmc-networkloadbalancer/pom.xml | 4 +- bmc-nosql/pom.xml | 4 +- .../bmc-objectstorage-combined/pom.xml | 6 +- .../bmc-objectstorage-extensions/pom.xml | 8 +- .../bmc-objectstorage-generated/pom.xml | 4 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-ocicontrolcenter/pom.xml | 4 +- bmc-ocvp/pom.xml | 4 +- bmc-oda/pom.xml | 4 +- bmc-onesubscription/pom.xml | 4 +- bmc-ons/pom.xml | 4 +- bmc-opa/pom.xml | 4 +- bmc-opensearch/pom.xml | 4 +- 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 | 8 +- 442 files changed, 76667 insertions(+), 905 deletions(-) create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/AddDrgNatRuleDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/AddDrgNatRulesDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeDrgNatPolicyCompartmentDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgNatPolicyDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/DrgNatPolicy.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/DrgNatRule.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/RemoveDrgNatRulesDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatPolicyDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatRuleDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatRulesDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/AddDrgNatRulesRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/ChangeDrgNatPolicyCompartmentRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/CreateDrgNatPolicyRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/DeleteDrgNatPolicyRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/GetDrgNatPolicyRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgNatPoliciesRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgNatRulesRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/RemoveDrgNatPolicyRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/RemoveDrgNatRulesRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateDrgNatPolicyRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateDrgNatRulesRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/AddDrgNatRulesResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/ChangeDrgNatPolicyCompartmentResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/CreateDrgNatPolicyResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/DeleteDrgNatPolicyResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/GetDrgNatPolicyResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/ListDrgNatPoliciesResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/ListDrgNatRulesResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/RemoveDrgNatPolicyResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/RemoveDrgNatRulesResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateDrgNatPolicyResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateDrgNatRulesResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeRegistrationPolicyCompartmentDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeSubsettingPolicyCompartmentDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeSubsettingPolicyHealthReportCompartmentDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ConditionSubsetRuleEntry.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateRegistrationPolicyDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceFromSdmDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceFromTargetDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingPolicyDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingRuleDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingSchemaRelationDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingLogDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingPolicyDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingReportDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/EstimateTableSizesDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingHealthReportDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingPolicyForDownloadDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingReportForDownloadDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ManagePrivilegesDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PartitionSubsetRuleEntry.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PatchSubsettingRulesDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PercentSubsetRuleEntry.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PolicyConnectionOption.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicy.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyFeatures.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicySummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyTargetDatabaseSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyTargetDatabaseSummaryCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceForSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromSdmDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromSdmForSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromTargetDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromTargetForSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetDataDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetRuleEntry.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScope.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScopeForAllObjects.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScopeForSpecificObjects.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettedObjectCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettedObjectSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsDimensions.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingErrorCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingErrorSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicy.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyFormat.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReport.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportLogCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportLogSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicySummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingReport.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingReportCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingReportSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRule.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleProcessingChainObjectSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleProcessingChainObjectsCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaObjectCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaObjectSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelation.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelationCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelationSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TableEstimateCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TableEstimateSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateProcessingChainObjectDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateRegistrationPolicyDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceFromSdmDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceFromTargetDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSubsettingPolicyDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSubsettingRuleDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeRegistrationPolicyCompartmentRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeSubsettingPolicyCompartmentRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeSubsettingPolicyHealthReportCompartmentRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateRegistrationPolicyRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingPolicyRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingRuleRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingSchemaRelationRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteRegistrationPolicyRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingPolicyHealthReportRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingPolicyRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingReportRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingRuleRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingSchemaRelationRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadSubsettingLogRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadSubsettingPolicyRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadSubsettingReportRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/EstimateTableSizesRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingHealthReportRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingPolicyForDownloadRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingReportForDownloadRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetRegistrationPolicyRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingPolicyHealthReportRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingPolicyRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingReportRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingRuleRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingSchemaRelationRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListRegistrationPoliciesRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListRegistrationPolicyTargetDatabasesRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettedObjectsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingAnalyticsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingErrorsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPoliciesRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPolicyHealthReportLogsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPolicyHealthReportsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingReportsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingRuleProcessingChainObjectsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingRulesRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemaObjectsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemaRelationsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemasRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTableEstimatesRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ManagePrivilegesRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/PatchSubsettingRulesRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/SubsetDataRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateProcessingChainObjectRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateRegistrationPolicyRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateSubsettingPolicyRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateSubsettingRuleRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UploadSubsettingPolicyRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeRegistrationPolicyCompartmentResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeSubsettingPolicyCompartmentResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeSubsettingPolicyHealthReportCompartmentResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateRegistrationPolicyResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingPolicyResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingRuleResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingSchemaRelationResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteRegistrationPolicyResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingPolicyHealthReportResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingPolicyResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingReportResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingRuleResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingSchemaRelationResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingLogResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingPolicyResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingReportResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/EstimateTableSizesResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingHealthReportResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingPolicyForDownloadResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingReportForDownloadResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetRegistrationPolicyResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingPolicyHealthReportResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingPolicyResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingReportResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingRuleResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingSchemaRelationResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListRegistrationPoliciesResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListRegistrationPolicyTargetDatabasesResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettedObjectsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingAnalyticsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingErrorsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPoliciesResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPolicyHealthReportLogsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPolicyHealthReportsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingReportsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingRuleProcessingChainObjectsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingRulesResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemaObjectsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemaRelationsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemasResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTableEstimatesResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ManagePrivilegesResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/PatchSubsettingRulesResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/SubsetDataResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateProcessingChainObjectResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateRegistrationPolicyResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateSubsettingPolicyResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateSubsettingRuleResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UploadSubsettingPolicyResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b163556926..e3ba6c1d57a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.97.1 - 2026-09-29 +### Added +- Support for data subsetting in the Data Safe service +- Support for seamless registration of Exadata databases in the Data Safe service +- Support for changing the memory-to-CPU ratio of autonomous VM clusters in the Database service +- Support for network address translation on dynamic routing gateways in the Networking service + ## 3.97.0 - 2026-09-22 ### Added - Support for recurring maintenance windows in the Application Performance Monitoring Synthetics service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index fe559cf38ca..1a2d6e90ce4 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-addons/bmc-adk/pom.xml b/bmc-addons/bmc-adk/pom.xml index 797df6fb1a8..6ffeccfb93a 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.97.0 + 3.97.1 oci-java-sdk-addons-adk diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index 9f3f4f1856e..0281d1543ae 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.97.0 + 3.97.1 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.97.0 + 3.97.1 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index fa2cbe79103..8d323132836 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.97.0 + 3.97.1 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.97.0 + 3.97.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.97.0 + 3.97.1 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 e654829690e..00d78bd94af 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.97.0 + 3.97.1 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.97.0 + 3.97.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.97.0 + 3.97.1 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index cee61d12574..8da1af276fe 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.97.0 + 3.97.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ 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 cf05d724d2a..24fecd41089 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.97.0 + 3.97.1 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 compile com.oracle.oci.sdk oci-java-sdk-core - 3.97.0 + 3.97.1 test com.oracle.oci.sdk oci-java-sdk-identity - 3.97.0 + 3.97.1 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.97.0 + 3.97.1 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 617cf5608a3..d06613bc55e 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.97.0 + 3.97.1 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ 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 badcd4f5168..13baa589a34 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.97.0 + 3.97.1 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.97.0 + 3.97.1 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.97.0 + 3.97.1 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index d49e828531b..01e55b3bf24 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.97.0 + 3.97.1 ../pom.xml @@ -61,7 +61,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index ee35eef6b2a..3d2c4ad928a 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.97.0 + 3.97.1 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.97.0 + 3.97.1 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.97.0 + 3.97.1 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index c62b81361d9..5603f5ca968 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.97.0 + 3.97.1 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.97.0 + 3.97.1 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.97.0 + 3.97.1 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 0b4382d447e..1d0cd8b6467 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index edb0ee08d83..feee564105c 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 81c13162318..41b0c5cdc40 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index d8871a7d10d..e9636a4340d 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 6e7961cf84e..4fb09cc960b 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 6f4bbcfccff..ca095850136 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 99f9e552a99..c7af1da07f4 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 4059cbd5ec0..1259cc668fb 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index e98f43785c0..48d31386e12 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index aed6dc557be..cddc318c430 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index ea148a62028..dddb8bbef1b 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index 9815afc19a5..2245e96d3b2 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 5fa2689cec8..2a276a10ebb 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 370be3ec33a..eca8d3704d4 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 14035aa029f..d61867cf5a5 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 0fecbc5df1a..239582c311f 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index f5eded703d2..7a5777b3053 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index ec217523dcb..1cb9fb5f3ad 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index c6fa85be9c6..d1add03213c 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 773995faa8d..c140a370a74 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 83b4152abcb..0c1617e4a6a 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index 3cfb7875f60..63e249e0633 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index bb20f0845a5..4b453e40e36 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index bca6e6ca2a5..a74d731e57a 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index c11fa8292de..61d9d4a83d7 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.97.0 + 3.97.1 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,1129 +38,1129 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-audit - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-core - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-database - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-dns - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-email - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-identity - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-waas - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-ons - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-budget - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-limits - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-functions - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-events - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-oce - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-oda - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-integration - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-vault - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-bds - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-cims - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-logging - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-sch - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-rover - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-jms - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-devops - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-waf - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-usage - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-adm - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-waa - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-opa - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-queue - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-redis - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-psql - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-dblm - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-wlms - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-addons-adk - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-multicloud - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-iot - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-psa - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-dif - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-batch - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-gdp - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-self - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-costad - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-datacc - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-ddfs - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-clusterhealth - 3.97.0 + 3.97.1 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 3.97.0 + 3.97.1 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 2f26d1c2dcd..36320d41565 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 7eac396cbef..f88b0f1c9e8 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 212a7da853a..c5f1cd9fcda 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 903423a28ff..1fcb6319254 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 5391fc81374..04fcc0a16d5 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index b2a1986fb52..38b6ff6f173 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index b0c33bb692c..844c1773807 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index c79da9a43df..42ea8875c4a 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 693321c7606..b38721b1dcb 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-clusterhealth/pom.xml b/bmc-clusterhealth/pom.xml index a3cd1b11ce9..d23c0039882 100644 --- a/bmc-clusterhealth/pom.xml +++ b/bmc-clusterhealth/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-clusterhealth @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 0afa89844c0..cd697994fc5 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ 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 2dcfa77208d..1ea3e722a51 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.97.0 + 3.97.1 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.97.0 + 3.97.1 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.97.0 + 3.97.1 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 2ecfd6ffc94..f2f8cc61470 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.97.0 + 3.97.1 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.97.0 + 3.97.1 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.97.0 + 3.97.1 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index bf27d809bc6..3ec4a4b1bb3 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.97.0 + 3.97.1 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index b71a226ee81..b0cc5d31b0d 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.97.0 + 3.97.1 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 7563051708e..916e58e6d04 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -87,12 +87,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.97.0 + 3.97.1 @@ -137,7 +137,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.97.0 + 3.97.1 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index bf399ba0b28..c792a0d0992 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index f2b8a1ea9c9..e311efa71a6 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index da58df9bcbb..9d4b95a51f0 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index e46a534fe20..86bb33acfaa 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index e6091740daf..63fbac27d85 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 936325f8f62..7fad9f501da 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.97.0 + 3.97.1 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java index 871b1f6a0e5..b1fa2dae44b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java @@ -81,6 +81,21 @@ public interface VirtualNetwork extends AutoCloseable { */ void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** + * Adds DRG NAT rules to the specified DRG NAT policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 AddDrgNatRules API. + */ + AddDrgNatRulesResponse addDrgNatRules(AddDrgNatRulesRequest request); + /** * Adds one or more route distribution statements to the specified route distribution. * @@ -586,6 +601,25 @@ ChangeDhcpOptionsCompartmentResponse changeDhcpOptionsCompartment( */ ChangeDrgCompartmentResponse changeDrgCompartment(ChangeDrgCompartmentRequest request); + /** + * Moves a DrgNatPolicy 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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeDrgNatPolicyCompartment API. + */ + ChangeDrgNatPolicyCompartmentResponse changeDrgNatPolicyCompartment( + ChangeDrgNatPolicyCompartmentRequest request); + /** * Moves an IPSec connection into a different compartment within the same tenancy. For * information about moving resources between compartments, see [Moving Resources to a Different @@ -1186,6 +1220,23 @@ ConnectRemotePeeringConnectionsResponse connectRemotePeeringConnections( */ CreateDrgAttachmentResponse createDrgAttachment(CreateDrgAttachmentRequest request); + /** + * Creates a new DRG NAT policy. Assign the DRG NAT policy to a DRG attachment using the + * `UpdateDrgAttachment` or `CreateDrgAttachment` operations. + * + * @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 CreateDrgNatPolicy + * API. + */ + CreateDrgNatPolicyResponse createDrgNatPolicy(CreateDrgNatPolicyRequest request); + /** * Creates a new route distribution for the specified DRG. Assign the route distribution as an * import distribution to a DRG route table using the `UpdateDrgRouteTable` or @@ -1910,6 +1961,22 @@ CreateRemotePeeringConnectionResponse createRemotePeeringConnection( */ DeleteDrgAttachmentResponse deleteDrgAttachment(DeleteDrgAttachmentRequest request); + /** + * Deletes the specified DRG NAT policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 DeleteDrgNatPolicy + * API. + */ + DeleteDrgNatPolicyResponse deleteDrgNatPolicy(DeleteDrgNatPolicyRequest request); + /** * Deletes the specified route distribution. You can't delete a route distribution currently in * use by a DRG attachment or DRG route table. @@ -2607,6 +2674,22 @@ GetCrossConnectLetterOfAuthorityResponse getCrossConnectLetterOfAuthority( */ GetDrgAttachmentResponse getDrgAttachment(GetDrgAttachmentRequest request); + /** + * Gets the specified DRG NAT policy's information. + * + * @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 GetDrgNatPolicy + * API. + */ + GetDrgNatPolicyResponse getDrgNatPolicy(GetDrgNatPolicyRequest request); + /** * Gets the redundancy status for the specified DRG. For more information, see [Redundancy * Remedies](https://docs.oracle.com/iaas/Content/Network/Troubleshoot/drgredundancy.htm). @@ -3704,6 +3787,38 @@ ListCrossconnectPortSpeedShapesResponse listCrossconnectPortSpeedShapes( */ ListDrgAttachmentsResponse listDrgAttachments(ListDrgAttachmentsRequest request); + /** + * The list of DRG NAT policies in the compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListDrgNatPolicies + * API. + */ + ListDrgNatPoliciesResponse listDrgNatPolicies(ListDrgNatPoliciesRequest request); + + /** + * Lists the rules for the specified DRG NAT policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 ListDrgNatRules + * API. + */ + ListDrgNatRulesResponse listDrgNatRules(ListDrgNatRulesRequest request); + /** * Lists the statements for the specified route distribution. * @@ -4483,6 +4598,39 @@ ListVirtualCircuitPublicPrefixesResponse listVirtualCircuitPublicPrefixes( */ PrivateIpVnicDetachResponse privateIpVnicDetach(PrivateIpVnicDetachRequest request); + /** + * Dissociates the DRG NAT policy from the DRG attachment so no DRG NAT rules are advertised to + * it. + * + * @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 RemoveDrgNatPolicy + * API. + */ + RemoveDrgNatPolicyResponse removeDrgNatPolicy(RemoveDrgNatPolicyRequest request); + + /** + * Request with DRG NAT rules to remove from the DRG NAT policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 RemoveDrgNatRules + * API. + */ + RemoveDrgNatRulesResponse removeDrgNatRules(RemoveDrgNatRulesRequest request); + /** * Removes one or more route distribution statements from the specified route distribution's * map. @@ -4850,6 +4998,38 @@ UpdateCrossConnectLetterOfAuthorityResponse updateCrossConnectLetterOfAuthority( */ UpdateDrgAttachmentResponse updateDrgAttachment(UpdateDrgAttachmentRequest request); + /** + * Updates the specified DRG NAT policy + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 UpdateDrgNatPolicy + * API. + */ + UpdateDrgNatPolicyResponse updateDrgNatPolicy(UpdateDrgNatPolicyRequest request); + + /** + * Updates DRG NAT rules in the specified DRG NAT policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 UpdateDrgNatRules + * API. + */ + UpdateDrgNatRulesResponse updateDrgNatRules(UpdateDrgNatRulesRequest request); + /** * Updates the specified route distribution * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java index 28137b4dfae..5085029de22 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java @@ -78,6 +78,21 @@ public interface VirtualNetworkAsync extends AutoCloseable { */ void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** + * Adds DRG NAT rules to the specified DRG NAT policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future addDrgNatRules( + AddDrgNatRulesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Adds one or more route distribution statements to the specified route distribution. * @@ -582,6 +597,26 @@ java.util.concurrent.Future changeDrgCompartment( ChangeDrgCompartmentRequest, ChangeDrgCompartmentResponse> handler); + /** + * Moves a DrgNatPolicy 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 + changeDrgNatPolicyCompartment( + ChangeDrgNatPolicyCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDrgNatPolicyCompartmentRequest, + ChangeDrgNatPolicyCompartmentResponse> + handler); + /** * Moves an IPSec connection into a different compartment within the same tenancy. For * information about moving resources between compartments, see [Moving Resources to a Different @@ -1185,6 +1220,23 @@ java.util.concurrent.Future createDrgAttachment( CreateDrgAttachmentRequest, CreateDrgAttachmentResponse> handler); + /** + * Creates a new DRG NAT policy. Assign the DRG NAT policy to a DRG attachment using the + * `UpdateDrgAttachment` or `CreateDrgAttachment` operations. + * + * @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 createDrgNatPolicy( + CreateDrgNatPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDrgNatPolicyRequest, CreateDrgNatPolicyResponse> + handler); + /** * Creates a new route distribution for the specified DRG. Assign the route distribution as an * import distribution to a DRG route table using the `UpdateDrgRouteTable` or @@ -1897,6 +1949,22 @@ java.util.concurrent.Future deleteDrgAttachment( DeleteDrgAttachmentRequest, DeleteDrgAttachmentResponse> handler); + /** + * Deletes the specified DRG NAT policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteDrgNatPolicy( + DeleteDrgNatPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDrgNatPolicyRequest, DeleteDrgNatPolicyResponse> + handler); + /** * Deletes the specified route distribution. You can't delete a route distribution currently in * use by a DRG attachment or DRG route table. @@ -2580,6 +2648,21 @@ java.util.concurrent.Future getDrgAttachment( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets the specified DRG NAT policy's information. + * + * @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 getDrgNatPolicy( + GetDrgNatPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Gets the redundancy status for the specified DRG. For more information, see [Redundancy * Remedies](https://docs.oracle.com/iaas/Content/Network/Troubleshoot/drgredundancy.htm). @@ -3669,6 +3752,37 @@ java.util.concurrent.Future listDrgAttachments( ListDrgAttachmentsRequest, ListDrgAttachmentsResponse> handler); + /** + * The list of DRG NAT policies in the compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listDrgNatPolicies( + ListDrgNatPoliciesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDrgNatPoliciesRequest, ListDrgNatPoliciesResponse> + handler); + + /** + * Lists the rules for the specified DRG NAT policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listDrgNatRules( + ListDrgNatRulesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Lists the statements for the specified route distribution. * @@ -4440,6 +4554,39 @@ java.util.concurrent.Future privateIpVnicDetach( PrivateIpVnicDetachRequest, PrivateIpVnicDetachResponse> handler); + /** + * Dissociates the DRG NAT policy from the DRG attachment so no DRG NAT rules are advertised to + * it. + * + * @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 removeDrgNatPolicy( + RemoveDrgNatPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveDrgNatPolicyRequest, RemoveDrgNatPolicyResponse> + handler); + + /** + * Request with DRG NAT rules to remove from the DRG NAT policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future removeDrgNatRules( + RemoveDrgNatRulesRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveDrgNatRulesRequest, RemoveDrgNatRulesResponse> + handler); + /** * Removes one or more route distribution statements from the specified route distribution's * map. @@ -4808,6 +4955,38 @@ java.util.concurrent.Future updateDrgAttachment( UpdateDrgAttachmentRequest, UpdateDrgAttachmentResponse> handler); + /** + * Updates the specified DRG NAT policy + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateDrgNatPolicy( + UpdateDrgNatPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDrgNatPolicyRequest, UpdateDrgNatPolicyResponse> + handler); + + /** + * Updates DRG NAT rules in the specified DRG NAT policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateDrgNatRules( + UpdateDrgNatRulesRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDrgNatRulesRequest, UpdateDrgNatRulesResponse> + handler); + /** * Updates the specified route distribution * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java index 6d29670b7f0..3208511f15c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java @@ -126,6 +126,46 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future addDrgNatRules( + AddDrgNatRulesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddDrgNatRulesRequest, AddDrgNatRulesResponse> + handler) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + Objects.requireNonNull( + request.getAddDrgNatRulesDetails(), "addDrgNatRulesDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, AddDrgNatRulesResponse::builder) + .logger(LOG, "addDrgNatRules") + .serviceDetails( + "VirtualNetwork", + "AddDrgNatRules", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/AddDrgNatRules") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDrgNatRulesRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .appendPathParam("actions") + .appendPathParam("addDrgNatRules") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", AddDrgNatRulesResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", AddDrgNatRulesResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future addDrgRouteDistributionStatements( @@ -1220,6 +1260,48 @@ public java.util.concurrent.Future changeDrgCompar .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeDrgNatPolicyCompartment( + ChangeDrgNatPolicyCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDrgNatPolicyCompartmentRequest, + ChangeDrgNatPolicyCompartmentResponse> + handler) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + Objects.requireNonNull( + request.getChangeDrgNatPolicyCompartmentDetails(), + "changeDrgNatPolicyCompartmentDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, ChangeDrgNatPolicyCompartmentResponse::builder) + .logger(LOG, "changeDrgNatPolicyCompartment") + .serviceDetails( + "VirtualNetwork", + "ChangeDrgNatPolicyCompartment", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/ChangeDrgNatPolicyCompartment") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDrgNatPolicyCompartmentRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .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", + ChangeDrgNatPolicyCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeIPSecConnectionCompartment( @@ -2282,6 +2364,45 @@ public java.util.concurrent.Future createDrgAttachm .callAsync(handler); } + @Override + public java.util.concurrent.Future createDrgNatPolicy( + CreateDrgNatPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDrgNatPolicyRequest, CreateDrgNatPolicyResponse> + handler) { + Objects.requireNonNull( + request.getCreateDrgNatPolicyDetails(), "createDrgNatPolicyDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + + return clientCall(request, CreateDrgNatPolicyResponse::builder) + .logger(LOG, "createDrgNatPolicy") + .serviceDetails( + "VirtualNetwork", + "CreateDrgNatPolicy", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/CreateDrgNatPolicy") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDrgNatPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.core.model.DrgNatPolicy.class, + CreateDrgNatPolicyResponse.Builder::drgNatPolicy) + .handleResponseHeaderString("etag", CreateDrgNatPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateDrgNatPolicyResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateDrgNatPolicyResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateDrgNatPolicyResponse.Builder::contentLocation) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createDrgRouteDistribution( @@ -3229,6 +3350,40 @@ public java.util.concurrent.Future deleteDrgAttachm .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteDrgNatPolicy( + DeleteDrgNatPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDrgNatPolicyRequest, DeleteDrgNatPolicyResponse> + handler) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, DeleteDrgNatPolicyResponse::builder) + .logger(LOG, "deleteDrgNatPolicy") + .serviceDetails( + "VirtualNetwork", + "DeleteDrgNatPolicy", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/DeleteDrgNatPolicy") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDrgNatPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteDrgNatPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteDrgNatPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteDrgRouteDistribution( @@ -4375,6 +4530,41 @@ public java.util.concurrent.Future getDrgAttachment( .callAsync(handler); } + @Override + public java.util.concurrent.Future getDrgNatPolicy( + GetDrgNatPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDrgNatPolicyRequest, GetDrgNatPolicyResponse> + handler) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, GetDrgNatPolicyResponse::builder) + .logger(LOG, "getDrgNatPolicy") + .serviceDetails( + "VirtualNetwork", + "GetDrgNatPolicy", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/GetDrgNatPolicy") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDrgNatPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.core.model.DrgNatPolicy.class, + GetDrgNatPolicyResponse.Builder::drgNatPolicy) + .handleResponseHeaderString("etag", GetDrgNatPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDrgNatPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getDrgRedundancyStatus( GetDrgRedundancyStatusRequest request, @@ -6542,6 +6732,7 @@ public java.util.concurrent.Future listDrgAttachment .appendQueryParam("drgId", request.getDrgId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) + .appendQueryParam("drgNatPolicyId", request.getDrgNatPolicyId()) .appendQueryParam("networkId", request.getNetworkId()) .appendEnumQueryParam("attachmentType", request.getAttachmentType()) .appendQueryParam("drgRouteTableId", request.getDrgRouteTableId()) @@ -6560,6 +6751,86 @@ public java.util.concurrent.Future listDrgAttachment .callAsync(handler); } + @Override + public java.util.concurrent.Future listDrgNatPolicies( + ListDrgNatPoliciesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDrgNatPoliciesRequest, ListDrgNatPoliciesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + + return clientCall(request, ListDrgNatPoliciesResponse::builder) + .logger(LOG, "listDrgNatPolicies") + .serviceDetails( + "VirtualNetwork", + "ListDrgNatPolicies", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/ListDrgNatPolicies") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDrgNatPoliciesRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.core.model.DrgNatPolicy.class, + ListDrgNatPoliciesResponse.Builder::items) + .handleResponseHeaderString( + "opc-next-page", ListDrgNatPoliciesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListDrgNatPoliciesResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listDrgNatRules( + ListDrgNatRulesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDrgNatRulesRequest, ListDrgNatRulesResponse> + handler) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, ListDrgNatRulesResponse::builder) + .logger(LOG, "listDrgNatRules") + .serviceDetails( + "VirtualNetwork", + "ListDrgNatRules", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/ListDrgNatRules") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDrgNatRulesRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .appendPathParam("drgNatRules") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.core.model.DrgNatRule.class, + ListDrgNatRulesResponse.Builder::items) + .handleResponseHeaderString( + "opc-next-page", ListDrgNatRulesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListDrgNatRulesResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listDrgRouteDistributionStatements( @@ -8225,6 +8496,83 @@ public java.util.concurrent.Future privateIpVnicDet .callAsync(handler); } + @Override + public java.util.concurrent.Future removeDrgNatPolicy( + RemoveDrgNatPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDrgNatPolicyRequest, RemoveDrgNatPolicyResponse> + handler) { + + Validate.notBlank(request.getDrgAttachmentId(), "drgAttachmentId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgAttachmentId", request.getDrgAttachmentId()); + + return clientCall(request, RemoveDrgNatPolicyResponse::builder) + .logger(LOG, "removeDrgNatPolicy") + .serviceDetails( + "VirtualNetwork", + "RemoveDrgNatPolicy", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/RemoveDrgNatPolicy") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDrgNatPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("drgAttachments") + .appendPathParam(request.getDrgAttachmentId()) + .appendPathParam("actions") + .appendPathParam("removeDrgNatPolicy") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.core.model.DrgAttachment.class, + RemoveDrgNatPolicyResponse.Builder::drgAttachment) + .handleResponseHeaderString("etag", RemoveDrgNatPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", RemoveDrgNatPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future removeDrgNatRules( + RemoveDrgNatRulesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDrgNatRulesRequest, RemoveDrgNatRulesResponse> + handler) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + Objects.requireNonNull( + request.getRemoveDrgNatRulesDetails(), "removeDrgNatRulesDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, RemoveDrgNatRulesResponse::builder) + .logger(LOG, "removeDrgNatRules") + .serviceDetails( + "VirtualNetwork", + "RemoveDrgNatRules", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/RemoveDrgNatRules") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDrgNatRulesRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .appendPathParam("actions") + .appendPathParam("removeDrgNatRules") + .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", RemoveDrgNatRulesResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RemoveDrgNatRulesResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future removeDrgRouteDistributionStatements( @@ -9087,6 +9435,85 @@ public java.util.concurrent.Future updateDrgAttachm .callAsync(handler); } + @Override + public java.util.concurrent.Future updateDrgNatPolicy( + UpdateDrgNatPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDrgNatPolicyRequest, UpdateDrgNatPolicyResponse> + handler) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateDrgNatPolicyDetails(), "updateDrgNatPolicyDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, UpdateDrgNatPolicyResponse::builder) + .logger(LOG, "updateDrgNatPolicy") + .serviceDetails( + "VirtualNetwork", + "UpdateDrgNatPolicy", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/UpdateDrgNatPolicy") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDrgNatPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.core.model.DrgNatPolicy.class, + UpdateDrgNatPolicyResponse.Builder::drgNatPolicy) + .handleResponseHeaderString("etag", UpdateDrgNatPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateDrgNatPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateDrgNatRules( + UpdateDrgNatRulesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDrgNatRulesRequest, UpdateDrgNatRulesResponse> + handler) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateDrgNatRulesDetails(), "updateDrgNatRulesDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, UpdateDrgNatRulesResponse::builder) + .logger(LOG, "updateDrgNatRules") + .serviceDetails( + "VirtualNetwork", + "UpdateDrgNatRules", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/UpdateDrgNatRules") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(UpdateDrgNatRulesRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .appendPathParam("actions") + .appendPathParam("updateDrgNatRules") + .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", UpdateDrgNatRulesResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateDrgNatRulesResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateDrgRouteDistribution( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java index 98af79529df..c482511c204 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java @@ -154,6 +154,43 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public AddDrgNatRulesResponse addDrgNatRules(AddDrgNatRulesRequest request) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + Objects.requireNonNull( + request.getAddDrgNatRulesDetails(), "addDrgNatRulesDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, AddDrgNatRulesResponse::builder) + .logger(LOG, "addDrgNatRules") + .serviceDetails( + "VirtualNetwork", + "AddDrgNatRules", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/AddDrgNatRules") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDrgNatRulesRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .appendPathParam("actions") + .appendPathParam("addDrgNatRules") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", AddDrgNatRulesResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", AddDrgNatRulesResponse.Builder::opcRequestId) + .callSync(); + } + @Override public AddDrgRouteDistributionStatementsResponse addDrgRouteDistributionStatements( AddDrgRouteDistributionStatementsRequest request) { @@ -1145,6 +1182,43 @@ public ChangeDrgCompartmentResponse changeDrgCompartment(ChangeDrgCompartmentReq .callSync(); } + @Override + public ChangeDrgNatPolicyCompartmentResponse changeDrgNatPolicyCompartment( + ChangeDrgNatPolicyCompartmentRequest request) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + Objects.requireNonNull( + request.getChangeDrgNatPolicyCompartmentDetails(), + "changeDrgNatPolicyCompartmentDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, ChangeDrgNatPolicyCompartmentResponse::builder) + .logger(LOG, "changeDrgNatPolicyCompartment") + .serviceDetails( + "VirtualNetwork", + "ChangeDrgNatPolicyCompartment", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/ChangeDrgNatPolicyCompartment") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDrgNatPolicyCompartmentRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .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", + ChangeDrgNatPolicyCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeIPSecConnectionCompartmentResponse changeIPSecConnectionCompartment( ChangeIPSecConnectionCompartmentRequest request) { @@ -2103,6 +2177,42 @@ public CreateDrgAttachmentResponse createDrgAttachment(CreateDrgAttachmentReques .callSync(); } + @Override + public CreateDrgNatPolicyResponse createDrgNatPolicy(CreateDrgNatPolicyRequest request) { + Objects.requireNonNull( + request.getCreateDrgNatPolicyDetails(), "createDrgNatPolicyDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + + return clientCall(request, CreateDrgNatPolicyResponse::builder) + .logger(LOG, "createDrgNatPolicy") + .serviceDetails( + "VirtualNetwork", + "CreateDrgNatPolicy", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/CreateDrgNatPolicy") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDrgNatPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.core.model.DrgNatPolicy.class, + CreateDrgNatPolicyResponse.Builder::drgNatPolicy) + .handleResponseHeaderString("etag", CreateDrgNatPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateDrgNatPolicyResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateDrgNatPolicyResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateDrgNatPolicyResponse.Builder::contentLocation) + .callSync(); + } + @Override public CreateDrgRouteDistributionResponse createDrgRouteDistribution( CreateDrgRouteDistributionRequest request) { @@ -2949,6 +3059,37 @@ public DeleteDrgAttachmentResponse deleteDrgAttachment(DeleteDrgAttachmentReques .callSync(); } + @Override + public DeleteDrgNatPolicyResponse deleteDrgNatPolicy(DeleteDrgNatPolicyRequest request) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, DeleteDrgNatPolicyResponse::builder) + .logger(LOG, "deleteDrgNatPolicy") + .serviceDetails( + "VirtualNetwork", + "DeleteDrgNatPolicy", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/DeleteDrgNatPolicy") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDrgNatPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", DeleteDrgNatPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteDrgNatPolicyResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteDrgRouteDistributionResponse deleteDrgRouteDistribution( DeleteDrgRouteDistributionRequest request) { @@ -3974,6 +4115,38 @@ public GetDrgAttachmentResponse getDrgAttachment(GetDrgAttachmentRequest request .callSync(); } + @Override + public GetDrgNatPolicyResponse getDrgNatPolicy(GetDrgNatPolicyRequest request) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, GetDrgNatPolicyResponse::builder) + .logger(LOG, "getDrgNatPolicy") + .serviceDetails( + "VirtualNetwork", + "GetDrgNatPolicy", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/GetDrgNatPolicy") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDrgNatPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.core.model.DrgNatPolicy.class, + GetDrgNatPolicyResponse.Builder::drgNatPolicy) + .handleResponseHeaderString("etag", GetDrgNatPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDrgNatPolicyResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetDrgRedundancyStatusResponse getDrgRedundancyStatus( GetDrgRedundancyStatusRequest request) { @@ -5950,6 +6123,7 @@ public ListDrgAttachmentsResponse listDrgAttachments(ListDrgAttachmentsRequest r .appendQueryParam("drgId", request.getDrgId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) + .appendQueryParam("drgNatPolicyId", request.getDrgNatPolicyId()) .appendQueryParam("networkId", request.getNetworkId()) .appendEnumQueryParam("attachmentType", request.getAttachmentType()) .appendQueryParam("drgRouteTableId", request.getDrgRouteTableId()) @@ -5968,6 +6142,80 @@ public ListDrgAttachmentsResponse listDrgAttachments(ListDrgAttachmentsRequest r .callSync(); } + @Override + public ListDrgNatPoliciesResponse listDrgNatPolicies(ListDrgNatPoliciesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + + return clientCall(request, ListDrgNatPoliciesResponse::builder) + .logger(LOG, "listDrgNatPolicies") + .serviceDetails( + "VirtualNetwork", + "ListDrgNatPolicies", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/ListDrgNatPolicies") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDrgNatPoliciesRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBodyList( + com.oracle.bmc.core.model.DrgNatPolicy.class, + ListDrgNatPoliciesResponse.Builder::items) + .handleResponseHeaderString( + "opc-next-page", ListDrgNatPoliciesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListDrgNatPoliciesResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListDrgNatRulesResponse listDrgNatRules(ListDrgNatRulesRequest request) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, ListDrgNatRulesResponse::builder) + .logger(LOG, "listDrgNatRules") + .serviceDetails( + "VirtualNetwork", + "ListDrgNatRules", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/ListDrgNatRules") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDrgNatRulesRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .appendPathParam("drgNatRules") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBodyList( + com.oracle.bmc.core.model.DrgNatRule.class, + ListDrgNatRulesResponse.Builder::items) + .handleResponseHeaderString( + "opc-next-page", ListDrgNatRulesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListDrgNatRulesResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ListDrgRouteDistributionStatementsResponse listDrgRouteDistributionStatements( ListDrgRouteDistributionStatementsRequest request) { @@ -7489,6 +7737,77 @@ public PrivateIpVnicDetachResponse privateIpVnicDetach(PrivateIpVnicDetachReques .callSync(); } + @Override + public RemoveDrgNatPolicyResponse removeDrgNatPolicy(RemoveDrgNatPolicyRequest request) { + + Validate.notBlank(request.getDrgAttachmentId(), "drgAttachmentId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgAttachmentId", request.getDrgAttachmentId()); + + return clientCall(request, RemoveDrgNatPolicyResponse::builder) + .logger(LOG, "removeDrgNatPolicy") + .serviceDetails( + "VirtualNetwork", + "RemoveDrgNatPolicy", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/RemoveDrgNatPolicy") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDrgNatPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("drgAttachments") + .appendPathParam(request.getDrgAttachmentId()) + .appendPathParam("actions") + .appendPathParam("removeDrgNatPolicy") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.core.model.DrgAttachment.class, + RemoveDrgNatPolicyResponse.Builder::drgAttachment) + .handleResponseHeaderString("etag", RemoveDrgNatPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", RemoveDrgNatPolicyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public RemoveDrgNatRulesResponse removeDrgNatRules(RemoveDrgNatRulesRequest request) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + Objects.requireNonNull( + request.getRemoveDrgNatRulesDetails(), "removeDrgNatRulesDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, RemoveDrgNatRulesResponse::builder) + .logger(LOG, "removeDrgNatRules") + .serviceDetails( + "VirtualNetwork", + "RemoveDrgNatRules", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/RemoveDrgNatRules") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDrgNatRulesRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .appendPathParam("actions") + .appendPathParam("removeDrgNatRules") + .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", RemoveDrgNatRulesResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RemoveDrgNatRulesResponse.Builder::opcRequestId) + .callSync(); + } + @Override public RemoveDrgRouteDistributionStatementsResponse removeDrgRouteDistributionStatements( RemoveDrgRouteDistributionStatementsRequest request) { @@ -8269,6 +8588,79 @@ public UpdateDrgAttachmentResponse updateDrgAttachment(UpdateDrgAttachmentReques .callSync(); } + @Override + public UpdateDrgNatPolicyResponse updateDrgNatPolicy(UpdateDrgNatPolicyRequest request) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateDrgNatPolicyDetails(), "updateDrgNatPolicyDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, UpdateDrgNatPolicyResponse::builder) + .logger(LOG, "updateDrgNatPolicy") + .serviceDetails( + "VirtualNetwork", + "UpdateDrgNatPolicy", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatPolicy/UpdateDrgNatPolicy") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDrgNatPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.core.model.DrgNatPolicy.class, + UpdateDrgNatPolicyResponse.Builder::drgNatPolicy) + .handleResponseHeaderString("etag", UpdateDrgNatPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateDrgNatPolicyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateDrgNatRulesResponse updateDrgNatRules(UpdateDrgNatRulesRequest request) { + + Validate.notBlank(request.getDrgNatPolicyId(), "drgNatPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateDrgNatRulesDetails(), "updateDrgNatRulesDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgNatPolicyId", request.getDrgNatPolicyId()); + + return clientCall(request, UpdateDrgNatRulesResponse::builder) + .logger(LOG, "updateDrgNatRules") + .serviceDetails( + "VirtualNetwork", + "UpdateDrgNatRules", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgNatRule/UpdateDrgNatRules") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(UpdateDrgNatRulesRequest::builder) + .basePath("/20160918") + .appendPathParam("drgNatPolicies") + .appendPathParam(request.getDrgNatPolicyId()) + .appendPathParam("actions") + .appendPathParam("updateDrgNatRules") + .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", UpdateDrgNatRulesResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateDrgNatRulesResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateDrgRouteDistributionResponse updateDrgRouteDistribution( UpdateDrgRouteDistributionRequest request) { diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkPaginators.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkPaginators.java index fbdb7cc8fe4..01555ede439 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkPaginators.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkPaginators.java @@ -1577,6 +1577,238 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listDrgNatPolicies 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 listDrgNatPoliciesResponseIterator( + final ListDrgNatPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDrgNatPoliciesRequest.Builder, + ListDrgNatPoliciesRequest, + ListDrgNatPoliciesResponse>( + new java.util.function.Supplier() { + @Override + public ListDrgNatPoliciesRequest.Builder get() { + return ListDrgNatPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDrgNatPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDrgNatPoliciesRequest.Builder>, + ListDrgNatPoliciesRequest>() { + @Override + public ListDrgNatPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDrgNatPoliciesRequest.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< + ListDrgNatPoliciesRequest, ListDrgNatPoliciesResponse>() { + @Override + public ListDrgNatPoliciesResponse apply(ListDrgNatPoliciesRequest request) { + return client.listDrgNatPolicies(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.core.model.DrgNatPolicy} objects contained in responses from the + * listDrgNatPolicies 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.core.model.DrgNatPolicy} objects contained in responses received from the + * service. + */ + public Iterable listDrgNatPoliciesRecordIterator( + final ListDrgNatPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDrgNatPoliciesRequest.Builder, + ListDrgNatPoliciesRequest, + ListDrgNatPoliciesResponse, + com.oracle.bmc.core.model.DrgNatPolicy>( + new java.util.function.Supplier() { + @Override + public ListDrgNatPoliciesRequest.Builder get() { + return ListDrgNatPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDrgNatPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDrgNatPoliciesRequest.Builder>, + ListDrgNatPoliciesRequest>() { + @Override + public ListDrgNatPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDrgNatPoliciesRequest.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< + ListDrgNatPoliciesRequest, ListDrgNatPoliciesResponse>() { + @Override + public ListDrgNatPoliciesResponse apply(ListDrgNatPoliciesRequest request) { + return client.listDrgNatPolicies(request); + } + }, + new java.util.function.Function< + ListDrgNatPoliciesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListDrgNatPoliciesResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listDrgNatRules 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 listDrgNatRulesResponseIterator( + final ListDrgNatRulesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDrgNatRulesRequest.Builder, ListDrgNatRulesRequest, ListDrgNatRulesResponse>( + new java.util.function.Supplier() { + @Override + public ListDrgNatRulesRequest.Builder get() { + return ListDrgNatRulesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDrgNatRulesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDrgNatRulesRequest.Builder>, + ListDrgNatRulesRequest>() { + @Override + public ListDrgNatRulesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDrgNatRulesRequest.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 ListDrgNatRulesResponse apply(ListDrgNatRulesRequest request) { + return client.listDrgNatRules(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.core.model.DrgNatRule} objects contained in responses from the listDrgNatRules + * 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.core.model.DrgNatRule} objects contained in responses received from the + * service. + */ + public Iterable listDrgNatRulesRecordIterator( + final ListDrgNatRulesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDrgNatRulesRequest.Builder, + ListDrgNatRulesRequest, + ListDrgNatRulesResponse, + com.oracle.bmc.core.model.DrgNatRule>( + new java.util.function.Supplier() { + @Override + public ListDrgNatRulesRequest.Builder get() { + return ListDrgNatRulesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDrgNatRulesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDrgNatRulesRequest.Builder>, + ListDrgNatRulesRequest>() { + @Override + public ListDrgNatRulesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDrgNatRulesRequest.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 ListDrgNatRulesResponse apply(ListDrgNatRulesRequest request) { + return client.listDrgNatRules(request); + } + }, + new java.util.function.Function< + ListDrgNatRulesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListDrgNatRulesResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listDrgRouteDistributionStatements operation. This iterable will fetch more data from the diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkWaiters.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkWaiters.java index 4794abdd08c..c3550b24111 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkWaiters.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkWaiters.java @@ -42,6 +42,66 @@ public VirtualNetworkWaiters( this.workRequestClient = workRequestClient; } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forAddDrgNatRules(AddDrgNatRulesRequest request) { + return forAddDrgNatRules( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forAddDrgNatRules( + AddDrgNatRulesRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public AddDrgNatRulesResponse call() throws Exception { + final AddDrgNatRulesResponse response = client.addDrgNatRules(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -1197,6 +1257,67 @@ public DeleteByoipRangeResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forDeleteDrgNatPolicy(DeleteDrgNatPolicyRequest request) { + return forDeleteDrgNatPolicy( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forDeleteDrgNatPolicy( + DeleteDrgNatPolicyRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public DeleteDrgNatPolicyResponse call() throws Exception { + final DeleteDrgNatPolicyResponse response = + client.deleteDrgNatPolicy(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -2075,6 +2196,110 @@ public boolean test(GetDrgAttachmentResponse 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 + forDrgNatPolicy( + GetDrgNatPolicyRequest request, + com.oracle.bmc.core.model.DrgNatPolicy.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 forDrgNatPolicy( + 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 + forDrgNatPolicy( + GetDrgNatPolicyRequest request, + com.oracle.bmc.core.model.DrgNatPolicy.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 forDrgNatPolicy( + 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 + forDrgNatPolicy( + GetDrgNatPolicyRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.core.model.DrgNatPolicy.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 forDrgNatPolicy( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DrgNatPolicy. + private com.oracle.bmc.waiter.Waiter + forDrgNatPolicy( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDrgNatPolicyRequest request, + final com.oracle.bmc.core.model.DrgNatPolicy.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< + GetDrgNatPolicyRequest, GetDrgNatPolicyResponse>() { + @Override + public GetDrgNatPolicyResponse apply(GetDrgNatPolicyRequest request) { + return client.getDrgNatPolicy(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDrgNatPolicyResponse response) { + return targetStatesSet.contains( + response.getDrgNatPolicy().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.core.model.DrgNatPolicy.LifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -4956,6 +5181,67 @@ public PatchVcnResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forRemoveDrgNatRules(RemoveDrgNatRulesRequest request) { + return forRemoveDrgNatRules( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forRemoveDrgNatRules( + RemoveDrgNatRulesRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public RemoveDrgNatRulesResponse call() throws Exception { + final RemoveDrgNatRulesResponse response = + client.removeDrgNatRules(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -5258,6 +5544,67 @@ public SetOriginAsnResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forUpdateDrgNatRules(UpdateDrgNatRulesRequest request) { + return forUpdateDrgNatRules( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forUpdateDrgNatRules( + UpdateDrgNatRulesRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public UpdateDrgNatRulesResponse call() throws Exception { + final UpdateDrgNatRulesResponse response = + client.updateDrgNatRules(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/AddDrgNatRuleDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/AddDrgNatRuleDetails.java new file mode 100644 index 00000000000..2f8f69bf984 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/AddDrgNatRuleDetails.java @@ -0,0 +1,387 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 used to add a DRG NAT rule.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = AddDrgNatRuleDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AddDrgNatRuleDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "drgNatRulePriority", + "originalSource", + "translatedSource", + "originalDestination", + "translatedDestination" + }) + public AddDrgNatRuleDetails( + Long drgNatRulePriority, + String originalSource, + String translatedSource, + String originalDestination, + String translatedDestination) { + super(); + this.drgNatRulePriority = drgNatRulePriority; + this.originalSource = originalSource; + this.translatedSource = translatedSource; + this.originalDestination = originalDestination; + this.translatedDestination = translatedDestination; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The priority associated with each DRG NAT rule. */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatRulePriority") + private Long drgNatRulePriority; + + /** + * The priority associated with each DRG NAT rule. + * + * @param drgNatRulePriority the value to set + * @return this builder + */ + public Builder drgNatRulePriority(Long drgNatRulePriority) { + this.drgNatRulePriority = drgNatRulePriority; + this.__explicitlySet__.add("drgNatRulePriority"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalSource") + private String originalSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param originalSource the value to set + * @return this builder + */ + public Builder originalSource(String originalSource) { + this.originalSource = originalSource; + this.__explicitlySet__.add("originalSource"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedSource") + private String translatedSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param translatedSource the value to set + * @return this builder + */ + public Builder translatedSource(String translatedSource) { + this.translatedSource = translatedSource; + this.__explicitlySet__.add("translatedSource"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalDestination") + private String originalDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param originalDestination the value to set + * @return this builder + */ + public Builder originalDestination(String originalDestination) { + this.originalDestination = originalDestination; + this.__explicitlySet__.add("originalDestination"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedDestination") + private String translatedDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param translatedDestination the value to set + * @return this builder + */ + public Builder translatedDestination(String translatedDestination) { + this.translatedDestination = translatedDestination; + this.__explicitlySet__.add("translatedDestination"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddDrgNatRuleDetails build() { + AddDrgNatRuleDetails model = + new AddDrgNatRuleDetails( + this.drgNatRulePriority, + this.originalSource, + this.translatedSource, + this.originalDestination, + this.translatedDestination); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddDrgNatRuleDetails model) { + if (model.wasPropertyExplicitlySet("drgNatRulePriority")) { + this.drgNatRulePriority(model.getDrgNatRulePriority()); + } + if (model.wasPropertyExplicitlySet("originalSource")) { + this.originalSource(model.getOriginalSource()); + } + if (model.wasPropertyExplicitlySet("translatedSource")) { + this.translatedSource(model.getTranslatedSource()); + } + if (model.wasPropertyExplicitlySet("originalDestination")) { + this.originalDestination(model.getOriginalDestination()); + } + if (model.wasPropertyExplicitlySet("translatedDestination")) { + this.translatedDestination(model.getTranslatedDestination()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The priority associated with each DRG NAT rule. */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatRulePriority") + private final Long drgNatRulePriority; + + /** + * The priority associated with each DRG NAT rule. + * + * @return the value + */ + public Long getDrgNatRulePriority() { + return drgNatRulePriority; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalSource") + private final String originalSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getOriginalSource() { + return originalSource; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedSource") + private final String translatedSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getTranslatedSource() { + return translatedSource; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalDestination") + private final String originalDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getOriginalDestination() { + return originalDestination; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedDestination") + private final String translatedDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getTranslatedDestination() { + return translatedDestination; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AddDrgNatRuleDetails("); + sb.append("super=").append(super.toString()); + sb.append("drgNatRulePriority=").append(String.valueOf(this.drgNatRulePriority)); + sb.append(", originalSource=").append(String.valueOf(this.originalSource)); + sb.append(", translatedSource=").append(String.valueOf(this.translatedSource)); + sb.append(", originalDestination=").append(String.valueOf(this.originalDestination)); + sb.append(", translatedDestination=").append(String.valueOf(this.translatedDestination)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDrgNatRuleDetails)) { + return false; + } + + AddDrgNatRuleDetails other = (AddDrgNatRuleDetails) o; + return java.util.Objects.equals(this.drgNatRulePriority, other.drgNatRulePriority) + && java.util.Objects.equals(this.originalSource, other.originalSource) + && java.util.Objects.equals(this.translatedSource, other.translatedSource) + && java.util.Objects.equals(this.originalDestination, other.originalDestination) + && java.util.Objects.equals(this.translatedDestination, other.translatedDestination) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.drgNatRulePriority == null + ? 43 + : this.drgNatRulePriority.hashCode()); + result = + (result * PRIME) + + (this.originalSource == null ? 43 : this.originalSource.hashCode()); + result = + (result * PRIME) + + (this.translatedSource == null ? 43 : this.translatedSource.hashCode()); + result = + (result * PRIME) + + (this.originalDestination == null + ? 43 + : this.originalDestination.hashCode()); + result = + (result * PRIME) + + (this.translatedDestination == null + ? 43 + : this.translatedDestination.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/AddDrgNatRulesDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/AddDrgNatRulesDetails.java new file mode 100644 index 00000000000..1464f8db70a --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/AddDrgNatRulesDetails.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.core.model; + +/** + * Details request to add rules to a DRG NAT policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AddDrgNatRulesDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AddDrgNatRulesDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"rules"}) + public AddDrgNatRulesDetails(java.util.List rules) { + super(); + this.rules = rules; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The collection of DRG NAT rules to insert into the DRG NAT policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("rules") + private java.util.List rules; + + /** + * The collection of DRG NAT rules to insert into the DRG NAT policy. + * + * @param rules the value to set + * @return this builder + */ + public Builder rules(java.util.List rules) { + this.rules = rules; + this.__explicitlySet__.add("rules"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddDrgNatRulesDetails build() { + AddDrgNatRulesDetails model = new AddDrgNatRulesDetails(this.rules); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddDrgNatRulesDetails model) { + if (model.wasPropertyExplicitlySet("rules")) { + this.rules(model.getRules()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The collection of DRG NAT rules to insert into the DRG NAT policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("rules") + private final java.util.List rules; + + /** + * The collection of DRG NAT rules to insert into the DRG NAT policy. + * + * @return the value + */ + public java.util.List getRules() { + return rules; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AddDrgNatRulesDetails("); + sb.append("super=").append(super.toString()); + sb.append("rules=").append(String.valueOf(this.rules)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDrgNatRulesDetails)) { + return false; + } + + AddDrgNatRulesDetails other = (AddDrgNatRulesDetails) o; + return java.util.Objects.equals(this.rules, other.rules) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.rules == null ? 43 : this.rules.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeDrgNatPolicyCompartmentDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeDrgNatPolicyCompartmentDetails.java new file mode 100644 index 00000000000..2e3ed2183f4 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeDrgNatPolicyCompartmentDetails.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.core.model; + +/** + * The configuration details for the move operation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = ChangeDrgNatPolicyCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDrgNatPolicyCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDrgNatPolicyCompartmentDetails(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 move the DrgNatPolicy to. + */ + @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 move the DrgNatPolicy to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDrgNatPolicyCompartmentDetails build() { + ChangeDrgNatPolicyCompartmentDetails model = + new ChangeDrgNatPolicyCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDrgNatPolicyCompartmentDetails 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 move the DrgNatPolicy to. + */ + @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 move the DrgNatPolicy to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDrgNatPolicyCompartmentDetails("); + 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 ChangeDrgNatPolicyCompartmentDetails)) { + return false; + } + + ChangeDrgNatPolicyCompartmentDetails other = (ChangeDrgNatPolicyCompartmentDetails) 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-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java index c179414eba4..c0b3164a2f9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java @@ -31,7 +31,9 @@ public final class CreateDrgAttachmentDetails "definedTags", "freeformTags", "routeTableId", - "vcnId" + "vcnId", + "drgNatPolicyId", + "doesPreserveOriginalRoutesWithNat" }) public CreateDrgAttachmentDetails( String displayName, @@ -41,7 +43,9 @@ public CreateDrgAttachmentDetails( java.util.Map> definedTags, java.util.Map freeformTags, String routeTableId, - String vcnId) { + String vcnId, + String drgNatPolicyId, + Boolean doesPreserveOriginalRoutesWithNat) { super(); this.displayName = displayName; this.drgId = drgId; @@ -51,6 +55,8 @@ public CreateDrgAttachmentDetails( this.freeformTags = freeformTags; this.routeTableId = routeTableId; this.vcnId = vcnId; + this.drgNatPolicyId = drgNatPolicyId; + this.doesPreserveOriginalRoutesWithNat = doesPreserveOriginalRoutesWithNat; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -242,6 +248,49 @@ public Builder vcnId(String vcnId) { this.__explicitlySet__.add("vcnId"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG attachment's DRG NAT policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatPolicyId") + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG attachment's DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + this.__explicitlySet__.add("drgNatPolicyId"); + return this; + } + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to + * prevent routing complications. Enable this option to also preserve original CIDRs. The + * original source CIDRs is not advertised if this value is set to false, else it is + * advertised. default: {@code false} + */ + @com.fasterxml.jackson.annotation.JsonProperty("doesPreserveOriginalRoutesWithNat") + private Boolean doesPreserveOriginalRoutesWithNat; + + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to + * prevent routing complications. Enable this option to also preserve original CIDRs. The + * original source CIDRs is not advertised if this value is set to false, else it is + * advertised. default: {@code false} + * + * @param doesPreserveOriginalRoutesWithNat the value to set + * @return this builder + */ + public Builder doesPreserveOriginalRoutesWithNat( + Boolean doesPreserveOriginalRoutesWithNat) { + this.doesPreserveOriginalRoutesWithNat = doesPreserveOriginalRoutesWithNat; + this.__explicitlySet__.add("doesPreserveOriginalRoutesWithNat"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -256,7 +305,9 @@ public CreateDrgAttachmentDetails build() { this.definedTags, this.freeformTags, this.routeTableId, - this.vcnId); + this.vcnId, + this.drgNatPolicyId, + this.doesPreserveOriginalRoutesWithNat); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -289,6 +340,13 @@ public Builder copy(CreateDrgAttachmentDetails model) { if (model.wasPropertyExplicitlySet("vcnId")) { this.vcnId(model.getVcnId()); } + if (model.wasPropertyExplicitlySet("drgNatPolicyId")) { + this.drgNatPolicyId(model.getDrgNatPolicyId()); + } + if (model.wasPropertyExplicitlySet("doesPreserveOriginalRoutesWithNat")) { + this.doesPreserveOriginalRoutesWithNat( + model.getDoesPreserveOriginalRoutesWithNat()); + } return this; } } @@ -470,6 +528,44 @@ public String getVcnId() { return vcnId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * attachment's DRG NAT policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatPolicyId") + private final String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * attachment's DRG NAT policy. + * + * @return the value + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to prevent + * routing complications. Enable this option to also preserve original CIDRs. The original + * source CIDRs is not advertised if this value is set to false, else it is advertised. default: + * {@code false} + */ + @com.fasterxml.jackson.annotation.JsonProperty("doesPreserveOriginalRoutesWithNat") + private final Boolean doesPreserveOriginalRoutesWithNat; + + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to prevent + * routing complications. Enable this option to also preserve original CIDRs. The original + * source CIDRs is not advertised if this value is set to false, else it is advertised. default: + * {@code false} + * + * @return the value + */ + public Boolean getDoesPreserveOriginalRoutesWithNat() { + return doesPreserveOriginalRoutesWithNat; + } + @Override public String toString() { return this.toString(true); @@ -493,6 +589,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); + sb.append(", drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + sb.append(", doesPreserveOriginalRoutesWithNat=") + .append(String.valueOf(this.doesPreserveOriginalRoutesWithNat)); sb.append(")"); return sb.toString(); } @@ -515,6 +614,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.routeTableId, other.routeTableId) && java.util.Objects.equals(this.vcnId, other.vcnId) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && java.util.Objects.equals( + this.doesPreserveOriginalRoutesWithNat, + other.doesPreserveOriginalRoutesWithNat) && super.equals(other); } @@ -534,6 +637,14 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.routeTableId == null ? 43 : this.routeTableId.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); + result = + (result * PRIME) + + (this.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); + result = + (result * PRIME) + + (this.doesPreserveOriginalRoutesWithNat == null + ? 43 + : this.doesPreserveOriginalRoutesWithNat.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgNatPolicyDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgNatPolicyDetails.java new file mode 100644 index 00000000000..85283a06eda --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgNatPolicyDetails.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.core.model; + +/** + * Details used to create a DRG NAT policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDrgNatPolicyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDrgNatPolicyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "definedTags", + "displayName", + "freeformTags", + "compartmentId" + }) + public CreateDrgNatPolicyDetails( + java.util.Map> definedTags, + String displayName, + java.util.Map freeformTags, + String compartmentId) { + super(); + this.definedTags = definedTags; + this.displayName = displayName; + this.freeformTags = freeformTags; + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * 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; + } + /** + * 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; + } + /** + * 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; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the DRG NAT policy. + */ + @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 DRG NAT policy. + * + * @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 CreateDrgNatPolicyDetails build() { + CreateDrgNatPolicyDetails model = + new CreateDrgNatPolicyDetails( + this.definedTags, + this.displayName, + this.freeformTags, + this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDrgNatPolicyDetails model) { + 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("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); + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment containing the DRG NAT policy. + */ + @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 DRG NAT policy. + * + * @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("CreateDrgNatPolicyDetails("); + sb.append("super=").append(super.toString()); + sb.append("definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + 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 CreateDrgNatPolicyDetails)) { + return false; + } + + CreateDrgNatPolicyDetails other = (CreateDrgNatPolicyDetails) o; + return java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java index d127ae2581b..07cba47b7df 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java @@ -38,6 +38,8 @@ public final class DrgAttachment extends com.oracle.bmc.http.client.internal.Exp "freeformTags", "routeTableId", "vcnId", + "drgNatPolicyId", + "doesPreserveOriginalRoutesWithNat", "exportDrgRouteDistributionId", "isCrossTenancy" }) @@ -54,6 +56,8 @@ public DrgAttachment( java.util.Map freeformTags, String routeTableId, String vcnId, + String drgNatPolicyId, + Boolean doesPreserveOriginalRoutesWithNat, String exportDrgRouteDistributionId, Boolean isCrossTenancy) { super(); @@ -69,6 +73,8 @@ public DrgAttachment( this.freeformTags = freeformTags; this.routeTableId = routeTableId; this.vcnId = vcnId; + this.drgNatPolicyId = drgNatPolicyId; + this.doesPreserveOriginalRoutesWithNat = doesPreserveOriginalRoutesWithNat; this.exportDrgRouteDistributionId = exportDrgRouteDistributionId; this.isCrossTenancy = isCrossTenancy; } @@ -338,6 +344,49 @@ public Builder vcnId(String vcnId) { this.__explicitlySet__.add("vcnId"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG attachment's DRG NAT policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatPolicyId") + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG attachment's DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + this.__explicitlySet__.add("drgNatPolicyId"); + return this; + } + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to + * prevent routing complications. Enable this option to also preserve original CIDRs. The + * original source CIDRs is not advertised if this value is set to false, else it is + * advertised. default: {@code false} + */ + @com.fasterxml.jackson.annotation.JsonProperty("doesPreserveOriginalRoutesWithNat") + private Boolean doesPreserveOriginalRoutesWithNat; + + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to + * prevent routing complications. Enable this option to also preserve original CIDRs. The + * original source CIDRs is not advertised if this value is set to false, else it is + * advertised. default: {@code false} + * + * @param doesPreserveOriginalRoutesWithNat the value to set + * @return this builder + */ + public Builder doesPreserveOriginalRoutesWithNat( + Boolean doesPreserveOriginalRoutesWithNat) { + this.doesPreserveOriginalRoutesWithNat = doesPreserveOriginalRoutesWithNat; + this.__explicitlySet__.add("doesPreserveOriginalRoutesWithNat"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * export route distribution used to specify how routes in the assigned DRG route table are @@ -403,6 +452,8 @@ public DrgAttachment build() { this.freeformTags, this.routeTableId, this.vcnId, + this.drgNatPolicyId, + this.doesPreserveOriginalRoutesWithNat, this.exportDrgRouteDistributionId, this.isCrossTenancy); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -449,6 +500,13 @@ public Builder copy(DrgAttachment model) { if (model.wasPropertyExplicitlySet("vcnId")) { this.vcnId(model.getVcnId()); } + if (model.wasPropertyExplicitlySet("drgNatPolicyId")) { + this.drgNatPolicyId(model.getDrgNatPolicyId()); + } + if (model.wasPropertyExplicitlySet("doesPreserveOriginalRoutesWithNat")) { + this.doesPreserveOriginalRoutesWithNat( + model.getDoesPreserveOriginalRoutesWithNat()); + } if (model.wasPropertyExplicitlySet("exportDrgRouteDistributionId")) { this.exportDrgRouteDistributionId(model.getExportDrgRouteDistributionId()); } @@ -750,6 +808,44 @@ public String getVcnId() { return vcnId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * attachment's DRG NAT policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatPolicyId") + private final String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * attachment's DRG NAT policy. + * + * @return the value + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to prevent + * routing complications. Enable this option to also preserve original CIDRs. The original + * source CIDRs is not advertised if this value is set to false, else it is advertised. default: + * {@code false} + */ + @com.fasterxml.jackson.annotation.JsonProperty("doesPreserveOriginalRoutesWithNat") + private final Boolean doesPreserveOriginalRoutesWithNat; + + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to prevent + * routing complications. Enable this option to also preserve original CIDRs. The original + * source CIDRs is not advertised if this value is set to false, else it is advertised. default: + * {@code false} + * + * @return the value + */ + public Boolean getDoesPreserveOriginalRoutesWithNat() { + return doesPreserveOriginalRoutesWithNat; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * export route distribution used to specify how routes in the assigned DRG route table are @@ -819,6 +915,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); + sb.append(", drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + sb.append(", doesPreserveOriginalRoutesWithNat=") + .append(String.valueOf(this.doesPreserveOriginalRoutesWithNat)); sb.append(", exportDrgRouteDistributionId=") .append(String.valueOf(this.exportDrgRouteDistributionId)); sb.append(", isCrossTenancy=").append(String.valueOf(this.isCrossTenancy)); @@ -848,6 +947,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.routeTableId, other.routeTableId) && java.util.Objects.equals(this.vcnId, other.vcnId) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && java.util.Objects.equals( + this.doesPreserveOriginalRoutesWithNat, + other.doesPreserveOriginalRoutesWithNat) && java.util.Objects.equals( this.exportDrgRouteDistributionId, other.exportDrgRouteDistributionId) && java.util.Objects.equals(this.isCrossTenancy, other.isCrossTenancy) @@ -878,6 +981,14 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.routeTableId == null ? 43 : this.routeTableId.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); + result = + (result * PRIME) + + (this.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); + result = + (result * PRIME) + + (this.doesPreserveOriginalRoutesWithNat == null + ? 43 + : this.doesPreserveOriginalRoutesWithNat.hashCode()); result = (result * PRIME) + (this.exportDrgRouteDistributionId == null diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgNatPolicy.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgNatPolicy.java new file mode 100644 index 00000000000..0b626e0b512 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgNatPolicy.java @@ -0,0 +1,547 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Collection of DRG NAT rules that is associated to a DRG Attachment to allow Network Address + * Translation of one or more conflicting IPs or CIDR ranges.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = DrgNatPolicy.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DrgNatPolicy extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "definedTags", + "displayName", + "freeformTags", + "systemTags", + "lifecycleState", + "timeCreated" + }) + public DrgNatPolicy( + String id, + String compartmentId, + java.util.Map> definedTags, + String displayName, + java.util.Map freeformTags, + java.util.Map> systemTags, + LifecycleState lifecycleState, + java.util.Date timeCreated) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.definedTags = definedTags; + this.displayName = displayName; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The DRG NAT policy's Oracle ID + * ([OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The DRG NAT policy's Oracle ID + * ([OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + * + * @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 DRG NAT policy. + */ + @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 DRG NAT policy. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + 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; + } + /** + * 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; + } + /** + * 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; + } + /** + * 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 DRG NAT policy's current state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The DRG NAT policy's current state. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the DRG NAT policy was created, 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("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the DRG NAT policy was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DrgNatPolicy build() { + DrgNatPolicy model = + new DrgNatPolicy( + this.id, + this.compartmentId, + this.definedTags, + this.displayName, + this.freeformTags, + this.systemTags, + this.lifecycleState, + this.timeCreated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DrgNatPolicy model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + 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("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The DRG NAT policy's Oracle ID + * ([OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The DRG NAT policy's Oracle ID + * ([OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + * + * @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 DRG NAT policy. + */ + @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 DRG NAT policy. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * 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 DRG NAT policy's current state. */ + 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 DRG NAT policy's current state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The DRG NAT policy's current state. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the DRG NAT policy was created, 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("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the DRG NAT policy was created, 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 getTimeCreated() { + return timeCreated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DrgNatPolicy("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DrgNatPolicy)) { + return false; + } + + DrgNatPolicy other = (DrgNatPolicy) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgNatRule.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgNatRule.java new file mode 100644 index 00000000000..ad8fb986c35 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgNatRule.java @@ -0,0 +1,473 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * A DRG NAT rule specifies the mapping between an original source/destination IP and a translated + * source/destination IP. The source needs to be described in the context of packet entering the + * DRG.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = DrgNatRule.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DrgNatRule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "drgNatPolicyId", + "drgNatRulePriority", + "originalSource", + "translatedSource", + "originalDestination", + "translatedDestination" + }) + public DrgNatRule( + String id, + String drgNatPolicyId, + Long drgNatRulePriority, + String originalSource, + String translatedSource, + String originalDestination, + String translatedDestination) { + super(); + this.id = id; + this.drgNatPolicyId = drgNatPolicyId; + this.drgNatRulePriority = drgNatRulePriority; + this.originalSource = originalSource; + this.translatedSource = translatedSource; + this.originalDestination = originalDestination; + this.translatedDestination = translatedDestination; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The Oracle-assigned ID of the DRG NAT rule. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The Oracle-assigned ID of the DRG NAT rule. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The DRG NAT policy's Oracle ID + * ([OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatPolicyId") + private String drgNatPolicyId; + + /** + * The DRG NAT policy's Oracle ID + * ([OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + * + * @param drgNatPolicyId the value to set + * @return this builder + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + this.__explicitlySet__.add("drgNatPolicyId"); + return this; + } + /** The priority associated with each DRG NAT rule. */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatRulePriority") + private Long drgNatRulePriority; + + /** + * The priority associated with each DRG NAT rule. + * + * @param drgNatRulePriority the value to set + * @return this builder + */ + public Builder drgNatRulePriority(Long drgNatRulePriority) { + this.drgNatRulePriority = drgNatRulePriority; + this.__explicitlySet__.add("drgNatRulePriority"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalSource") + private String originalSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param originalSource the value to set + * @return this builder + */ + public Builder originalSource(String originalSource) { + this.originalSource = originalSource; + this.__explicitlySet__.add("originalSource"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedSource") + private String translatedSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param translatedSource the value to set + * @return this builder + */ + public Builder translatedSource(String translatedSource) { + this.translatedSource = translatedSource; + this.__explicitlySet__.add("translatedSource"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalDestination") + private String originalDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param originalDestination the value to set + * @return this builder + */ + public Builder originalDestination(String originalDestination) { + this.originalDestination = originalDestination; + this.__explicitlySet__.add("originalDestination"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedDestination") + private String translatedDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param translatedDestination the value to set + * @return this builder + */ + public Builder translatedDestination(String translatedDestination) { + this.translatedDestination = translatedDestination; + this.__explicitlySet__.add("translatedDestination"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DrgNatRule build() { + DrgNatRule model = + new DrgNatRule( + this.id, + this.drgNatPolicyId, + this.drgNatRulePriority, + this.originalSource, + this.translatedSource, + this.originalDestination, + this.translatedDestination); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DrgNatRule model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("drgNatPolicyId")) { + this.drgNatPolicyId(model.getDrgNatPolicyId()); + } + if (model.wasPropertyExplicitlySet("drgNatRulePriority")) { + this.drgNatRulePriority(model.getDrgNatRulePriority()); + } + if (model.wasPropertyExplicitlySet("originalSource")) { + this.originalSource(model.getOriginalSource()); + } + if (model.wasPropertyExplicitlySet("translatedSource")) { + this.translatedSource(model.getTranslatedSource()); + } + if (model.wasPropertyExplicitlySet("originalDestination")) { + this.originalDestination(model.getOriginalDestination()); + } + if (model.wasPropertyExplicitlySet("translatedDestination")) { + this.translatedDestination(model.getTranslatedDestination()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The Oracle-assigned ID of the DRG NAT rule. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The Oracle-assigned ID of the DRG NAT rule. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The DRG NAT policy's Oracle ID + * ([OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatPolicyId") + private final String drgNatPolicyId; + + /** + * The DRG NAT policy's Oracle ID + * ([OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + * + * @return the value + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + + /** The priority associated with each DRG NAT rule. */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatRulePriority") + private final Long drgNatRulePriority; + + /** + * The priority associated with each DRG NAT rule. + * + * @return the value + */ + public Long getDrgNatRulePriority() { + return drgNatRulePriority; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalSource") + private final String originalSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getOriginalSource() { + return originalSource; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedSource") + private final String translatedSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getTranslatedSource() { + return translatedSource; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalDestination") + private final String originalDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getOriginalDestination() { + return originalDestination; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedDestination") + private final String translatedDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getTranslatedDestination() { + return translatedDestination; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DrgNatRule("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + sb.append(", drgNatRulePriority=").append(String.valueOf(this.drgNatRulePriority)); + sb.append(", originalSource=").append(String.valueOf(this.originalSource)); + sb.append(", translatedSource=").append(String.valueOf(this.translatedSource)); + sb.append(", originalDestination=").append(String.valueOf(this.originalDestination)); + sb.append(", translatedDestination=").append(String.valueOf(this.translatedDestination)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DrgNatRule)) { + return false; + } + + DrgNatRule other = (DrgNatRule) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && java.util.Objects.equals(this.drgNatRulePriority, other.drgNatRulePriority) + && java.util.Objects.equals(this.originalSource, other.originalSource) + && java.util.Objects.equals(this.translatedSource, other.translatedSource) + && java.util.Objects.equals(this.originalDestination, other.originalDestination) + && java.util.Objects.equals(this.translatedDestination, other.translatedDestination) + && 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.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); + result = + (result * PRIME) + + (this.drgNatRulePriority == null + ? 43 + : this.drgNatRulePriority.hashCode()); + result = + (result * PRIME) + + (this.originalSource == null ? 43 : this.originalSource.hashCode()); + result = + (result * PRIME) + + (this.translatedSource == null ? 43 : this.translatedSource.hashCode()); + result = + (result * PRIME) + + (this.originalDestination == null + ? 43 + : this.originalDestination.hashCode()); + result = + (result * PRIME) + + (this.translatedDestination == null + ? 43 + : this.translatedDestination.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/RemoveDrgNatRulesDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/RemoveDrgNatRulesDetails.java new file mode 100644 index 00000000000..0e3c4cc5d5d --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/RemoveDrgNatRulesDetails.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.core.model; + +/** + * Details request to remove rules from a DRG NAT policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RemoveDrgNatRulesDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RemoveDrgNatRulesDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ruleIds"}) + public RemoveDrgNatRulesDetails(java.util.List ruleIds) { + super(); + this.ruleIds = ruleIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The Oracle-assigned ID of each DRG NAT rule to remove. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruleIds") + private java.util.List ruleIds; + + /** + * The Oracle-assigned ID of each DRG NAT rule to remove. + * + * @param ruleIds the value to set + * @return this builder + */ + public Builder ruleIds(java.util.List ruleIds) { + this.ruleIds = ruleIds; + this.__explicitlySet__.add("ruleIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RemoveDrgNatRulesDetails build() { + RemoveDrgNatRulesDetails model = new RemoveDrgNatRulesDetails(this.ruleIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RemoveDrgNatRulesDetails model) { + if (model.wasPropertyExplicitlySet("ruleIds")) { + this.ruleIds(model.getRuleIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The Oracle-assigned ID of each DRG NAT rule to remove. */ + @com.fasterxml.jackson.annotation.JsonProperty("ruleIds") + private final java.util.List ruleIds; + + /** + * The Oracle-assigned ID of each DRG NAT rule to remove. + * + * @return the value + */ + public java.util.List getRuleIds() { + return ruleIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RemoveDrgNatRulesDetails("); + sb.append("super=").append(super.toString()); + sb.append("ruleIds=").append(String.valueOf(this.ruleIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveDrgNatRulesDetails)) { + return false; + } + + RemoveDrgNatRulesDetails other = (RemoveDrgNatRulesDetails) o; + return java.util.Objects.equals(this.ruleIds, other.ruleIds) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.ruleIds == null ? 43 : this.ruleIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgAttachmentDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgAttachmentDetails.java index 3a9c046aa9c..8c3a53b8c6c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgAttachmentDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgAttachmentDetails.java @@ -25,6 +25,8 @@ public final class UpdateDrgAttachmentDetails @Deprecated @java.beans.ConstructorProperties({ "displayName", + "drgNatPolicyId", + "doesPreserveOriginalRoutesWithNat", "drgRouteTableId", "networkDetails", "definedTags", @@ -34,6 +36,8 @@ public final class UpdateDrgAttachmentDetails }) public UpdateDrgAttachmentDetails( String displayName, + String drgNatPolicyId, + Boolean doesPreserveOriginalRoutesWithNat, String drgRouteTableId, DrgAttachmentNetworkUpdateDetails networkDetails, java.util.Map> definedTags, @@ -42,6 +46,8 @@ public UpdateDrgAttachmentDetails( String routeTableId) { super(); this.displayName = displayName; + this.drgNatPolicyId = drgNatPolicyId; + this.doesPreserveOriginalRoutesWithNat = doesPreserveOriginalRoutesWithNat; this.drgRouteTableId = drgRouteTableId; this.networkDetails = networkDetails; this.definedTags = definedTags; @@ -71,6 +77,49 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG attachment's DRG NAT policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatPolicyId") + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG attachment's DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + this.__explicitlySet__.add("drgNatPolicyId"); + return this; + } + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to + * prevent routing complications. Enable this option to also preserve original CIDRs. The + * original source CIDRs is not advertised if this value is set to false, else it is + * advertised. default: {@code false} + */ + @com.fasterxml.jackson.annotation.JsonProperty("doesPreserveOriginalRoutesWithNat") + private Boolean doesPreserveOriginalRoutesWithNat; + + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to + * prevent routing complications. Enable this option to also preserve original CIDRs. The + * original source CIDRs is not advertised if this value is set to false, else it is + * advertised. default: {@code false} + * + * @param doesPreserveOriginalRoutesWithNat the value to set + * @return this builder + */ + public Builder doesPreserveOriginalRoutesWithNat( + Boolean doesPreserveOriginalRoutesWithNat) { + this.doesPreserveOriginalRoutesWithNat = doesPreserveOriginalRoutesWithNat; + this.__explicitlySet__.add("doesPreserveOriginalRoutesWithNat"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * DRG route table that is assigned to this attachment. @@ -228,6 +277,8 @@ public UpdateDrgAttachmentDetails build() { UpdateDrgAttachmentDetails model = new UpdateDrgAttachmentDetails( this.displayName, + this.drgNatPolicyId, + this.doesPreserveOriginalRoutesWithNat, this.drgRouteTableId, this.networkDetails, this.definedTags, @@ -245,6 +296,13 @@ public Builder copy(UpdateDrgAttachmentDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } + if (model.wasPropertyExplicitlySet("drgNatPolicyId")) { + this.drgNatPolicyId(model.getDrgNatPolicyId()); + } + if (model.wasPropertyExplicitlySet("doesPreserveOriginalRoutesWithNat")) { + this.doesPreserveOriginalRoutesWithNat( + model.getDoesPreserveOriginalRoutesWithNat()); + } if (model.wasPropertyExplicitlySet("drgRouteTableId")) { this.drgRouteTableId(model.getDrgRouteTableId()); } @@ -293,6 +351,44 @@ public String getDisplayName() { return displayName; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * attachment's DRG NAT policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatPolicyId") + private final String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * attachment's DRG NAT policy. + * + * @return the value + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to prevent + * routing complications. Enable this option to also preserve original CIDRs. The original + * source CIDRs is not advertised if this value is set to false, else it is advertised. default: + * {@code false} + */ + @com.fasterxml.jackson.annotation.JsonProperty("doesPreserveOriginalRoutesWithNat") + private final Boolean doesPreserveOriginalRoutesWithNat; + + /** + * By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to prevent + * routing complications. Enable this option to also preserve original CIDRs. The original + * source CIDRs is not advertised if this value is set to false, else it is advertised. default: + * {@code false} + * + * @return the value + */ + public Boolean getDoesPreserveOriginalRoutesWithNat() { + return doesPreserveOriginalRoutesWithNat; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG * route table that is assigned to this attachment. @@ -441,6 +537,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateDrgAttachmentDetails("); sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + sb.append(", doesPreserveOriginalRoutesWithNat=") + .append(String.valueOf(this.doesPreserveOriginalRoutesWithNat)); sb.append(", drgRouteTableId=").append(String.valueOf(this.drgRouteTableId)); sb.append(", networkDetails=").append(String.valueOf(this.networkDetails)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -463,6 +562,10 @@ public boolean equals(Object o) { UpdateDrgAttachmentDetails other = (UpdateDrgAttachmentDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && java.util.Objects.equals( + this.doesPreserveOriginalRoutesWithNat, + other.doesPreserveOriginalRoutesWithNat) && java.util.Objects.equals(this.drgRouteTableId, other.drgRouteTableId) && java.util.Objects.equals(this.networkDetails, other.networkDetails) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -478,6 +581,14 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); + result = + (result * PRIME) + + (this.doesPreserveOriginalRoutesWithNat == null + ? 43 + : this.doesPreserveOriginalRoutesWithNat.hashCode()); result = (result * PRIME) + (this.drgRouteTableId == null ? 43 : this.drgRouteTableId.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatPolicyDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatPolicyDetails.java new file mode 100644 index 00000000000..40bfdf2d98a --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatPolicyDetails.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 used in a request to update a DRG NAT policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDrgNatPolicyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDrgNatPolicyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"definedTags", "displayName", "freeformTags"}) + public UpdateDrgNatPolicyDetails( + java.util.Map> definedTags, + String displayName, + java.util.Map freeformTags) { + super(); + this.definedTags = definedTags; + this.displayName = displayName; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * 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; + } + /** + * 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; + } + /** + * 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 UpdateDrgNatPolicyDetails build() { + UpdateDrgNatPolicyDetails model = + new UpdateDrgNatPolicyDetails( + this.definedTags, this.displayName, this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDrgNatPolicyDetails model) { + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + 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); + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * 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("UpdateDrgNatPolicyDetails("); + sb.append("super=").append(super.toString()); + sb.append("definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + 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 UpdateDrgNatPolicyDetails)) { + return false; + } + + UpdateDrgNatPolicyDetails other = (UpdateDrgNatPolicyDetails) o; + return java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.displayName, other.displayName) + && 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.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.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/UpdateDrgNatRuleDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatRuleDetails.java new file mode 100644 index 00000000000..0240d91916e --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatRuleDetails.java @@ -0,0 +1,425 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * DRG NAT rules to update in the DRG NAT policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDrgNatRuleDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDrgNatRuleDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "drgNatRulePriority", + "originalSource", + "translatedSource", + "originalDestination", + "translatedDestination" + }) + public UpdateDrgNatRuleDetails( + String id, + Long drgNatRulePriority, + String originalSource, + String translatedSource, + String originalDestination, + String translatedDestination) { + super(); + this.id = id; + this.drgNatRulePriority = drgNatRulePriority; + this.originalSource = originalSource; + this.translatedSource = translatedSource; + this.originalDestination = originalDestination; + this.translatedDestination = translatedDestination; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The Oracle-assigned ID of the DRG NAT rule. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The Oracle-assigned ID of the DRG NAT rule. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The priority associated with each DRG NAT rule. */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatRulePriority") + private Long drgNatRulePriority; + + /** + * The priority associated with each DRG NAT rule. + * + * @param drgNatRulePriority the value to set + * @return this builder + */ + public Builder drgNatRulePriority(Long drgNatRulePriority) { + this.drgNatRulePriority = drgNatRulePriority; + this.__explicitlySet__.add("drgNatRulePriority"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalSource") + private String originalSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param originalSource the value to set + * @return this builder + */ + public Builder originalSource(String originalSource) { + this.originalSource = originalSource; + this.__explicitlySet__.add("originalSource"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedSource") + private String translatedSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param translatedSource the value to set + * @return this builder + */ + public Builder translatedSource(String translatedSource) { + this.translatedSource = translatedSource; + this.__explicitlySet__.add("translatedSource"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalDestination") + private String originalDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param originalDestination the value to set + * @return this builder + */ + public Builder originalDestination(String originalDestination) { + this.originalDestination = originalDestination; + this.__explicitlySet__.add("originalDestination"); + return this; + } + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedDestination") + private String translatedDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated + * CIDR range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @param translatedDestination the value to set + * @return this builder + */ + public Builder translatedDestination(String translatedDestination) { + this.translatedDestination = translatedDestination; + this.__explicitlySet__.add("translatedDestination"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDrgNatRuleDetails build() { + UpdateDrgNatRuleDetails model = + new UpdateDrgNatRuleDetails( + this.id, + this.drgNatRulePriority, + this.originalSource, + this.translatedSource, + this.originalDestination, + this.translatedDestination); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDrgNatRuleDetails model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("drgNatRulePriority")) { + this.drgNatRulePriority(model.getDrgNatRulePriority()); + } + if (model.wasPropertyExplicitlySet("originalSource")) { + this.originalSource(model.getOriginalSource()); + } + if (model.wasPropertyExplicitlySet("translatedSource")) { + this.translatedSource(model.getTranslatedSource()); + } + if (model.wasPropertyExplicitlySet("originalDestination")) { + this.originalDestination(model.getOriginalDestination()); + } + if (model.wasPropertyExplicitlySet("translatedDestination")) { + this.translatedDestination(model.getTranslatedDestination()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The Oracle-assigned ID of the DRG NAT rule. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The Oracle-assigned ID of the DRG NAT rule. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The priority associated with each DRG NAT rule. */ + @com.fasterxml.jackson.annotation.JsonProperty("drgNatRulePriority") + private final Long drgNatRulePriority; + + /** + * The priority associated with each DRG NAT rule. + * + * @return the value + */ + public Long getDrgNatRulePriority() { + return drgNatRulePriority; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalSource") + private final String originalSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getOriginalSource() { + return originalSource; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedSource") + private final String translatedSource; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Source NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getTranslatedSource() { + return translatedSource; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalDestination") + private final String originalDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Original CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getOriginalDestination() { + return originalDestination; + } + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("translatedDestination") + private final String translatedDestination; + + /** + * Represents the range of IP addresses to match against when routing traffic. Translated CIDR + * range for Destination NAT. + * + *

Potential values: * An IPv4 address range in CIDR notation. For example: {@code + * 192.168.1.0/24}. + * + * @return the value + */ + public String getTranslatedDestination() { + return translatedDestination; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDrgNatRuleDetails("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", drgNatRulePriority=").append(String.valueOf(this.drgNatRulePriority)); + sb.append(", originalSource=").append(String.valueOf(this.originalSource)); + sb.append(", translatedSource=").append(String.valueOf(this.translatedSource)); + sb.append(", originalDestination=").append(String.valueOf(this.originalDestination)); + sb.append(", translatedDestination=").append(String.valueOf(this.translatedDestination)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDrgNatRuleDetails)) { + return false; + } + + UpdateDrgNatRuleDetails other = (UpdateDrgNatRuleDetails) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.drgNatRulePriority, other.drgNatRulePriority) + && java.util.Objects.equals(this.originalSource, other.originalSource) + && java.util.Objects.equals(this.translatedSource, other.translatedSource) + && java.util.Objects.equals(this.originalDestination, other.originalDestination) + && java.util.Objects.equals(this.translatedDestination, other.translatedDestination) + && 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.drgNatRulePriority == null + ? 43 + : this.drgNatRulePriority.hashCode()); + result = + (result * PRIME) + + (this.originalSource == null ? 43 : this.originalSource.hashCode()); + result = + (result * PRIME) + + (this.translatedSource == null ? 43 : this.translatedSource.hashCode()); + result = + (result * PRIME) + + (this.originalDestination == null + ? 43 + : this.originalDestination.hashCode()); + result = + (result * PRIME) + + (this.translatedDestination == null + ? 43 + : this.translatedDestination.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatRulesDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatRulesDetails.java new file mode 100644 index 00000000000..c29e7200f4c --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgNatRulesDetails.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.core.model; + +/** + * Details request to update rules in a DRG NAT policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDrgNatRulesDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDrgNatRulesDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"rules"}) + public UpdateDrgNatRulesDetails(java.util.List rules) { + super(); + this.rules = rules; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The DRG NAT rules to update, and the details to be updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("rules") + private java.util.List rules; + + /** + * The DRG NAT rules to update, and the details to be updated. + * + * @param rules the value to set + * @return this builder + */ + public Builder rules(java.util.List rules) { + this.rules = rules; + this.__explicitlySet__.add("rules"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDrgNatRulesDetails build() { + UpdateDrgNatRulesDetails model = new UpdateDrgNatRulesDetails(this.rules); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDrgNatRulesDetails model) { + if (model.wasPropertyExplicitlySet("rules")) { + this.rules(model.getRules()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The DRG NAT rules to update, and the details to be updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("rules") + private final java.util.List rules; + + /** + * The DRG NAT rules to update, and the details to be updated. + * + * @return the value + */ + public java.util.List getRules() { + return rules; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDrgNatRulesDetails("); + sb.append("super=").append(super.toString()); + sb.append("rules=").append(String.valueOf(this.rules)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDrgNatRulesDetails)) { + return false; + } + + UpdateDrgNatRulesDetails other = (UpdateDrgNatRulesDetails) o; + return java.util.Objects.equals(this.rules, other.rules) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.rules == null ? 43 : this.rules.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/AddDrgNatRulesRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/AddDrgNatRulesRequest.java new file mode 100644 index 00000000000..d69fa442fff --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/AddDrgNatRulesRequest.java @@ -0,0 +1,368 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use AddDrgNatRulesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class AddDrgNatRulesRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.core.model.AddDrgNatRulesDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + /** Request with one or more DRG NAT rules to be inserted into the DRG NAT policy. */ + private com.oracle.bmc.core.model.AddDrgNatRulesDetails addDrgNatRulesDetails; + + /** Request with one or more DRG NAT rules to be inserted into the DRG NAT policy. */ + public com.oracle.bmc.core.model.AddDrgNatRulesDetails getAddDrgNatRulesDetails() { + return addDrgNatRulesDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.core.model.AddDrgNatRulesDetails getBody$() { + return addDrgNatRulesDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddDrgNatRulesRequest, com.oracle.bmc.core.model.AddDrgNatRulesDetails> { + 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 + * DRG NAT policy. + */ + private String drgNatPolicyId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder instance + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + return this; + } + + /** Request with one or more DRG NAT rules to be inserted into the DRG NAT policy. */ + private com.oracle.bmc.core.model.AddDrgNatRulesDetails addDrgNatRulesDetails = null; + + /** + * Request with one or more DRG NAT rules to be inserted into the DRG NAT policy. + * + * @param addDrgNatRulesDetails the value to set + * @return this builder instance + */ + public Builder addDrgNatRulesDetails( + com.oracle.bmc.core.model.AddDrgNatRulesDetails addDrgNatRulesDetails) { + this.addDrgNatRulesDetails = addDrgNatRulesDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(AddDrgNatRulesRequest o) { + drgNatPolicyId(o.getDrgNatPolicyId()); + addDrgNatRulesDetails(o.getAddDrgNatRulesDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddDrgNatRulesRequest 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 AddDrgNatRulesRequest + */ + public AddDrgNatRulesRequest build() { + AddDrgNatRulesRequest 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.core.model.AddDrgNatRulesDetails body) { + addDrgNatRulesDetails(body); + return this; + } + + /** + * Build the instance of AddDrgNatRulesRequest 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 AddDrgNatRulesRequest + */ + public AddDrgNatRulesRequest buildWithoutInvocationCallback() { + AddDrgNatRulesRequest request = new AddDrgNatRulesRequest(); + request.drgNatPolicyId = drgNatPolicyId; + request.addDrgNatRulesDetails = addDrgNatRulesDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new AddDrgNatRulesRequest(drgNatPolicyId, addDrgNatRulesDetails, 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() + .drgNatPolicyId(drgNatPolicyId) + .addDrgNatRulesDetails(addDrgNatRulesDetails) + .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(",drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + sb.append(",addDrgNatRulesDetails=").append(String.valueOf(this.addDrgNatRulesDetails)); + 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 AddDrgNatRulesRequest)) { + return false; + } + + AddDrgNatRulesRequest other = (AddDrgNatRulesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && java.util.Objects.equals(this.addDrgNatRulesDetails, other.addDrgNatRulesDetails) + && 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.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); + result = + (result * PRIME) + + (this.addDrgNatRulesDetails == null + ? 43 + : this.addDrgNatRulesDetails.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-core/src/main/java/com/oracle/bmc/core/requests/ChangeDrgNatPolicyCompartmentRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ChangeDrgNatPolicyCompartmentRequest.java new file mode 100644 index 00000000000..099fecc916f --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ChangeDrgNatPolicyCompartmentRequest.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use + * ChangeDrgNatPolicyCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ChangeDrgNatPolicyCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.core.model.ChangeDrgNatPolicyCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + /** Request to change the compartment of a given DrgNatPolicy. */ + private com.oracle.bmc.core.model.ChangeDrgNatPolicyCompartmentDetails + changeDrgNatPolicyCompartmentDetails; + + /** Request to change the compartment of a given DrgNatPolicy. */ + public com.oracle.bmc.core.model.ChangeDrgNatPolicyCompartmentDetails + getChangeDrgNatPolicyCompartmentDetails() { + return changeDrgNatPolicyCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.core.model.ChangeDrgNatPolicyCompartmentDetails getBody$() { + return changeDrgNatPolicyCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDrgNatPolicyCompartmentRequest, + com.oracle.bmc.core.model.ChangeDrgNatPolicyCompartmentDetails> { + 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 + * DRG NAT policy. + */ + private String drgNatPolicyId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder instance + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + return this; + } + + /** Request to change the compartment of a given DrgNatPolicy. */ + private com.oracle.bmc.core.model.ChangeDrgNatPolicyCompartmentDetails + changeDrgNatPolicyCompartmentDetails = null; + + /** + * Request to change the compartment of a given DrgNatPolicy. + * + * @param changeDrgNatPolicyCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDrgNatPolicyCompartmentDetails( + com.oracle.bmc.core.model.ChangeDrgNatPolicyCompartmentDetails + changeDrgNatPolicyCompartmentDetails) { + this.changeDrgNatPolicyCompartmentDetails = changeDrgNatPolicyCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeDrgNatPolicyCompartmentRequest o) { + drgNatPolicyId(o.getDrgNatPolicyId()); + changeDrgNatPolicyCompartmentDetails(o.getChangeDrgNatPolicyCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDrgNatPolicyCompartmentRequest 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 ChangeDrgNatPolicyCompartmentRequest + */ + public ChangeDrgNatPolicyCompartmentRequest build() { + ChangeDrgNatPolicyCompartmentRequest 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.core.model.ChangeDrgNatPolicyCompartmentDetails body) { + changeDrgNatPolicyCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDrgNatPolicyCompartmentRequest 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 ChangeDrgNatPolicyCompartmentRequest + */ + public ChangeDrgNatPolicyCompartmentRequest buildWithoutInvocationCallback() { + ChangeDrgNatPolicyCompartmentRequest request = + new ChangeDrgNatPolicyCompartmentRequest(); + request.drgNatPolicyId = drgNatPolicyId; + request.changeDrgNatPolicyCompartmentDetails = changeDrgNatPolicyCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeDrgNatPolicyCompartmentRequest(drgNatPolicyId, + // changeDrgNatPolicyCompartmentDetails, 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() + .drgNatPolicyId(drgNatPolicyId) + .changeDrgNatPolicyCompartmentDetails(changeDrgNatPolicyCompartmentDetails) + .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(",drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + sb.append(",changeDrgNatPolicyCompartmentDetails=") + .append(String.valueOf(this.changeDrgNatPolicyCompartmentDetails)); + 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 ChangeDrgNatPolicyCompartmentRequest)) { + return false; + } + + ChangeDrgNatPolicyCompartmentRequest other = (ChangeDrgNatPolicyCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && java.util.Objects.equals( + this.changeDrgNatPolicyCompartmentDetails, + other.changeDrgNatPolicyCompartmentDetails) + && 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.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); + result = + (result * PRIME) + + (this.changeDrgNatPolicyCompartmentDetails == null + ? 43 + : this.changeDrgNatPolicyCompartmentDetails.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-core/src/main/java/com/oracle/bmc/core/requests/CreateDrgNatPolicyRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/CreateDrgNatPolicyRequest.java new file mode 100644 index 00000000000..c4aaa9850ce --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/CreateDrgNatPolicyRequest.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use CreateDrgNatPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateDrgNatPolicyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.core.model.CreateDrgNatPolicyDetails> { + + /** Details for creating a DRG NAT policy. */ + private com.oracle.bmc.core.model.CreateDrgNatPolicyDetails createDrgNatPolicyDetails; + + /** Details for creating a DRG NAT policy. */ + public com.oracle.bmc.core.model.CreateDrgNatPolicyDetails getCreateDrgNatPolicyDetails() { + return createDrgNatPolicyDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.core.model.CreateDrgNatPolicyDetails getBody$() { + return createDrgNatPolicyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDrgNatPolicyRequest, + com.oracle.bmc.core.model.CreateDrgNatPolicyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for creating a DRG NAT policy. */ + private com.oracle.bmc.core.model.CreateDrgNatPolicyDetails createDrgNatPolicyDetails = + null; + + /** + * Details for creating a DRG NAT policy. + * + * @param createDrgNatPolicyDetails the value to set + * @return this builder instance + */ + public Builder createDrgNatPolicyDetails( + com.oracle.bmc.core.model.CreateDrgNatPolicyDetails createDrgNatPolicyDetails) { + this.createDrgNatPolicyDetails = createDrgNatPolicyDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateDrgNatPolicyRequest o) { + createDrgNatPolicyDetails(o.getCreateDrgNatPolicyDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDrgNatPolicyRequest 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 CreateDrgNatPolicyRequest + */ + public CreateDrgNatPolicyRequest build() { + CreateDrgNatPolicyRequest 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.core.model.CreateDrgNatPolicyDetails body) { + createDrgNatPolicyDetails(body); + return this; + } + + /** + * Build the instance of CreateDrgNatPolicyRequest 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 CreateDrgNatPolicyRequest + */ + public CreateDrgNatPolicyRequest buildWithoutInvocationCallback() { + CreateDrgNatPolicyRequest request = new CreateDrgNatPolicyRequest(); + request.createDrgNatPolicyDetails = createDrgNatPolicyDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDrgNatPolicyRequest(createDrgNatPolicyDetails, 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() + .createDrgNatPolicyDetails(createDrgNatPolicyDetails) + .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(",createDrgNatPolicyDetails=") + .append(String.valueOf(this.createDrgNatPolicyDetails)); + 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 CreateDrgNatPolicyRequest)) { + return false; + } + + CreateDrgNatPolicyRequest other = (CreateDrgNatPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDrgNatPolicyDetails, other.createDrgNatPolicyDetails) + && 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.createDrgNatPolicyDetails == null + ? 43 + : this.createDrgNatPolicyDetails.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-core/src/main/java/com/oracle/bmc/core/requests/DeleteDrgNatPolicyRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/DeleteDrgNatPolicyRequest.java new file mode 100644 index 00000000000..e6c336bca1d --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/DeleteDrgNatPolicyRequest.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.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use DeleteDrgNatPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteDrgNatPolicyRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDrgNatPolicyRequest, 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 + * DRG NAT policy. + */ + private String drgNatPolicyId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder instance + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteDrgNatPolicyRequest o) { + drgNatPolicyId(o.getDrgNatPolicyId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDrgNatPolicyRequest 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 DeleteDrgNatPolicyRequest + */ + public DeleteDrgNatPolicyRequest build() { + DeleteDrgNatPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDrgNatPolicyRequest 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 DeleteDrgNatPolicyRequest + */ + public DeleteDrgNatPolicyRequest buildWithoutInvocationCallback() { + DeleteDrgNatPolicyRequest request = new DeleteDrgNatPolicyRequest(); + request.drgNatPolicyId = drgNatPolicyId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteDrgNatPolicyRequest(drgNatPolicyId, 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() + .drgNatPolicyId(drgNatPolicyId) + .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(",drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + 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 DeleteDrgNatPolicyRequest)) { + return false; + } + + DeleteDrgNatPolicyRequest other = (DeleteDrgNatPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && 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.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.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-core/src/main/java/com/oracle/bmc/core/requests/GetDrgNatPolicyRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/GetDrgNatPolicyRequest.java new file mode 100644 index 00000000000..3cac2f199b8 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/GetDrgNatPolicyRequest.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.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use GetDrgNatPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetDrgNatPolicyRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDrgNatPolicyRequest, 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 + * DRG NAT policy. + */ + private String drgNatPolicyId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder instance + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetDrgNatPolicyRequest o) { + drgNatPolicyId(o.getDrgNatPolicyId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDrgNatPolicyRequest 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 GetDrgNatPolicyRequest + */ + public GetDrgNatPolicyRequest build() { + GetDrgNatPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDrgNatPolicyRequest 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 GetDrgNatPolicyRequest + */ + public GetDrgNatPolicyRequest buildWithoutInvocationCallback() { + GetDrgNatPolicyRequest request = new GetDrgNatPolicyRequest(); + request.drgNatPolicyId = drgNatPolicyId; + request.opcRequestId = opcRequestId; + return request; + // new GetDrgNatPolicyRequest(drgNatPolicyId, 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().drgNatPolicyId(drgNatPolicyId).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(",drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + 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 GetDrgNatPolicyRequest)) { + return false; + } + + GetDrgNatPolicyRequest other = (GetDrgNatPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgAttachmentsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgAttachmentsRequest.java index 8f8c38bdc02..80372bbd38b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgAttachmentsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgAttachmentsRequest.java @@ -82,6 +82,19 @@ public Integer getLimit() { public String getPage() { return page; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DrgNatPolicy. + */ + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DrgNatPolicy. + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the @@ -397,6 +410,24 @@ public Builder page(String page) { return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DrgNatPolicy. + */ + private String drgNatPolicyId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DrgNatPolicy. + * + * @param drgNatPolicyId the value to set + * @return this builder instance + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to @@ -567,6 +598,7 @@ public Builder copy(ListDrgAttachmentsRequest o) { drgId(o.getDrgId()); limit(o.getLimit()); page(o.getPage()); + drgNatPolicyId(o.getDrgNatPolicyId()); networkId(o.getNetworkId()); attachmentType(o.getAttachmentType()); drgRouteTableId(o.getDrgRouteTableId()); @@ -613,6 +645,7 @@ public ListDrgAttachmentsRequest buildWithoutInvocationCallback() { request.drgId = drgId; request.limit = limit; request.page = page; + request.drgNatPolicyId = drgNatPolicyId; request.networkId = networkId; request.attachmentType = attachmentType; request.drgRouteTableId = drgRouteTableId; @@ -621,8 +654,9 @@ public ListDrgAttachmentsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.lifecycleState = lifecycleState; return request; - // new ListDrgAttachmentsRequest(compartmentId, vcnId, drgId, limit, page, networkId, - // attachmentType, drgRouteTableId, displayName, sortBy, sortOrder, lifecycleState); + // new ListDrgAttachmentsRequest(compartmentId, vcnId, drgId, limit, page, + // drgNatPolicyId, networkId, attachmentType, drgRouteTableId, displayName, sortBy, + // sortOrder, lifecycleState); } } @@ -638,6 +672,7 @@ public Builder toBuilder() { .drgId(drgId) .limit(limit) .page(page) + .drgNatPolicyId(drgNatPolicyId) .networkId(networkId) .attachmentType(attachmentType) .drgRouteTableId(drgRouteTableId) @@ -666,6 +701,7 @@ public String toString() { sb.append(",drgId=").append(String.valueOf(this.drgId)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); sb.append(",networkId=").append(String.valueOf(this.networkId)); sb.append(",attachmentType=").append(String.valueOf(this.attachmentType)); sb.append(",drgRouteTableId=").append(String.valueOf(this.drgRouteTableId)); @@ -693,6 +729,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.drgId, other.drgId) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) && java.util.Objects.equals(this.networkId, other.networkId) && java.util.Objects.equals(this.attachmentType, other.attachmentType) && java.util.Objects.equals(this.drgRouteTableId, other.drgRouteTableId) @@ -713,6 +750,9 @@ public int hashCode() { result = (result * PRIME) + (this.drgId == null ? 43 : this.drgId.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.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); result = (result * PRIME) + (this.networkId == null ? 43 : this.networkId.hashCode()); result = (result * PRIME) diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgNatPoliciesRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgNatPoliciesRequest.java new file mode 100644 index 00000000000..34ff15bd8c1 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgNatPoliciesRequest.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.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use ListDrgNatPoliciesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListDrgNatPoliciesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

Example: {@code 50} + */ + 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). + * + *

Example: {@code 50} + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + * + *

*Note:** In general, some "List" operations (for example, {@code ListInstances}) let you + * optionally filter by availability domain if the scope of the resource type is within a single + * availability domain. If you call one of these "List" operations without specifying an + * availability domain, the resources are grouped by availability domain, then sorted. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + * + *

*Note:** In general, some "List" operations (for example, {@code ListInstances}) let you + * optionally filter by availability domain if the scope of the resource type is within a single + * availability domain. If you call one of these "List" operations without specifying an + * availability domain, the resources are grouped by availability domain, then sorted. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + * + *

*Note:** In general, some "List" operations (for example, {@code ListInstances}) let you + * optionally filter by availability domain if the scope of the resource type is within a single + * availability domain. If you call one of these "List" operations without specifying an + * availability domain, the resources are grouped by availability domain, then sorted. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The + * DISPLAYNAME sort order is case sensitive. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The + * DISPLAYNAME sort order is case sensitive. + */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The + * DISPLAYNAME sort order is case sensitive. + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDrgNatPoliciesRequest, 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. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * 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). + * + *

Example: {@code 50} + */ + 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). + * + *

Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.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 field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The + * DISPLAYNAME sort order is case sensitive. + * + *

*Note:** In general, some "List" operations (for example, {@code ListInstances}) let + * you optionally filter by availability domain if the scope of the resource type is within + * a single availability domain. If you call one of these "List" operations without + * specifying an availability domain, the resources are grouped by availability domain, then + * sorted. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The + * DISPLAYNAME sort order is case sensitive. + * + *

*Note:** In general, some "List" operations (for example, {@code ListInstances}) let + * you optionally filter by availability domain if the scope of the resource type is within + * a single availability domain. If you call one of these "List" operations without + * specifying an availability domain, the resources are grouped by availability domain, then + * sorted. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The + * DISPLAYNAME sort order is case sensitive. + */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The + * DISPLAYNAME sort order is case sensitive. + * + * @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. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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; + } + + /** + * 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(ListDrgNatPoliciesRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDrgNatPoliciesRequest 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 ListDrgNatPoliciesRequest + */ + public ListDrgNatPoliciesRequest build() { + ListDrgNatPoliciesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDrgNatPoliciesRequest 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 ListDrgNatPoliciesRequest + */ + public ListDrgNatPoliciesRequest buildWithoutInvocationCallback() { + ListDrgNatPoliciesRequest request = new ListDrgNatPoliciesRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.displayName = displayName; + return request; + // new ListDrgNatPoliciesRequest(compartmentId, limit, page, sortBy, sortOrder, + // opcRequestId, displayName); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .displayName(displayName); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + 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(",displayName=").append(String.valueOf(this.displayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDrgNatPoliciesRequest)) { + return false; + } + + ListDrgNatPoliciesRequest other = (ListDrgNatPoliciesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.displayName, other.displayName); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgNatRulesRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgNatRulesRequest.java new file mode 100644 index 00000000000..481082ff502 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListDrgNatRulesRequest.java @@ -0,0 +1,364 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use ListDrgNatRulesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListDrgNatRulesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + /** + * 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). + * + *

Example: {@code 50} + */ + 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). + * + *

Example: {@code 50} + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** The field to sort by. */ + private SortBy sortBy; + + /** The field to sort by. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Priority("PRIORITY"), + ; + + 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. */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDrgNatRulesRequest, 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 + * DRG NAT policy. + */ + private String drgNatPolicyId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder instance + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + 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). + * + *

Example: {@code 50} + */ + 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). + * + *

Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.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 field to sort by. */ + private SortBy sortBy = null; + + /** + * The field to sort by. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListDrgNatRulesRequest o) { + drgNatPolicyId(o.getDrgNatPolicyId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDrgNatRulesRequest 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 ListDrgNatRulesRequest + */ + public ListDrgNatRulesRequest build() { + ListDrgNatRulesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDrgNatRulesRequest 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 ListDrgNatRulesRequest + */ + public ListDrgNatRulesRequest buildWithoutInvocationCallback() { + ListDrgNatRulesRequest request = new ListDrgNatRulesRequest(); + request.drgNatPolicyId = drgNatPolicyId; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListDrgNatRulesRequest(drgNatPolicyId, limit, page, 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() + .drgNatPolicyId(drgNatPolicyId) + .limit(limit) + .page(page) + .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(",drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + 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(",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 ListDrgNatRulesRequest)) { + return false; + } + + ListDrgNatRulesRequest other = (ListDrgNatRulesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && 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.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/RemoveDrgNatPolicyRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/RemoveDrgNatPolicyRequest.java new file mode 100644 index 00000000000..08bede48ad2 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/RemoveDrgNatPolicyRequest.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use RemoveDrgNatPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RemoveDrgNatPolicyRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * attachment. + */ + private String drgAttachmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * attachment. + */ + public String getDrgAttachmentId() { + return drgAttachmentId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveDrgNatPolicyRequest, 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 + * DRG attachment. + */ + private String drgAttachmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG attachment. + * + * @param drgAttachmentId the value to set + * @return this builder instance + */ + public Builder drgAttachmentId(String drgAttachmentId) { + this.drgAttachmentId = drgAttachmentId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RemoveDrgNatPolicyRequest o) { + drgAttachmentId(o.getDrgAttachmentId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveDrgNatPolicyRequest 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 RemoveDrgNatPolicyRequest + */ + public RemoveDrgNatPolicyRequest build() { + RemoveDrgNatPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RemoveDrgNatPolicyRequest 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 RemoveDrgNatPolicyRequest + */ + public RemoveDrgNatPolicyRequest buildWithoutInvocationCallback() { + RemoveDrgNatPolicyRequest request = new RemoveDrgNatPolicyRequest(); + request.drgAttachmentId = drgAttachmentId; + request.ifMatch = ifMatch; + return request; + // new RemoveDrgNatPolicyRequest(drgAttachmentId, 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().drgAttachmentId(drgAttachmentId).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(",drgAttachmentId=").append(String.valueOf(this.drgAttachmentId)); + 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 RemoveDrgNatPolicyRequest)) { + return false; + } + + RemoveDrgNatPolicyRequest other = (RemoveDrgNatPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.drgAttachmentId, other.drgAttachmentId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.drgAttachmentId == null ? 43 : this.drgAttachmentId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/RemoveDrgNatRulesRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/RemoveDrgNatRulesRequest.java new file mode 100644 index 00000000000..cadcc118aa6 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/RemoveDrgNatRulesRequest.java @@ -0,0 +1,370 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use RemoveDrgNatRulesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RemoveDrgNatRulesRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.core.model.RemoveDrgNatRulesDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + /** Request with DRG NAT rules to remove from the DRG NAT policy. */ + private com.oracle.bmc.core.model.RemoveDrgNatRulesDetails removeDrgNatRulesDetails; + + /** Request with DRG NAT rules to remove from the DRG NAT policy. */ + public com.oracle.bmc.core.model.RemoveDrgNatRulesDetails getRemoveDrgNatRulesDetails() { + return removeDrgNatRulesDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.core.model.RemoveDrgNatRulesDetails getBody$() { + return removeDrgNatRulesDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveDrgNatRulesRequest, com.oracle.bmc.core.model.RemoveDrgNatRulesDetails> { + 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 + * DRG NAT policy. + */ + private String drgNatPolicyId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder instance + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + return this; + } + + /** Request with DRG NAT rules to remove from the DRG NAT policy. */ + private com.oracle.bmc.core.model.RemoveDrgNatRulesDetails removeDrgNatRulesDetails = null; + + /** + * Request with DRG NAT rules to remove from the DRG NAT policy. + * + * @param removeDrgNatRulesDetails the value to set + * @return this builder instance + */ + public Builder removeDrgNatRulesDetails( + com.oracle.bmc.core.model.RemoveDrgNatRulesDetails removeDrgNatRulesDetails) { + this.removeDrgNatRulesDetails = removeDrgNatRulesDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RemoveDrgNatRulesRequest o) { + drgNatPolicyId(o.getDrgNatPolicyId()); + removeDrgNatRulesDetails(o.getRemoveDrgNatRulesDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveDrgNatRulesRequest 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 RemoveDrgNatRulesRequest + */ + public RemoveDrgNatRulesRequest build() { + RemoveDrgNatRulesRequest 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.core.model.RemoveDrgNatRulesDetails body) { + removeDrgNatRulesDetails(body); + return this; + } + + /** + * Build the instance of RemoveDrgNatRulesRequest 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 RemoveDrgNatRulesRequest + */ + public RemoveDrgNatRulesRequest buildWithoutInvocationCallback() { + RemoveDrgNatRulesRequest request = new RemoveDrgNatRulesRequest(); + request.drgNatPolicyId = drgNatPolicyId; + request.removeDrgNatRulesDetails = removeDrgNatRulesDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new RemoveDrgNatRulesRequest(drgNatPolicyId, removeDrgNatRulesDetails, 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() + .drgNatPolicyId(drgNatPolicyId) + .removeDrgNatRulesDetails(removeDrgNatRulesDetails) + .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(",drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + sb.append(",removeDrgNatRulesDetails=") + .append(String.valueOf(this.removeDrgNatRulesDetails)); + 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 RemoveDrgNatRulesRequest)) { + return false; + } + + RemoveDrgNatRulesRequest other = (RemoveDrgNatRulesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && java.util.Objects.equals( + this.removeDrgNatRulesDetails, other.removeDrgNatRulesDetails) + && 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.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); + result = + (result * PRIME) + + (this.removeDrgNatRulesDetails == null + ? 43 + : this.removeDrgNatRulesDetails.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-core/src/main/java/com/oracle/bmc/core/requests/UpdateDrgNatPolicyRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateDrgNatPolicyRequest.java new file mode 100644 index 00000000000..d7a2057b752 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateDrgNatPolicyRequest.java @@ -0,0 +1,321 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use UpdateDrgNatPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateDrgNatPolicyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.core.model.UpdateDrgNatPolicyDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + /** Details object for updating a DRG NAT policy */ + private com.oracle.bmc.core.model.UpdateDrgNatPolicyDetails updateDrgNatPolicyDetails; + + /** Details object for updating a DRG NAT policy */ + public com.oracle.bmc.core.model.UpdateDrgNatPolicyDetails getUpdateDrgNatPolicyDetails() { + return updateDrgNatPolicyDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.core.model.UpdateDrgNatPolicyDetails getBody$() { + return updateDrgNatPolicyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDrgNatPolicyRequest, + com.oracle.bmc.core.model.UpdateDrgNatPolicyDetails> { + 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 + * DRG NAT policy. + */ + private String drgNatPolicyId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder instance + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + return this; + } + + /** Details object for updating a DRG NAT policy */ + private com.oracle.bmc.core.model.UpdateDrgNatPolicyDetails updateDrgNatPolicyDetails = + null; + + /** + * Details object for updating a DRG NAT policy + * + * @param updateDrgNatPolicyDetails the value to set + * @return this builder instance + */ + public Builder updateDrgNatPolicyDetails( + com.oracle.bmc.core.model.UpdateDrgNatPolicyDetails updateDrgNatPolicyDetails) { + this.updateDrgNatPolicyDetails = updateDrgNatPolicyDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateDrgNatPolicyRequest o) { + drgNatPolicyId(o.getDrgNatPolicyId()); + updateDrgNatPolicyDetails(o.getUpdateDrgNatPolicyDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDrgNatPolicyRequest 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 UpdateDrgNatPolicyRequest + */ + public UpdateDrgNatPolicyRequest build() { + UpdateDrgNatPolicyRequest 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.core.model.UpdateDrgNatPolicyDetails body) { + updateDrgNatPolicyDetails(body); + return this; + } + + /** + * Build the instance of UpdateDrgNatPolicyRequest 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 UpdateDrgNatPolicyRequest + */ + public UpdateDrgNatPolicyRequest buildWithoutInvocationCallback() { + UpdateDrgNatPolicyRequest request = new UpdateDrgNatPolicyRequest(); + request.drgNatPolicyId = drgNatPolicyId; + request.updateDrgNatPolicyDetails = updateDrgNatPolicyDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateDrgNatPolicyRequest(drgNatPolicyId, updateDrgNatPolicyDetails, 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() + .drgNatPolicyId(drgNatPolicyId) + .updateDrgNatPolicyDetails(updateDrgNatPolicyDetails) + .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(",drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + sb.append(",updateDrgNatPolicyDetails=") + .append(String.valueOf(this.updateDrgNatPolicyDetails)); + 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 UpdateDrgNatPolicyRequest)) { + return false; + } + + UpdateDrgNatPolicyRequest other = (UpdateDrgNatPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && java.util.Objects.equals( + this.updateDrgNatPolicyDetails, other.updateDrgNatPolicyDetails) + && 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.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); + result = + (result * PRIME) + + (this.updateDrgNatPolicyDetails == null + ? 43 + : this.updateDrgNatPolicyDetails.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-core/src/main/java/com/oracle/bmc/core/requests/UpdateDrgNatRulesRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateDrgNatRulesRequest.java new file mode 100644 index 00000000000..ce31a48c317 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateDrgNatRulesRequest.java @@ -0,0 +1,370 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use UpdateDrgNatRulesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateDrgNatRulesRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.core.model.UpdateDrgNatRulesDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + private String drgNatPolicyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG + * NAT policy. + */ + public String getDrgNatPolicyId() { + return drgNatPolicyId; + } + /** Updates one or more DRG NAT rules in the specified DRG NAT policy. */ + private com.oracle.bmc.core.model.UpdateDrgNatRulesDetails updateDrgNatRulesDetails; + + /** Updates one or more DRG NAT rules in the specified DRG NAT policy. */ + public com.oracle.bmc.core.model.UpdateDrgNatRulesDetails getUpdateDrgNatRulesDetails() { + return updateDrgNatRulesDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.core.model.UpdateDrgNatRulesDetails getBody$() { + return updateDrgNatRulesDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDrgNatRulesRequest, com.oracle.bmc.core.model.UpdateDrgNatRulesDetails> { + 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 + * DRG NAT policy. + */ + private String drgNatPolicyId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DRG NAT policy. + * + * @param drgNatPolicyId the value to set + * @return this builder instance + */ + public Builder drgNatPolicyId(String drgNatPolicyId) { + this.drgNatPolicyId = drgNatPolicyId; + return this; + } + + /** Updates one or more DRG NAT rules in the specified DRG NAT policy. */ + private com.oracle.bmc.core.model.UpdateDrgNatRulesDetails updateDrgNatRulesDetails = null; + + /** + * Updates one or more DRG NAT rules in the specified DRG NAT policy. + * + * @param updateDrgNatRulesDetails the value to set + * @return this builder instance + */ + public Builder updateDrgNatRulesDetails( + com.oracle.bmc.core.model.UpdateDrgNatRulesDetails updateDrgNatRulesDetails) { + this.updateDrgNatRulesDetails = updateDrgNatRulesDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateDrgNatRulesRequest o) { + drgNatPolicyId(o.getDrgNatPolicyId()); + updateDrgNatRulesDetails(o.getUpdateDrgNatRulesDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDrgNatRulesRequest 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 UpdateDrgNatRulesRequest + */ + public UpdateDrgNatRulesRequest build() { + UpdateDrgNatRulesRequest 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.core.model.UpdateDrgNatRulesDetails body) { + updateDrgNatRulesDetails(body); + return this; + } + + /** + * Build the instance of UpdateDrgNatRulesRequest 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 UpdateDrgNatRulesRequest + */ + public UpdateDrgNatRulesRequest buildWithoutInvocationCallback() { + UpdateDrgNatRulesRequest request = new UpdateDrgNatRulesRequest(); + request.drgNatPolicyId = drgNatPolicyId; + request.updateDrgNatRulesDetails = updateDrgNatRulesDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new UpdateDrgNatRulesRequest(drgNatPolicyId, updateDrgNatRulesDetails, 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() + .drgNatPolicyId(drgNatPolicyId) + .updateDrgNatRulesDetails(updateDrgNatRulesDetails) + .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(",drgNatPolicyId=").append(String.valueOf(this.drgNatPolicyId)); + sb.append(",updateDrgNatRulesDetails=") + .append(String.valueOf(this.updateDrgNatRulesDetails)); + 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 UpdateDrgNatRulesRequest)) { + return false; + } + + UpdateDrgNatRulesRequest other = (UpdateDrgNatRulesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.drgNatPolicyId, other.drgNatPolicyId) + && java.util.Objects.equals( + this.updateDrgNatRulesDetails, other.updateDrgNatRulesDetails) + && 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.drgNatPolicyId == null ? 43 : this.drgNatPolicyId.hashCode()); + result = + (result * PRIME) + + (this.updateDrgNatRulesDetails == null + ? 43 + : this.updateDrgNatRulesDetails.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-core/src/main/java/com/oracle/bmc/core/responses/AddDrgNatRulesResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/AddDrgNatRulesResponse.java new file mode 100644 index 00000000000..2ae02ee9a02 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/AddDrgNatRulesResponse.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.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class AddDrgNatRulesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 work + * request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 AddDrgNatRulesResponse( + 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 + * work request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 + * work request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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(AddDrgNatRulesResponse 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 AddDrgNatRulesResponse build() { + return new AddDrgNatRulesResponse( + __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 AddDrgNatRulesResponse)) { + return false; + } + + AddDrgNatRulesResponse other = (AddDrgNatRulesResponse) 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-core/src/main/java/com/oracle/bmc/core/responses/ChangeDrgNatPolicyCompartmentResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/ChangeDrgNatPolicyCompartmentResponse.java new file mode 100644 index 00000000000..313a11ff3de --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/ChangeDrgNatPolicyCompartmentResponse.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.core.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ChangeDrgNatPolicyCompartmentResponse 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 ChangeDrgNatPolicyCompartmentResponse( + 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< + ChangeDrgNatPolicyCompartmentResponse> { + 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(ChangeDrgNatPolicyCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeDrgNatPolicyCompartmentResponse build() { + return new ChangeDrgNatPolicyCompartmentResponse( + __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 ChangeDrgNatPolicyCompartmentResponse)) { + return false; + } + + ChangeDrgNatPolicyCompartmentResponse other = (ChangeDrgNatPolicyCompartmentResponse) 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-core/src/main/java/com/oracle/bmc/core/responses/CreateDrgNatPolicyResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/CreateDrgNatPolicyResponse.java new file mode 100644 index 00000000000..4efb180b29b --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/CreateDrgNatPolicyResponse.java @@ -0,0 +1,282 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateDrgNatPolicyResponse 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; + } + + /** Location of the resource. */ + private String location; + + /** + * Location of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Location of the resource. */ + private String contentLocation; + + /** + * Location of the resource. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** The returned {@code DrgNatPolicy} instance. */ + private com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy; + + /** + * The returned {@code DrgNatPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.core.model.DrgNatPolicy getDrgNatPolicy() { + return drgNatPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "location", + "contentLocation", + "drgNatPolicy" + }) + private CreateDrgNatPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String location, + String contentLocation, + com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.location = location; + this.contentLocation = contentLocation; + this.drgNatPolicy = drgNatPolicy; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** Location of the resource. */ + private String location; + + /** + * Location of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Location of the resource. */ + private String contentLocation; + + /** + * Location of the resource. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** The returned {@code DrgNatPolicy} instance. */ + private com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy; + + /** + * The returned {@code DrgNatPolicy} instance. + * + * @param drgNatPolicy the value to set + * @return this builder + */ + public Builder drgNatPolicy(com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy) { + this.drgNatPolicy = drgNatPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateDrgNatPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + drgNatPolicy(o.getDrgNatPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateDrgNatPolicyResponse build() { + return new CreateDrgNatPolicyResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + location, + contentLocation, + drgNatPolicy); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",drgNatPolicy=").append(String.valueOf(drgNatPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDrgNatPolicyResponse)) { + return false; + } + + CreateDrgNatPolicyResponse other = (CreateDrgNatPolicyResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.drgNatPolicy, other.drgNatPolicy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.drgNatPolicy == null ? 43 : this.drgNatPolicy.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/DeleteDrgNatPolicyResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/DeleteDrgNatPolicyResponse.java new file mode 100644 index 00000000000..3834fa38d9e --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/DeleteDrgNatPolicyResponse.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.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteDrgNatPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 work + * request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 DeleteDrgNatPolicyResponse( + 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 + * work request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 + * work request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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(DeleteDrgNatPolicyResponse 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 DeleteDrgNatPolicyResponse build() { + return new DeleteDrgNatPolicyResponse( + __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 DeleteDrgNatPolicyResponse)) { + return false; + } + + DeleteDrgNatPolicyResponse other = (DeleteDrgNatPolicyResponse) 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-core/src/main/java/com/oracle/bmc/core/responses/GetDrgNatPolicyResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/GetDrgNatPolicyResponse.java new file mode 100644 index 00000000000..c2a2321d57a --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/GetDrgNatPolicyResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetDrgNatPolicyResponse 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 DrgNatPolicy} instance. */ + private com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy; + + /** + * The returned {@code DrgNatPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.core.model.DrgNatPolicy getDrgNatPolicy() { + return drgNatPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "drgNatPolicy" + }) + private GetDrgNatPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.drgNatPolicy = drgNatPolicy; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code DrgNatPolicy} instance. */ + private com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy; + + /** + * The returned {@code DrgNatPolicy} instance. + * + * @param drgNatPolicy the value to set + * @return this builder + */ + public Builder drgNatPolicy(com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy) { + this.drgNatPolicy = drgNatPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDrgNatPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + drgNatPolicy(o.getDrgNatPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDrgNatPolicyResponse build() { + return new GetDrgNatPolicyResponse( + __httpStatusCode__, headers, etag, opcRequestId, drgNatPolicy); + } + } + + /** + * 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(",drgNatPolicy=").append(String.valueOf(drgNatPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDrgNatPolicyResponse)) { + return false; + } + + GetDrgNatPolicyResponse other = (GetDrgNatPolicyResponse) 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.drgNatPolicy, other.drgNatPolicy); + } + + @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.drgNatPolicy == null ? 43 : this.drgNatPolicy.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/ListDrgNatPoliciesResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/ListDrgNatPoliciesResponse.java new file mode 100644 index 00000000000..90c480ebfa0 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/ListDrgNatPoliciesResponse.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListDrgNatPoliciesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** A list of {@code com.oracle.bmc.core.model.DrgNatPolicy} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.core.model.DrgNatPolicy} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "items" + }) + private ListDrgNatPoliciesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.items = items; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** A list of {@code com.oracle.bmc.core.model.DrgNatPolicy} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.core.model.DrgNatPolicy} instances. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDrgNatPoliciesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDrgNatPoliciesResponse build() { + return new ListDrgNatPoliciesResponse( + __httpStatusCode__, headers, opcNextPage, opcRequestId, items); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDrgNatPoliciesResponse)) { + return false; + } + + ListDrgNatPoliciesResponse other = (ListDrgNatPoliciesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.items, other.items); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/ListDrgNatRulesResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/ListDrgNatRulesResponse.java new file mode 100644 index 00000000000..e50708ba879 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/ListDrgNatRulesResponse.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListDrgNatRulesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** A list of {@code com.oracle.bmc.core.model.DrgNatRule} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.core.model.DrgNatRule} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "items" + }) + private ListDrgNatRulesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.items = items; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** A list of {@code com.oracle.bmc.core.model.DrgNatRule} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.core.model.DrgNatRule} instances. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDrgNatRulesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDrgNatRulesResponse build() { + return new ListDrgNatRulesResponse( + __httpStatusCode__, headers, opcNextPage, opcRequestId, items); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDrgNatRulesResponse)) { + return false; + } + + ListDrgNatRulesResponse other = (ListDrgNatRulesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.items, other.items); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/RemoveDrgNatPolicyResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/RemoveDrgNatPolicyResponse.java new file mode 100644 index 00000000000..5bd6f70b690 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/RemoveDrgNatPolicyResponse.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RemoveDrgNatPolicyResponse 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 DrgAttachment} instance. */ + private com.oracle.bmc.core.model.DrgAttachment drgAttachment; + + /** + * The returned {@code DrgAttachment} instance. + * + * @return the value + */ + public com.oracle.bmc.core.model.DrgAttachment getDrgAttachment() { + return drgAttachment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "drgAttachment" + }) + private RemoveDrgNatPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.core.model.DrgAttachment drgAttachment) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.drgAttachment = drgAttachment; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code DrgAttachment} instance. */ + private com.oracle.bmc.core.model.DrgAttachment drgAttachment; + + /** + * The returned {@code DrgAttachment} instance. + * + * @param drgAttachment the value to set + * @return this builder + */ + public Builder drgAttachment(com.oracle.bmc.core.model.DrgAttachment drgAttachment) { + this.drgAttachment = drgAttachment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RemoveDrgNatPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + drgAttachment(o.getDrgAttachment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RemoveDrgNatPolicyResponse build() { + return new RemoveDrgNatPolicyResponse( + __httpStatusCode__, headers, etag, opcRequestId, drgAttachment); + } + } + + /** + * 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(",drgAttachment=").append(String.valueOf(drgAttachment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveDrgNatPolicyResponse)) { + return false; + } + + RemoveDrgNatPolicyResponse other = (RemoveDrgNatPolicyResponse) 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.drgAttachment, other.drgAttachment); + } + + @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.drgAttachment == null ? 43 : this.drgAttachment.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/RemoveDrgNatRulesResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/RemoveDrgNatRulesResponse.java new file mode 100644 index 00000000000..2405566d01d --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/RemoveDrgNatRulesResponse.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.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RemoveDrgNatRulesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 work + * request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 RemoveDrgNatRulesResponse( + 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 + * work request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 + * work request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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(RemoveDrgNatRulesResponse 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 RemoveDrgNatRulesResponse build() { + return new RemoveDrgNatRulesResponse( + __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 RemoveDrgNatRulesResponse)) { + return false; + } + + RemoveDrgNatRulesResponse other = (RemoveDrgNatRulesResponse) 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-core/src/main/java/com/oracle/bmc/core/responses/UpdateDrgNatPolicyResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateDrgNatPolicyResponse.java new file mode 100644 index 00000000000..9abe8432340 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateDrgNatPolicyResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateDrgNatPolicyResponse 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 DrgNatPolicy} instance. */ + private com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy; + + /** + * The returned {@code DrgNatPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.core.model.DrgNatPolicy getDrgNatPolicy() { + return drgNatPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "drgNatPolicy" + }) + private UpdateDrgNatPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.drgNatPolicy = drgNatPolicy; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code DrgNatPolicy} instance. */ + private com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy; + + /** + * The returned {@code DrgNatPolicy} instance. + * + * @param drgNatPolicy the value to set + * @return this builder + */ + public Builder drgNatPolicy(com.oracle.bmc.core.model.DrgNatPolicy drgNatPolicy) { + this.drgNatPolicy = drgNatPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateDrgNatPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + drgNatPolicy(o.getDrgNatPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateDrgNatPolicyResponse build() { + return new UpdateDrgNatPolicyResponse( + __httpStatusCode__, headers, etag, opcRequestId, drgNatPolicy); + } + } + + /** + * 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(",drgNatPolicy=").append(String.valueOf(drgNatPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDrgNatPolicyResponse)) { + return false; + } + + UpdateDrgNatPolicyResponse other = (UpdateDrgNatPolicyResponse) 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.drgNatPolicy, other.drgNatPolicy); + } + + @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.drgNatPolicy == null ? 43 : this.drgNatPolicy.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateDrgNatRulesResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateDrgNatRulesResponse.java new file mode 100644 index 00000000000..be0662b4201 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateDrgNatRulesResponse.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.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateDrgNatRulesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 work + * request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 UpdateDrgNatRulesResponse( + 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 + * work request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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 + * work request. Use + * [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/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(UpdateDrgNatRulesResponse 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 UpdateDrgNatRulesResponse build() { + return new UpdateDrgNatRulesResponse( + __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 UpdateDrgNatRulesResponse)) { + return false; + } + + UpdateDrgNatRulesResponse other = (UpdateDrgNatRulesResponse) 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-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 2d278a3a947..2b0d76f777d 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 @@ -1,4 +1,32 @@ [ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.AddDrgNatRuleDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.AddDrgNatRuleDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.AddDrgNatRulesDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.AddDrgNatRulesDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.AddDrgRouteDistributionStatementDetails", @@ -1887,6 +1915,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.ChangeDrgNatPolicyCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.ChangeDrgNatPolicyCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.ChangeIPSecConnectionCompartmentDetails", @@ -3658,6 +3700,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.CreateDrgNatPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.CreateDrgNatPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.CreateDrgRouteDistributionDetails", @@ -4983,6 +5039,40 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.DrgNatPolicy", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.DrgNatPolicy$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.DrgNatPolicy$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.DrgNatRule", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.DrgNatRule$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.DrgPromotionStatusResponse", @@ -8667,6 +8757,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.RemoveDrgNatRulesDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.RemoveDrgNatRulesDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.RemoveDrgRouteDistributionStatementsDetails", @@ -9962,6 +10066,48 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.UpdateDrgNatPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.UpdateDrgNatPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.UpdateDrgNatRuleDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.UpdateDrgNatRuleDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.UpdateDrgNatRulesDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.UpdateDrgNatRulesDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.UpdateDrgRouteDistributionDetails", diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index 9a7a2edfb89..1e37ad08c14 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 303f06070ba..6e34b8b6d4e 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index d729060238b..18961f0c390 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.97.0 + 3.97.1 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousVmClusterDetails.java index 30fd0c1199c..2c618242384 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousVmClusterDetails.java @@ -31,6 +31,8 @@ public final class UpdateAutonomousVmClusterDetails "autonomousDataStorageSizeInTBs", "cpuCoreCountPerNode", "totalContainerDatabases", + "memoryPerOracleComputeUnitInGBs", + "sgaPercentage", "timeZone", "scanListenerPortTls", "scanListenerPortNonTls", @@ -45,6 +47,8 @@ public UpdateAutonomousVmClusterDetails( Double autonomousDataStorageSizeInTBs, Integer cpuCoreCountPerNode, Integer totalContainerDatabases, + Integer memoryPerOracleComputeUnitInGBs, + Float sgaPercentage, String timeZone, Integer scanListenerPortTls, Integer scanListenerPortNonTls, @@ -58,6 +62,8 @@ public UpdateAutonomousVmClusterDetails( this.autonomousDataStorageSizeInTBs = autonomousDataStorageSizeInTBs; this.cpuCoreCountPerNode = cpuCoreCountPerNode; this.totalContainerDatabases = totalContainerDatabases; + this.memoryPerOracleComputeUnitInGBs = memoryPerOracleComputeUnitInGBs; + this.sgaPercentage = sgaPercentage; this.timeZone = timeZone; this.scanListenerPortTls = scanListenerPortTls; this.scanListenerPortNonTls = scanListenerPortNonTls; @@ -189,6 +195,36 @@ public Builder totalContainerDatabases(Integer totalContainerDatabases) { this.__explicitlySet__.add("totalContainerDatabases"); return this; } + /** The amount of memory (in GBs) to be enabled per OCPU or ECPU. */ + @com.fasterxml.jackson.annotation.JsonProperty("memoryPerOracleComputeUnitInGBs") + private Integer memoryPerOracleComputeUnitInGBs; + + /** + * The amount of memory (in GBs) to be enabled per OCPU or ECPU. + * + * @param memoryPerOracleComputeUnitInGBs the value to set + * @return this builder + */ + public Builder memoryPerOracleComputeUnitInGBs(Integer memoryPerOracleComputeUnitInGBs) { + this.memoryPerOracleComputeUnitInGBs = memoryPerOracleComputeUnitInGBs; + this.__explicitlySet__.add("memoryPerOracleComputeUnitInGBs"); + return this; + } + /** The new value of percentage of ECPU memory allocated for SGA(System Global Area). */ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private Float sgaPercentage; + + /** + * The new value of percentage of ECPU memory allocated for SGA(System Global Area). + * + * @param sgaPercentage the value to set + * @return this builder + */ + public Builder sgaPercentage(Float sgaPercentage) { + this.sgaPercentage = sgaPercentage; + this.__explicitlySet__.add("sgaPercentage"); + return this; + } /** * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time * Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). @@ -282,6 +318,8 @@ public UpdateAutonomousVmClusterDetails build() { this.autonomousDataStorageSizeInTBs, this.cpuCoreCountPerNode, this.totalContainerDatabases, + this.memoryPerOracleComputeUnitInGBs, + this.sgaPercentage, this.timeZone, this.scanListenerPortTls, this.scanListenerPortNonTls, @@ -316,6 +354,12 @@ public Builder copy(UpdateAutonomousVmClusterDetails model) { if (model.wasPropertyExplicitlySet("totalContainerDatabases")) { this.totalContainerDatabases(model.getTotalContainerDatabases()); } + if (model.wasPropertyExplicitlySet("memoryPerOracleComputeUnitInGBs")) { + this.memoryPerOracleComputeUnitInGBs(model.getMemoryPerOracleComputeUnitInGBs()); + } + if (model.wasPropertyExplicitlySet("sgaPercentage")) { + this.sgaPercentage(model.getSgaPercentage()); + } if (model.wasPropertyExplicitlySet("timeZone")) { this.timeZone(model.getTimeZone()); } @@ -485,6 +529,32 @@ public Integer getTotalContainerDatabases() { return totalContainerDatabases; } + /** The amount of memory (in GBs) to be enabled per OCPU or ECPU. */ + @com.fasterxml.jackson.annotation.JsonProperty("memoryPerOracleComputeUnitInGBs") + private final Integer memoryPerOracleComputeUnitInGBs; + + /** + * The amount of memory (in GBs) to be enabled per OCPU or ECPU. + * + * @return the value + */ + public Integer getMemoryPerOracleComputeUnitInGBs() { + return memoryPerOracleComputeUnitInGBs; + } + + /** The new value of percentage of ECPU memory allocated for SGA(System Global Area). */ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private final Float sgaPercentage; + + /** + * The new value of percentage of ECPU memory allocated for SGA(System Global Area). + * + * @return the value + */ + public Float getSgaPercentage() { + return sgaPercentage; + } + /** * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time * Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). @@ -612,6 +682,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", cpuCoreCountPerNode=").append(String.valueOf(this.cpuCoreCountPerNode)); sb.append(", totalContainerDatabases=") .append(String.valueOf(this.totalContainerDatabases)); + sb.append(", memoryPerOracleComputeUnitInGBs=") + .append(String.valueOf(this.memoryPerOracleComputeUnitInGBs)); + sb.append(", sgaPercentage=").append(String.valueOf(this.sgaPercentage)); sb.append(", timeZone=").append(String.valueOf(this.timeZone)); sb.append(", scanListenerPortTls=").append(String.valueOf(this.scanListenerPortTls)); sb.append(", scanListenerPortNonTls=").append(String.valueOf(this.scanListenerPortNonTls)); @@ -641,6 +714,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.cpuCoreCountPerNode, other.cpuCoreCountPerNode) && java.util.Objects.equals( this.totalContainerDatabases, other.totalContainerDatabases) + && java.util.Objects.equals( + this.memoryPerOracleComputeUnitInGBs, other.memoryPerOracleComputeUnitInGBs) + && java.util.Objects.equals(this.sgaPercentage, other.sgaPercentage) && java.util.Objects.equals(this.timeZone, other.timeZone) && java.util.Objects.equals(this.scanListenerPortTls, other.scanListenerPortTls) && java.util.Objects.equals( @@ -677,6 +753,14 @@ public int hashCode() { + (this.totalContainerDatabases == null ? 43 : this.totalContainerDatabases.hashCode()); + result = + (result * PRIME) + + (this.memoryPerOracleComputeUnitInGBs == null + ? 43 + : this.memoryPerOracleComputeUnitInGBs.hashCode()); + result = + (result * PRIME) + + (this.sgaPercentage == null ? 43 : this.sgaPercentage.hashCode()); result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudAutonomousVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudAutonomousVmClusterDetails.java index 37beb289325..da0da92ae2c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudAutonomousVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateCloudAutonomousVmClusterDetails.java @@ -30,6 +30,8 @@ public final class UpdateCloudAutonomousVmClusterDetails "autonomousDataStorageSizeInTBs", "cpuCoreCountPerNode", "totalContainerDatabases", + "memoryPerOracleComputeUnitInGBs", + "sgaPercentage", "licenseModel", "nsgIds", "freeformTags", @@ -48,6 +50,8 @@ public UpdateCloudAutonomousVmClusterDetails( Double autonomousDataStorageSizeInTBs, Integer cpuCoreCountPerNode, Integer totalContainerDatabases, + Integer memoryPerOracleComputeUnitInGBs, + Float sgaPercentage, LicenseModel licenseModel, java.util.List nsgIds, java.util.Map freeformTags, @@ -65,6 +69,8 @@ public UpdateCloudAutonomousVmClusterDetails( this.autonomousDataStorageSizeInTBs = autonomousDataStorageSizeInTBs; this.cpuCoreCountPerNode = cpuCoreCountPerNode; this.totalContainerDatabases = totalContainerDatabases; + this.memoryPerOracleComputeUnitInGBs = memoryPerOracleComputeUnitInGBs; + this.sgaPercentage = sgaPercentage; this.licenseModel = licenseModel; this.nsgIds = nsgIds; this.freeformTags = freeformTags; @@ -169,6 +175,36 @@ public Builder totalContainerDatabases(Integer totalContainerDatabases) { this.__explicitlySet__.add("totalContainerDatabases"); return this; } + /** The amount of memory (in GBs) to be enabled per OCPU or ECPU. */ + @com.fasterxml.jackson.annotation.JsonProperty("memoryPerOracleComputeUnitInGBs") + private Integer memoryPerOracleComputeUnitInGBs; + + /** + * The amount of memory (in GBs) to be enabled per OCPU or ECPU. + * + * @param memoryPerOracleComputeUnitInGBs the value to set + * @return this builder + */ + public Builder memoryPerOracleComputeUnitInGBs(Integer memoryPerOracleComputeUnitInGBs) { + this.memoryPerOracleComputeUnitInGBs = memoryPerOracleComputeUnitInGBs; + this.__explicitlySet__.add("memoryPerOracleComputeUnitInGBs"); + return this; + } + /** The new value of percentage of ECPU memory allocated for SGA(System Global Area). */ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private Float sgaPercentage; + + /** + * The new value of percentage of ECPU memory allocated for SGA(System Global Area). + * + * @param sgaPercentage the value to set + * @return this builder + */ + public Builder sgaPercentage(Float sgaPercentage) { + this.sgaPercentage = sgaPercentage; + this.__explicitlySet__.add("sgaPercentage"); + return this; + } /** * The Oracle license model that applies to the Oracle Autonomous AI Database. Bring your * own license (BYOL) allows you to apply your current on-premises Oracle software licenses @@ -414,6 +450,8 @@ public UpdateCloudAutonomousVmClusterDetails build() { this.autonomousDataStorageSizeInTBs, this.cpuCoreCountPerNode, this.totalContainerDatabases, + this.memoryPerOracleComputeUnitInGBs, + this.sgaPercentage, this.licenseModel, this.nsgIds, this.freeformTags, @@ -450,6 +488,12 @@ public Builder copy(UpdateCloudAutonomousVmClusterDetails model) { if (model.wasPropertyExplicitlySet("totalContainerDatabases")) { this.totalContainerDatabases(model.getTotalContainerDatabases()); } + if (model.wasPropertyExplicitlySet("memoryPerOracleComputeUnitInGBs")) { + this.memoryPerOracleComputeUnitInGBs(model.getMemoryPerOracleComputeUnitInGBs()); + } + if (model.wasPropertyExplicitlySet("sgaPercentage")) { + this.sgaPercentage(model.getSgaPercentage()); + } if (model.wasPropertyExplicitlySet("licenseModel")) { this.licenseModel(model.getLicenseModel()); } @@ -569,6 +613,32 @@ public Integer getTotalContainerDatabases() { return totalContainerDatabases; } + /** The amount of memory (in GBs) to be enabled per OCPU or ECPU. */ + @com.fasterxml.jackson.annotation.JsonProperty("memoryPerOracleComputeUnitInGBs") + private final Integer memoryPerOracleComputeUnitInGBs; + + /** + * The amount of memory (in GBs) to be enabled per OCPU or ECPU. + * + * @return the value + */ + public Integer getMemoryPerOracleComputeUnitInGBs() { + return memoryPerOracleComputeUnitInGBs; + } + + /** The new value of percentage of ECPU memory allocated for SGA(System Global Area). */ + @com.fasterxml.jackson.annotation.JsonProperty("sgaPercentage") + private final Float sgaPercentage; + + /** + * The new value of percentage of ECPU memory allocated for SGA(System Global Area). + * + * @return the value + */ + public Float getSgaPercentage() { + return sgaPercentage; + } + /** * The Oracle license model that applies to the Oracle Autonomous AI Database. Bring your own * license (BYOL) allows you to apply your current on-premises Oracle software licenses to @@ -882,6 +952,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", cpuCoreCountPerNode=").append(String.valueOf(this.cpuCoreCountPerNode)); sb.append(", totalContainerDatabases=") .append(String.valueOf(this.totalContainerDatabases)); + sb.append(", memoryPerOracleComputeUnitInGBs=") + .append(String.valueOf(this.memoryPerOracleComputeUnitInGBs)); + sb.append(", sgaPercentage=").append(String.valueOf(this.sgaPercentage)); sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -915,6 +988,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.cpuCoreCountPerNode, other.cpuCoreCountPerNode) && java.util.Objects.equals( this.totalContainerDatabases, other.totalContainerDatabases) + && java.util.Objects.equals( + this.memoryPerOracleComputeUnitInGBs, other.memoryPerOracleComputeUnitInGBs) + && java.util.Objects.equals(this.sgaPercentage, other.sgaPercentage) && java.util.Objects.equals(this.licenseModel, other.licenseModel) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -956,6 +1032,14 @@ public int hashCode() { + (this.totalContainerDatabases == null ? 43 : this.totalContainerDatabases.hashCode()); + result = + (result * PRIME) + + (this.memoryPerOracleComputeUnitInGBs == null + ? 43 + : this.memoryPerOracleComputeUnitInGBs.hashCode()); + result = + (result * PRIME) + + (this.sgaPercentage == null ? 43 : this.sgaPercentage.hashCode()); result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 3ef56e8a737..8ff66f131b2 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index bae93b78e52..0a8dd248af8 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index a4df74b7afe..7401619249f 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index 4b76673bc2e..3c56b889bd1 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 8243f251f68..ff7a18db08a 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml index 93deb43faa2..65945896dfd 100644 --- a/bmc-datacc/pom.xml +++ b/bmc-datacc/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-datacc @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index a1e4c2c28f0..c1c7f572c56 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index b8e81801c2f..3d59369d727 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index ea2e5baab11..8597694a051 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 8b7a3b1118d..6017c17f3fd 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index cc6c4292273..4cd1c458c0e 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ 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 594a611a48c..63c063ae0c6 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 @@ -570,6 +570,23 @@ ChangeMaskingPolicyHealthReportCompartmentResponse changeMaskingPolicyHealthRepo ChangeOnPremConnectorCompartmentResponse changeOnPremConnectorCompartment( ChangeOnPremConnectorCompartmentRequest request); + /** + * Moves the registration policy to 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 + * ChangeRegistrationPolicyCompartment API. + */ + ChangeRegistrationPolicyCompartmentResponse changeRegistrationPolicyCompartment( + ChangeRegistrationPolicyCompartmentRequest request); + /** * Moves a resource into a different compartment. When provided, If-Match is checked against * ETag values of the resource. @@ -820,6 +837,43 @@ ChangeSqlCollectionCompartmentResponse changeSqlCollectionCompartment( ChangeSqlFirewallPolicyCompartmentResponse changeSqlFirewallPolicyCompartment( ChangeSqlFirewallPolicyCompartmentRequest request); + /** + * Moves the specified subsetting policy and its dependent resources into a different + * 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 + * ChangeSubsettingPolicyCompartment API. + */ + ChangeSubsettingPolicyCompartmentResponse changeSubsettingPolicyCompartment( + ChangeSubsettingPolicyCompartmentRequest request); + + /** + * Moves the specified subsetting policy health report and its dependent resources into a + * different 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 + * ChangeSubsettingPolicyHealthReportCompartment API. + */ + ChangeSubsettingPolicyHealthReportCompartmentResponse + changeSubsettingPolicyHealthReportCompartment( + ChangeSubsettingPolicyHealthReportCompartmentRequest request); + /** * Moves the specified target-alert policy Association into a different compartment. * @@ -1249,6 +1303,23 @@ CreatePeerTargetDatabaseResponse createPeerTargetDatabase( CreateReferentialRelationResponse createReferentialRelation( CreateReferentialRelationRequest request); + /** + * Creates a new OptIn/Registration Policy + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * CreateRegistrationPolicy API. + */ + CreateRegistrationPolicyResponse createRegistrationPolicy( + CreateRegistrationPolicyRequest request); + /** * Creates a new report definition with parameters specified in the body. The report definition * is stored in the specified compartment. @@ -1465,6 +1536,69 @@ CreateSensitiveTypesExportResponse createSensitiveTypesExport( */ CreateSqlCollectionResponse createSqlCollection(CreateSqlCollectionRequest request); + /** + * Creates a new subsetting policy and associates it with a sensitive data model or a target + * database. + * + *

To use a sensitive data model as the source of subsetting schemas, set the schemaSource + * attribute to SENSITIVE_DATA_MODEL and provide the sensitiveDataModelId attribute. In this + * case, the target database associated with the sensitive data model is used for subsetting + * rules validations. + * + *

You can also create a subsetting policy without using a sensitive data model. In this + * case, you need to associate your subsetting policy with a target database by setting the + * schemaSource attribute to TARGET and providing the targetId attribute. The specified target + * database is used for subsetting rules validations. + * + *

After creating a subsetting policy, you can use the CreateSubsettingRule operation to + * manually add subsetting rules to the policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * CreateSubsettingPolicy API. + */ + CreateSubsettingPolicyResponse createSubsettingPolicy(CreateSubsettingPolicyRequest request); + + /** + * Details to create a new subsetting rule + * + * @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 + * CreateSubsettingRule API. + */ + CreateSubsettingRuleResponse createSubsettingRule(CreateSubsettingRuleRequest request); + + /** + * Details to create a new referential relation. + * + * @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 + * CreateSubsettingSchemaRelation API. + */ + CreateSubsettingSchemaRelationResponse createSubsettingSchemaRelation( + CreateSubsettingSchemaRelationRequest request); + /** * Creates a new target-alert policy association to track a alert policy applied on target. * @@ -1868,6 +2002,23 @@ DeletePeerTargetDatabaseResponse deletePeerTargetDatabase( DeleteReferentialRelationResponse deleteReferentialRelation( DeleteReferentialRelationRequest request); + /** + * Deletes the specified registration policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * DeleteRegistrationPolicy API. + */ + DeleteRegistrationPolicyResponse deleteRegistrationPolicy( + DeleteRegistrationPolicyRequest request); + /** * Deletes the specified report definition. Only the user created report definition can be * deleted. The seeded report definitions cannot be deleted. @@ -2105,6 +2256,89 @@ DeleteSqlFirewallAllowedSqlResponse deleteSqlFirewallAllowedSql( */ DeleteSqlFirewallPolicyResponse deleteSqlFirewallPolicy(DeleteSqlFirewallPolicyRequest request); + /** + * Deletes the specified subsetting policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * DeleteSubsettingPolicy API. + */ + DeleteSubsettingPolicyResponse deleteSubsettingPolicy(DeleteSubsettingPolicyRequest request); + + /** + * Deletes the specified subsetting policy health report. + * + * @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 + * DeleteSubsettingPolicyHealthReport API. + */ + DeleteSubsettingPolicyHealthReportResponse deleteSubsettingPolicyHealthReport( + DeleteSubsettingPolicyHealthReportRequest request); + + /** + * Deletes the specified subsetting report. + * + * @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 + * DeleteSubsettingReport API. + */ + DeleteSubsettingReportResponse deleteSubsettingReport(DeleteSubsettingReportRequest request); + + /** + * Deletes the specified subsetting rule. + * + * @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 + * DeleteSubsettingRule API. + */ + DeleteSubsettingRuleResponse deleteSubsettingRule(DeleteSubsettingRuleRequest request); + + /** + * Deletes the specified referential relation. Note that only the relation created by the user + * can be deleted + * + * @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 + * DeleteSubsettingSchemaRelation API. + */ + DeleteSubsettingSchemaRelationResponse deleteSubsettingSchemaRelation( + DeleteSubsettingSchemaRelationRequest request); + /** * Deletes the specified target-alert policy Association. * @@ -2417,6 +2651,63 @@ DownloadSensitiveDataModelResponse downloadSensitiveDataModel( DownloadSensitiveTypesExportResponse downloadSensitiveTypesExport( DownloadSensitiveTypesExportRequest request); + /** + * Downloads the subsetting log generated by the last subsetting operation on a target database + * using the specified subsetting policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * DownloadSubsettingLog API. + */ + DownloadSubsettingLogResponse downloadSubsettingLog(DownloadSubsettingLogRequest request); + + /** + * Downloads an already-generated file corresponding to the specified subsetting policy. Note + * that the GenerateSubsettingPolicyForDownload operation is a prerequisite for the + * DownloadSubsettingPolicy operation. Use GenerateSubsettingPolicyForDownload to generate a + * subsetting policy file and then use DownloadSubsettingPolicy to download the generated file. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * DownloadSubsettingPolicy API. + */ + DownloadSubsettingPolicyResponse downloadSubsettingPolicy( + DownloadSubsettingPolicyRequest request); + + /** + * Downloads an already-generated subsetting report. Note that the + * GenerateSubsettingReportForDownload operation is a prerequisite for the + * DownloadSubsettingReport operation. Use GenerateSubsettingReportForDownload to generate a + * subsetting report file and then use DownloadSubsettingReport to download the generated file. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * DownloadSubsettingReport API. + */ + DownloadSubsettingReportResponse downloadSubsettingReport( + DownloadSubsettingReportRequest request); + /** * Downloads the report of the specified user assessment. To download the user assessment * report, it needs to be generated first. Please use GenerateUserAssessmentReport to generate a @@ -2453,6 +2744,22 @@ DownloadUserAssessmentReportResponse downloadUserAssessmentReport( EnableDataSafeConfigurationResponse enableDataSafeConfiguration( EnableDataSafeConfigurationRequest request); + /** + * Estimates table sizes for the specified subsetting policy and target database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use EstimateTableSizes + * API. + */ + EstimateTableSizesResponse estimateTableSizes(EstimateTableSizesRequest request); + /** * Generates the report of the specified crypto assessment. Supported output formats are PDF and * XLS. @@ -2637,6 +2944,63 @@ GenerateSensitiveDataModelForDownloadResponse generateSensitiveDataModelForDownl GenerateSqlFirewallPolicyResponse generateSqlFirewallPolicy( GenerateSqlFirewallPolicyRequest request); + /** + * Performs health check on the subsetting policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * GenerateSubsettingHealthReport API. + */ + GenerateSubsettingHealthReportResponse generateSubsettingHealthReport( + GenerateSubsettingHealthReportRequest request); + + /** + * Generates a downloadable file corresponding to the specified subsetting policy. It's a + * prerequisite for the DownloadSubsettingPolicy operation. Use this operation to generate a + * subsetting policy file and then use DownloadSubsettingPolicy to download the generated file. + * Note that file generation and download are serial operations. The download operation can't be + * invoked while the generate operation is in progress. + * + * @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 + * GenerateSubsettingPolicyForDownload API. + */ + GenerateSubsettingPolicyForDownloadResponse generateSubsettingPolicyForDownload( + GenerateSubsettingPolicyForDownloadRequest request); + + /** + * Generates a downloadable subsetting report. It's a prerequisite for the + * DownloadSubsettingReport operation. Use this endpoint to generate a subsetting report file + * and then use DownloadSubsettingReport to download the generated file. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GenerateSubsettingReportForDownload API. + */ + GenerateSubsettingReportForDownloadResponse generateSubsettingReportForDownload( + GenerateSubsettingReportForDownloadRequest request); + /** * Generates the report of the specified user assessment. The report is available in PDF or XLS * format. After generating the report, use DownloadUserAssessmentReport to download it in the @@ -3153,7 +3517,7 @@ GetMaskingPolicyHealthReportResponse getMaskingPolicyHealthReport( GetReferentialRelationResponse getReferentialRelation(GetReferentialRelationRequest request); /** - * Gets a report by identifier + * Returns the details of the specified Registration Policy. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -3162,13 +3526,14 @@ GetMaskingPolicyHealthReportResponse getMaskingPolicyHealthReport( * 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 GetReport API. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/datasafe/GetRegistrationPolicyExample.java.html" + * target="_blank" rel="noopener noreferrer" >here to see how to use + * GetRegistrationPolicy API. */ - GetReportResponse getReport(GetReportRequest request); + GetRegistrationPolicyResponse getRegistrationPolicy(GetRegistrationPolicyRequest request); /** - * Downloads the specified report in the form of .xls or .pdf. + * Gets a report by identifier * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -3177,8 +3542,23 @@ GetMaskingPolicyHealthReportResponse getMaskingPolicyHealthReport( * 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 GetReportContent + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/datasafe/GetReportExample.java.html" + * target="_blank" rel="noopener noreferrer" >here to see how to use GetReport API. + */ + GetReportResponse getReport(GetReportRequest request); + + /** + * Downloads the specified report in the form of .xls or .pdf. + * + * @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 GetReportContent * API. */ GetReportContentResponse getReportContent(GetReportContentRequest request); @@ -3461,6 +3841,88 @@ GetSqlFirewallAllowedSqlResponse getSqlFirewallAllowedSql( */ GetSqlFirewallPolicyResponse getSqlFirewallPolicy(GetSqlFirewallPolicyRequest request); + /** + * Gets the details of the specified subsetting policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 GetSubsettingPolicy + * API. + */ + GetSubsettingPolicyResponse getSubsettingPolicy(GetSubsettingPolicyRequest request); + + /** + * Gets the details of the specified subsetting policy health report. + * + * @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 + * GetSubsettingPolicyHealthReport API. + */ + GetSubsettingPolicyHealthReportResponse getSubsettingPolicyHealthReport( + GetSubsettingPolicyHealthReportRequest request); + + /** + * Gets the details of the specified subsetting report. + * + * @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 GetSubsettingReport + * API. + */ + GetSubsettingReportResponse getSubsettingReport(GetSubsettingReportRequest request); + + /** + * Gets the details of the specified subsetting rule. + * + * @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 GetSubsettingRule + * API. + */ + GetSubsettingRuleResponse getSubsettingRule(GetSubsettingRuleRequest request); + + /** + * Gets the details of the specified referential relation in the subsetting policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * GetSubsettingSchemaRelation API. + */ + GetSubsettingSchemaRelationResponse getSubsettingSchemaRelation( + GetSubsettingSchemaRelationRequest request); + /** * Gets the details of target-alert policy association by its ID. * @@ -4837,6 +5299,42 @@ ListPasswordExpiryDateAnalyticsResponse listPasswordExpiryDateAnalytics( ListReferentialRelationsResponse listReferentialRelations( ListReferentialRelationsRequest request); + /** + * Retrieves a list of registration policies according to the specified query parameters. + * + * @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 + * ListRegistrationPolicies API. + */ + ListRegistrationPoliciesResponse listRegistrationPolicies( + ListRegistrationPoliciesRequest request); + + /** + * Retrieves the OCIDs of target databases registered via the specified registration policy. + * Supports optional filtering by registration status (OPTIN/OPTOUT) and by target database + * OCID. + * + * @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 + * ListRegistrationPolicyTargetDatabases API. + */ + ListRegistrationPolicyTargetDatabasesResponse listRegistrationPolicyTargetDatabases( + ListRegistrationPolicyTargetDatabasesRequest request); + /** * Gets a list of report definitions. The ListReportDefinitions operation returns only the * report definitions in the specified `compartmentId`. It also returns the seeded report @@ -5562,6 +6060,233 @@ ListSqlFirewallViolationAnalyticsResponse listSqlFirewallViolationAnalytics( ListSqlFirewallViolationsResponse listSqlFirewallViolations( ListSqlFirewallViolationsRequest request); + /** + * Gets a list of subsetted tables present in the specified subsetting report and based on the + * specified query parameters. + * + * @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 + * ListSubsettedObjects API. + */ + ListSubsettedObjectsResponse listSubsettedObjects(ListSubsettedObjectsRequest request); + + /** + * Gets consolidated subsetting analytics data based on the specified query parameters. If + * CompartmentIdInSubtreeQueryParam is specified as true, the behaviour is equivalent to + * accessLevel \"ACCESSIBLE\" by default. + * + * @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 + * ListSubsettingAnalytics API. + */ + ListSubsettingAnalyticsResponse listSubsettingAnalytics(ListSubsettingAnalyticsRequest request); + + /** + * Gets a list of subsetting errors in a subsetting run based on the specified query parameters. + * + * @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 + * ListSubsettingErrors API. + */ + ListSubsettingErrorsResponse listSubsettingErrors(ListSubsettingErrorsRequest request); + + /** + * Gets a list of subsetting policies based on the specified query parameters. + * + * @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 + * ListSubsettingPolicies API. + */ + ListSubsettingPoliciesResponse listSubsettingPolicies(ListSubsettingPoliciesRequest request); + + /** + * Gets a list of errors and warnings from a subsetting policy health check. + * + * @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 + * ListSubsettingPolicyHealthReportLogs API. + */ + ListSubsettingPolicyHealthReportLogsResponse listSubsettingPolicyHealthReportLogs( + ListSubsettingPolicyHealthReportLogsRequest request); + + /** + * Gets a list of subsetting policy health reports based on the specified query parameters. + * + * @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 + * ListSubsettingPolicyHealthReports API. + */ + ListSubsettingPolicyHealthReportsResponse listSubsettingPolicyHealthReports( + ListSubsettingPolicyHealthReportsRequest request); + + /** + * Gets a list of subsetting reports based on the specified query parameters. + * + * @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 + * ListSubsettingReports API. + */ + ListSubsettingReportsResponse listSubsettingReports(ListSubsettingReportsRequest request); + + /** + * Gets a list of objects of processing chain based on the specified query parameters generated + * for a subsetting rule. A processing chain is the relationship path that determines how a + * subsetting rule is applied across related tables. It is built from the selected subsetting + * table, subsetting rule, the chosen relatedTablesPropagation direction, and the referential + * relationships in the schema. + * + * @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 + * ListSubsettingRuleProcessingChainObjects API. + */ + ListSubsettingRuleProcessingChainObjectsResponse listSubsettingRuleProcessingChainObjects( + ListSubsettingRuleProcessingChainObjectsRequest request); + + /** + * Gets a list of subsetting rules present in the specified subsetting policy and based on the + * specified query parameters. A subsetting rule is the criteria that tells Data Safe which rows + * to retain from the selected starting table for a subsetting operation. It is the entry point + * for the subset. Data Safe uses this rule, along with the propagation setting, to determine + * the related rows that must also be retained across parent and child tables. + * + * @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 ListSubsettingRules + * API. + */ + ListSubsettingRulesResponse listSubsettingRules(ListSubsettingRulesRequest request); + + /** + * Gets a list of objects/tables present in the specified subsetting policy schemas based on the + * specified query parameters. + * + * @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 + * ListSubsettingSchemaObjects API. + */ + ListSubsettingSchemaObjectsResponse listSubsettingSchemaObjects( + ListSubsettingSchemaObjectsRequest request); + + /** + * Gets a list of referential relations present in the specified subsetting policy schemas based + * on the specified query parameters. + * + * @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 + * ListSubsettingSchemaRelations API. + */ + ListSubsettingSchemaRelationsResponse listSubsettingSchemaRelations( + ListSubsettingSchemaRelationsRequest request); + + /** + * Gets a list of subsetting schemas present in the specified subsetting policy and based on the + * specified query parameters. + * + * @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 + * ListSubsettingSchemas API. + */ + ListSubsettingSchemasResponse listSubsettingSchemas(ListSubsettingSchemasRequest request); + + /** + * Gets table size estimates for the specified subsetting policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 ListTableEstimates + * API. + */ + ListTableEstimatesResponse listTableEstimates(ListTableEstimatesRequest request); + /** * Returns a list of table metadata objects. * @@ -5942,6 +6667,22 @@ ListUnifiedAuditPolicyDefinitionsResponse listUnifiedAuditPolicyDefinitions( */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + /** + * Updates the Data Safe target database Privileges. + * + * @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 ManagePrivileges + * API. + */ + ManagePrivilegesResponse managePrivileges(ManagePrivilegesRequest request); + /** * Masks data using the specified masking policy. * @@ -6131,6 +6872,25 @@ PatchSdmMaskingPolicyDifferenceColumnsResponse patchSdmMaskingPolicyDifferenceCo PatchSqlFirewallAllowedSqlResponse patchSqlFirewallAllowedSql( PatchSqlFirewallAllowedSqlRequest request); + /** + * Patches one or more subsetting rules in the specified subsetting policy. Use INSERT to add a + * new rule with CreateSubsettingRuleDetails as the patch value, and MERGE to update an existing + * rule with UpdateSubsettingRuleDetails as the patch value. To delete a rule, use the existing + * DeleteSubsettingRule API. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * PatchSubsettingRules API. + */ + PatchSubsettingRulesResponse patchSubsettingRules(PatchSubsettingRulesRequest request); + /** * Creates new target-alert policy associations that will be applied on the target database. * @@ -6503,6 +7263,21 @@ SetUserAssessmentBaselineResponse setUserAssessmentBaseline( */ StopSqlCollectionResponse stopSqlCollection(StopSqlCollectionRequest request); + /** + * Subsets data using the specified subsetting policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 SubsetData API. + */ + SubsetDataResponse subsetData(SubsetDataRequest request); + /** * Suspend the given work request. Issuing a suspend does not guarantee of a immediate suspend * of the work request. @@ -6858,6 +7633,40 @@ UpdateOnPremConnectorWalletResponse updateOnPremConnectorWallet( UpdatePeerTargetDatabaseResponse updatePeerTargetDatabase( UpdatePeerTargetDatabaseRequest request); + /** + * Updates one or more attributes of the specified processing chain object. + * + * @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 + * UpdateProcessingChainObject API. + */ + UpdateProcessingChainObjectResponse updateProcessingChainObject( + UpdateProcessingChainObjectRequest request); + + /** + * Updates one or more attributes of the specified registration policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * UpdateRegistrationPolicy API. + */ + UpdateRegistrationPolicyResponse updateRegistrationPolicy( + UpdateRegistrationPolicyRequest request); + /** * Updates the specified report. Only tags can be updated. * @@ -7091,6 +7900,39 @@ UpdateSensitiveTypesExportResponse updateSensitiveTypesExport( */ UpdateSqlFirewallPolicyResponse updateSqlFirewallPolicy(UpdateSqlFirewallPolicyRequest request); + /** + * Updates one or more attributes of the specified subsetting policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * UpdateSubsettingPolicy API. + */ + UpdateSubsettingPolicyResponse updateSubsettingPolicy(UpdateSubsettingPolicyRequest request); + + /** + * Updates one or more attributes of the specified subsetting rule. Note that updating the + * subsettingRuleEntry attribute replaces the currently assigned subsettingRuleEntry + * + * @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 + * UpdateSubsettingRule API. + */ + UpdateSubsettingRuleResponse updateSubsettingRule(UpdateSubsettingRuleRequest request); + /** * Updates the specified target-alert policy association. * @@ -7294,6 +8136,56 @@ UpdateUnifiedAuditPolicyDefinitionResponse updateUnifiedAuditPolicyDefinition( UploadSensitiveDataModelResponse uploadSensitiveDataModel( UploadSensitiveDataModelRequest request); + /** + * Uploads a subsetting policy file (also called template) to update the specified subsetting + * policy. To create a new subsetting policy using a file, first use the CreateSubsettingPolicy + * operation to create an empty subsetting policy and then use this operation to upload the + * subsetting policy file. Note that the upload operation replaces the content of the specified + * subsetting policy, including all the subsetting rules, with the content of the file. + * + *

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

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

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

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

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

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

Example: Click here to see how to use + * UploadSubsettingPolicy API. + */ + UploadSubsettingPolicyResponse uploadSubsettingPolicy(UploadSubsettingPolicyRequest request); + /** * Gets the pre-configured waiters available for resources for this service. * 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 e97ce8f66af..2fb71705b16 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 @@ -550,6 +550,24 @@ java.util.concurrent.Future changeAuditPol ChangeOnPremConnectorCompartmentResponse> handler); + /** + * Moves the registration policy to 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 + changeRegistrationPolicyCompartment( + ChangeRegistrationPolicyCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeRegistrationPolicyCompartmentRequest, + ChangeRegistrationPolicyCompartmentResponse> + handler); + /** * Moves a resource into a different compartment. When provided, If-Match is checked against * ETag values of the resource. @@ -811,6 +829,44 @@ java.util.concurrent.Future changeRetention( ChangeSqlFirewallPolicyCompartmentResponse> handler); + /** + * Moves the specified subsetting policy and its dependent resources into a different + * 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 + changeSubsettingPolicyCompartment( + ChangeSubsettingPolicyCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeSubsettingPolicyCompartmentRequest, + ChangeSubsettingPolicyCompartmentResponse> + handler); + + /** + * Moves the specified subsetting policy health report and its dependent resources into a + * different 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 + changeSubsettingPolicyHealthReportCompartment( + ChangeSubsettingPolicyHealthReportCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeSubsettingPolicyHealthReportCompartmentRequest, + ChangeSubsettingPolicyHealthReportCompartmentResponse> + handler); + /** * Moves the specified target-alert policy Association into a different compartment. * @@ -1239,6 +1295,22 @@ java.util.concurrent.Future createReferential CreateReferentialRelationRequest, CreateReferentialRelationResponse> handler); + /** + * Creates a new OptIn/Registration Policy + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createRegistrationPolicy( + CreateRegistrationPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateRegistrationPolicyRequest, CreateRegistrationPolicyResponse> + handler); + /** * Creates a new report definition with parameters specified in the body. The report definition * is stored in the specified compartment. @@ -1452,6 +1524,70 @@ java.util.concurrent.Future createSqlCollection( CreateSqlCollectionRequest, CreateSqlCollectionResponse> handler); + /** + * Creates a new subsetting policy and associates it with a sensitive data model or a target + * database. + * + *

To use a sensitive data model as the source of subsetting schemas, set the schemaSource + * attribute to SENSITIVE_DATA_MODEL and provide the sensitiveDataModelId attribute. In this + * case, the target database associated with the sensitive data model is used for subsetting + * rules validations. + * + *

You can also create a subsetting policy without using a sensitive data model. In this + * case, you need to associate your subsetting policy with a target database by setting the + * schemaSource attribute to TARGET and providing the targetId attribute. The specified target + * database is used for subsetting rules validations. + * + *

After creating a subsetting policy, you can use the CreateSubsettingRule operation to + * manually add subsetting rules to the policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createSubsettingPolicy( + CreateSubsettingPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateSubsettingPolicyRequest, CreateSubsettingPolicyResponse> + handler); + + /** + * Details to create a new subsetting rule + * + * @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 createSubsettingRule( + CreateSubsettingRuleRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateSubsettingRuleRequest, CreateSubsettingRuleResponse> + handler); + + /** + * Details to create a new referential relation. + * + * @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 + createSubsettingSchemaRelation( + CreateSubsettingSchemaRelationRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateSubsettingSchemaRelationRequest, + CreateSubsettingSchemaRelationResponse> + handler); + /** * Creates a new target-alert policy association to track a alert policy applied on target. * @@ -1849,6 +1985,22 @@ java.util.concurrent.Future deleteReferential DeleteReferentialRelationRequest, DeleteReferentialRelationResponse> handler); + /** + * Deletes the specified registration policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteRegistrationPolicy( + DeleteRegistrationPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteRegistrationPolicyRequest, DeleteRegistrationPolicyResponse> + handler); + /** * Deletes the specified report definition. Only the user created report definition can be * deleted. The seeded report definitions cannot be deleted. @@ -2082,6 +2234,91 @@ java.util.concurrent.Future deleteSqlFirewallPo DeleteSqlFirewallPolicyRequest, DeleteSqlFirewallPolicyResponse> handler); + /** + * Deletes the specified subsetting policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteSubsettingPolicy( + DeleteSubsettingPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteSubsettingPolicyRequest, DeleteSubsettingPolicyResponse> + handler); + + /** + * Deletes the specified subsetting policy health report. + * + * @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 + deleteSubsettingPolicyHealthReport( + DeleteSubsettingPolicyHealthReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteSubsettingPolicyHealthReportRequest, + DeleteSubsettingPolicyHealthReportResponse> + handler); + + /** + * Deletes the specified subsetting report. + * + * @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 deleteSubsettingReport( + DeleteSubsettingReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteSubsettingReportRequest, DeleteSubsettingReportResponse> + handler); + + /** + * Deletes the specified subsetting rule. + * + * @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 deleteSubsettingRule( + DeleteSubsettingRuleRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteSubsettingRuleRequest, DeleteSubsettingRuleResponse> + handler); + + /** + * Deletes the specified referential relation. Note that only the relation created by the user + * can be deleted + * + * @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 + deleteSubsettingSchemaRelation( + DeleteSubsettingSchemaRelationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteSubsettingSchemaRelationRequest, + DeleteSubsettingSchemaRelationResponse> + handler); + /** * Deletes the specified target-alert policy Association. * @@ -2396,6 +2633,61 @@ java.util.concurrent.Future downloadSensit DownloadSensitiveTypesExportResponse> handler); + /** + * Downloads the subsetting log generated by the last subsetting operation on a target database + * using the specified subsetting policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future downloadSubsettingLog( + DownloadSubsettingLogRequest request, + com.oracle.bmc.responses.AsyncHandler< + DownloadSubsettingLogRequest, DownloadSubsettingLogResponse> + handler); + + /** + * Downloads an already-generated file corresponding to the specified subsetting policy. Note + * that the GenerateSubsettingPolicyForDownload operation is a prerequisite for the + * DownloadSubsettingPolicy operation. Use GenerateSubsettingPolicyForDownload to generate a + * subsetting policy file and then use DownloadSubsettingPolicy to download the generated file. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future downloadSubsettingPolicy( + DownloadSubsettingPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + DownloadSubsettingPolicyRequest, DownloadSubsettingPolicyResponse> + handler); + + /** + * Downloads an already-generated subsetting report. Note that the + * GenerateSubsettingReportForDownload operation is a prerequisite for the + * DownloadSubsettingReport operation. Use GenerateSubsettingReportForDownload to generate a + * subsetting report file and then use DownloadSubsettingReport to download the generated file. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future downloadSubsettingReport( + DownloadSubsettingReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + DownloadSubsettingReportRequest, DownloadSubsettingReportResponse> + handler); + /** * Downloads the report of the specified user assessment. To download the user assessment * report, it needs to be generated first. Please use GenerateUserAssessmentReport to generate a @@ -2431,6 +2723,22 @@ java.util.concurrent.Future enableDataSafeC EnableDataSafeConfigurationRequest, EnableDataSafeConfigurationResponse> handler); + /** + * Estimates table sizes for the specified subsetting policy and target database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future estimateTableSizes( + EstimateTableSizesRequest request, + com.oracle.bmc.responses.AsyncHandler< + EstimateTableSizesRequest, EstimateTableSizesResponse> + handler); + /** * Generates the report of the specified crypto assessment. Supported output formats are PDF and * XLS. @@ -2621,6 +2929,66 @@ java.util.concurrent.Future generateSqlFirewa GenerateSqlFirewallPolicyRequest, GenerateSqlFirewallPolicyResponse> handler); + /** + * Performs health check on the subsetting policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + generateSubsettingHealthReport( + GenerateSubsettingHealthReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateSubsettingHealthReportRequest, + GenerateSubsettingHealthReportResponse> + handler); + + /** + * Generates a downloadable file corresponding to the specified subsetting policy. It's a + * prerequisite for the DownloadSubsettingPolicy operation. Use this operation to generate a + * subsetting policy file and then use DownloadSubsettingPolicy to download the generated file. + * Note that file generation and download are serial operations. The download operation can't be + * invoked while the generate operation is in progress. + * + * @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 + generateSubsettingPolicyForDownload( + GenerateSubsettingPolicyForDownloadRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateSubsettingPolicyForDownloadRequest, + GenerateSubsettingPolicyForDownloadResponse> + handler); + + /** + * Generates a downloadable subsetting report. It's a prerequisite for the + * DownloadSubsettingReport operation. Use this endpoint to generate a subsetting report file + * and then use DownloadSubsettingReport to download the generated file. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + generateSubsettingReportForDownload( + GenerateSubsettingReportForDownloadRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateSubsettingReportForDownloadRequest, + GenerateSubsettingReportForDownloadResponse> + handler); + /** * Generates the report of the specified user assessment. The report is available in PDF or XLS * format. After generating the report, use DownloadUserAssessmentReport to download it in the @@ -3125,7 +3493,7 @@ java.util.concurrent.Future getReferentialRelati handler); /** - * Gets a report by identifier + * Returns the details of the specified Registration Policy. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -3134,12 +3502,14 @@ java.util.concurrent.Future getReferentialRelati * 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 getReport( - GetReportRequest request, - com.oracle.bmc.responses.AsyncHandler handler); + java.util.concurrent.Future getRegistrationPolicy( + GetRegistrationPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetRegistrationPolicyRequest, GetRegistrationPolicyResponse> + handler); /** - * Downloads the specified report in the form of .xls or .pdf. + * Gets a report by identifier * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -3148,7 +3518,21 @@ java.util.concurrent.Future getReport( * 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 getReportContent( + java.util.concurrent.Future getReport( + GetReportRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Downloads the specified report in the form of .xls or .pdf. + * + * @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 getReportContent( GetReportContentRequest request, com.oracle.bmc.responses.AsyncHandler handler); @@ -3428,6 +3812,88 @@ java.util.concurrent.Future getSqlFirewallPolicy( GetSqlFirewallPolicyRequest, GetSqlFirewallPolicyResponse> handler); + /** + * Gets the details of the specified subsetting policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getSubsettingPolicy( + GetSubsettingPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetSubsettingPolicyRequest, GetSubsettingPolicyResponse> + handler); + + /** + * Gets the details of the specified subsetting policy health report. + * + * @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 + getSubsettingPolicyHealthReport( + GetSubsettingPolicyHealthReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetSubsettingPolicyHealthReportRequest, + GetSubsettingPolicyHealthReportResponse> + handler); + + /** + * Gets the details of the specified subsetting report. + * + * @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 getSubsettingReport( + GetSubsettingReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetSubsettingReportRequest, GetSubsettingReportResponse> + handler); + + /** + * Gets the details of the specified subsetting rule. + * + * @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 getSubsettingRule( + GetSubsettingRuleRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetSubsettingRuleRequest, GetSubsettingRuleResponse> + handler); + + /** + * Gets the details of the specified referential relation in the subsetting policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getSubsettingSchemaRelation( + GetSubsettingSchemaRelationRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetSubsettingSchemaRelationRequest, GetSubsettingSchemaRelationResponse> + handler); + /** * Gets the details of target-alert policy association by its ID. * @@ -4800,6 +5266,42 @@ java.util.concurrent.Future listReferentialRel ListReferentialRelationsRequest, ListReferentialRelationsResponse> handler); + /** + * Retrieves a list of registration policies according to the specified query parameters. + * + * @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 listRegistrationPolicies( + ListRegistrationPoliciesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListRegistrationPoliciesRequest, ListRegistrationPoliciesResponse> + handler); + + /** + * Retrieves the OCIDs of target databases registered via the specified registration policy. + * Supports optional filtering by registration status (OPTIN/OPTOUT) and by target database + * OCID. + * + * @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 + listRegistrationPolicyTargetDatabases( + ListRegistrationPolicyTargetDatabasesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListRegistrationPolicyTargetDatabasesRequest, + ListRegistrationPolicyTargetDatabasesResponse> + handler); + /** * Gets a list of report definitions. The ListReportDefinitions operation returns only the * report definitions in the specified `compartmentId`. It also returns the seeded report @@ -5523,6 +6025,236 @@ java.util.concurrent.Future listSqlFirewallVi ListSqlFirewallViolationsRequest, ListSqlFirewallViolationsResponse> handler); + /** + * Gets a list of subsetted tables present in the specified subsetting report and based on the + * specified query parameters. + * + * @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 listSubsettedObjects( + ListSubsettedObjectsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettedObjectsRequest, ListSubsettedObjectsResponse> + handler); + + /** + * Gets consolidated subsetting analytics data based on the specified query parameters. If + * CompartmentIdInSubtreeQueryParam is specified as true, the behaviour is equivalent to + * accessLevel \"ACCESSIBLE\" by default. + * + * @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 listSubsettingAnalytics( + ListSubsettingAnalyticsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingAnalyticsRequest, ListSubsettingAnalyticsResponse> + handler); + + /** + * Gets a list of subsetting errors in a subsetting run based on the specified query parameters. + * + * @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 listSubsettingErrors( + ListSubsettingErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingErrorsRequest, ListSubsettingErrorsResponse> + handler); + + /** + * Gets a list of subsetting policies based on the specified query parameters. + * + * @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 listSubsettingPolicies( + ListSubsettingPoliciesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingPoliciesRequest, ListSubsettingPoliciesResponse> + handler); + + /** + * Gets a list of errors and warnings from a subsetting policy health check. + * + * @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 + listSubsettingPolicyHealthReportLogs( + ListSubsettingPolicyHealthReportLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingPolicyHealthReportLogsRequest, + ListSubsettingPolicyHealthReportLogsResponse> + handler); + + /** + * Gets a list of subsetting policy health reports based on the specified query parameters. + * + * @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 + listSubsettingPolicyHealthReports( + ListSubsettingPolicyHealthReportsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingPolicyHealthReportsRequest, + ListSubsettingPolicyHealthReportsResponse> + handler); + + /** + * Gets a list of subsetting reports based on the specified query parameters. + * + * @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 listSubsettingReports( + ListSubsettingReportsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingReportsRequest, ListSubsettingReportsResponse> + handler); + + /** + * Gets a list of objects of processing chain based on the specified query parameters generated + * for a subsetting rule. A processing chain is the relationship path that determines how a + * subsetting rule is applied across related tables. It is built from the selected subsetting + * table, subsetting rule, the chosen relatedTablesPropagation direction, and the referential + * relationships in the schema. + * + * @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 + listSubsettingRuleProcessingChainObjects( + ListSubsettingRuleProcessingChainObjectsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingRuleProcessingChainObjectsRequest, + ListSubsettingRuleProcessingChainObjectsResponse> + handler); + + /** + * Gets a list of subsetting rules present in the specified subsetting policy and based on the + * specified query parameters. A subsetting rule is the criteria that tells Data Safe which rows + * to retain from the selected starting table for a subsetting operation. It is the entry point + * for the subset. Data Safe uses this rule, along with the propagation setting, to determine + * the related rows that must also be retained across parent and child tables. + * + * @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 listSubsettingRules( + ListSubsettingRulesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingRulesRequest, ListSubsettingRulesResponse> + handler); + + /** + * Gets a list of objects/tables present in the specified subsetting policy schemas based on the + * specified query parameters. + * + * @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 listSubsettingSchemaObjects( + ListSubsettingSchemaObjectsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingSchemaObjectsRequest, ListSubsettingSchemaObjectsResponse> + handler); + + /** + * Gets a list of referential relations present in the specified subsetting policy schemas based + * on the specified query parameters. + * + * @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 + listSubsettingSchemaRelations( + ListSubsettingSchemaRelationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingSchemaRelationsRequest, + ListSubsettingSchemaRelationsResponse> + handler); + + /** + * Gets a list of subsetting schemas present in the specified subsetting policy and based on the + * specified query parameters. + * + * @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 listSubsettingSchemas( + ListSubsettingSchemasRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSubsettingSchemasRequest, ListSubsettingSchemasResponse> + handler); + + /** + * Gets table size estimates for the specified subsetting policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listTableEstimates( + ListTableEstimatesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListTableEstimatesRequest, ListTableEstimatesResponse> + handler); + /** * Returns a list of table metadata objects. * @@ -5902,6 +6634,21 @@ java.util.concurrent.Future listWorkRequests( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Updates the Data Safe target database Privileges. + * + * @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 managePrivileges( + ManagePrivilegesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Masks data using the specified masking policy. * @@ -6086,6 +6833,25 @@ java.util.concurrent.Future patchSqlFirewall PatchSqlFirewallAllowedSqlRequest, PatchSqlFirewallAllowedSqlResponse> handler); + /** + * Patches one or more subsetting rules in the specified subsetting policy. Use INSERT to add a + * new rule with CreateSubsettingRuleDetails as the patch value, and MERGE to update an existing + * rule with UpdateSubsettingRuleDetails as the patch value. To delete a rule, use the existing + * DeleteSubsettingRule API. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future patchSubsettingRules( + PatchSubsettingRulesRequest request, + com.oracle.bmc.responses.AsyncHandler< + PatchSubsettingRulesRequest, PatchSubsettingRulesResponse> + handler); + /** * Creates new target-alert policy associations that will be applied on the target database. * @@ -6460,6 +7226,20 @@ java.util.concurrent.Future stopSqlCollection( StopSqlCollectionRequest, StopSqlCollectionResponse> handler); + /** + * Subsets data using the specified subsetting policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future subsetData( + SubsetDataRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Suspend the given work request. Issuing a suspend does not guarantee of a immediate suspend * of the work request. @@ -6810,6 +7590,38 @@ java.util.concurrent.Future updatePeerTargetDa UpdatePeerTargetDatabaseRequest, UpdatePeerTargetDatabaseResponse> handler); + /** + * Updates one or more attributes of the specified processing chain object. + * + * @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 updateProcessingChainObject( + UpdateProcessingChainObjectRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateProcessingChainObjectRequest, UpdateProcessingChainObjectResponse> + handler); + + /** + * Updates one or more attributes of the specified registration policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateRegistrationPolicy( + UpdateRegistrationPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateRegistrationPolicyRequest, UpdateRegistrationPolicyResponse> + handler); + /** * Updates the specified report. Only tags can be updated. * @@ -7040,6 +7852,39 @@ java.util.concurrent.Future updateSqlFirewallPo UpdateSqlFirewallPolicyRequest, UpdateSqlFirewallPolicyResponse> handler); + /** + * Updates one or more attributes of the specified subsetting policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateSubsettingPolicy( + UpdateSubsettingPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateSubsettingPolicyRequest, UpdateSubsettingPolicyResponse> + handler); + + /** + * Updates one or more attributes of the specified subsetting rule. Note that updating the + * subsettingRuleEntry attribute replaces the currently assigned subsettingRuleEntry + * + * @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 updateSubsettingRule( + UpdateSubsettingRuleRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateSubsettingRuleRequest, UpdateSubsettingRuleResponse> + handler); + /** * Updates the specified target-alert policy association. * @@ -7181,4 +8026,24 @@ java.util.concurrent.Future uploadSensitiveDat com.oracle.bmc.responses.AsyncHandler< UploadSensitiveDataModelRequest, UploadSensitiveDataModelResponse> handler); + + /** + * Uploads a subsetting policy file (also called template) to update the specified subsetting + * policy. To create a new subsetting policy using a file, first use the CreateSubsettingPolicy + * operation to create an empty subsetting policy and then use this operation to upload the + * subsetting policy file. Note that the upload operation replaces the content of the specified + * subsetting policy, including all the subsetting rules, with the content of the file. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future uploadSubsettingPolicy( + UploadSubsettingPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + UploadSubsettingPolicyRequest, UploadSubsettingPolicyResponse> + handler); } 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 528f640ef7f..510a30fe66f 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 @@ -56,7 +56,7 @@ public class DataSafeAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncC LOG.warn( com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( "DataSafeAsyncClient", - "downloadCryptoAssessmentReport,downloadDiscoveryReport,downloadMaskingLog,downloadMaskingPolicy,downloadMaskingReport,downloadPrivilegeScript,downloadSecurityAssessmentReport,downloadSensitiveDataModel,downloadSensitiveTypesExport,downloadUserAssessmentReport,generateOnPremConnectorConfiguration,getReportContent")); + "downloadCryptoAssessmentReport,downloadDiscoveryReport,downloadMaskingLog,downloadMaskingPolicy,downloadMaskingReport,downloadPrivilegeScript,downloadSecurityAssessmentReport,downloadSensitiveDataModel,downloadSensitiveTypesExport,downloadSubsettingLog,downloadSubsettingPolicy,downloadSubsettingReport,downloadUserAssessmentReport,generateOnPremConnectorConfiguration,getReportContent")); } } @@ -1166,6 +1166,53 @@ public java.util.concurrent.Future changeAlertCo .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeRegistrationPolicyCompartment( + ChangeRegistrationPolicyCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeRegistrationPolicyCompartmentRequest, + ChangeRegistrationPolicyCompartmentResponse> + handler) { + + Validate.notBlank( + request.getRegistrationPolicyId(), "registrationPolicyId must not be blank"); + Objects.requireNonNull( + request.getChangeRegistrationPolicyCompartmentDetails(), + "changeRegistrationPolicyCompartmentDetails is required"); + + return clientCall(request, ChangeRegistrationPolicyCompartmentResponse::builder) + .logger(LOG, "changeRegistrationPolicyCompartment") + .serviceDetails( + "DataSafe", + "ChangeRegistrationPolicyCompartment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/ChangeRegistrationPolicyCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeRegistrationPolicyCompartmentRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendPathParam(request.getRegistrationPolicyId()) + .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() + .handleBody( + com.oracle.bmc.datasafe.model.RegistrationPolicy.class, + ChangeRegistrationPolicyCompartmentResponse.Builder::registrationPolicy) + .handleResponseHeaderString( + "etag", ChangeRegistrationPolicyCompartmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + ChangeRegistrationPolicyCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeRegistrationPolicyCompartmentResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeReportCompartment( ChangeReportCompartmentRequest request, @@ -1724,6 +1771,82 @@ public java.util.concurrent.Future changeRetention( .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeSubsettingPolicyCompartment( + ChangeSubsettingPolicyCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeSubsettingPolicyCompartmentRequest, + ChangeSubsettingPolicyCompartmentResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getChangeSubsettingPolicyCompartmentDetails(), + "changeSubsettingPolicyCompartmentDetails is required"); + + return clientCall(request, ChangeSubsettingPolicyCompartmentResponse::builder) + .logger(LOG, "changeSubsettingPolicyCompartment") + .serviceDetails( + "DataSafe", + "ChangeSubsettingPolicyCompartment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/ChangeSubsettingPolicyCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeSubsettingPolicyCompartmentRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeSubsettingPolicyCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeSubsettingPolicyHealthReportCompartment( + ChangeSubsettingPolicyHealthReportCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeSubsettingPolicyHealthReportCompartmentRequest, + ChangeSubsettingPolicyHealthReportCompartmentResponse> + handler) { + + Validate.notBlank( + request.getSubsettingPolicyHealthReportId(), + "subsettingPolicyHealthReportId must not be blank"); + Objects.requireNonNull( + request.getChangeSubsettingPolicyHealthReportCompartmentDetails(), + "changeSubsettingPolicyHealthReportCompartmentDetails is required"); + + return clientCall(request, ChangeSubsettingPolicyHealthReportCompartmentResponse::builder) + .logger(LOG, "changeSubsettingPolicyHealthReportCompartment") + .serviceDetails( + "DataSafe", + "ChangeSubsettingPolicyHealthReportCompartment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/ChangeSubsettingPolicyHealthReportCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeSubsettingPolicyHealthReportCompartmentRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicyHealthReports") + .appendPathParam(request.getSubsettingPolicyHealthReportId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeSubsettingPolicyHealthReportCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeTargetAlertPolicyAssociationCompartment( @@ -2573,6 +2696,44 @@ public java.util.concurrent.Future createRefe .callAsync(handler); } + @Override + public java.util.concurrent.Future createRegistrationPolicy( + CreateRegistrationPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateRegistrationPolicyRequest, CreateRegistrationPolicyResponse> + handler) { + Objects.requireNonNull( + request.getCreateRegistrationPolicyDetails(), + "createRegistrationPolicyDetails is required"); + + return clientCall(request, CreateRegistrationPolicyResponse::builder) + .logger(LOG, "createRegistrationPolicy") + .serviceDetails( + "DataSafe", + "CreateRegistrationPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/CreateRegistrationPolicy") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateRegistrationPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .accept("application/json") + .appendHeader("opc-dry-run", request.getOpcDryRun()) + .appendHeader("x-cluster-id", request.getXClusterId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datasafe.model.RegistrationPolicy.class, + CreateRegistrationPolicyResponse.Builder::registrationPolicy) + .handleResponseHeaderString("etag", CreateRegistrationPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateRegistrationPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateRegistrationPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createReportDefinition( CreateReportDefinitionRequest request, @@ -3030,6 +3191,117 @@ public java.util.concurrent.Future createSqlCollect .callAsync(handler); } + @Override + public java.util.concurrent.Future createSubsettingPolicy( + CreateSubsettingPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateSubsettingPolicyRequest, CreateSubsettingPolicyResponse> + handler) { + Objects.requireNonNull( + request.getCreateSubsettingPolicyDetails(), + "createSubsettingPolicyDetails is required"); + + return clientCall(request, CreateSubsettingPolicyResponse::builder) + .logger(LOG, "createSubsettingPolicy") + .serviceDetails( + "DataSafe", + "CreateSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/CreateSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicy.class, + CreateSubsettingPolicyResponse.Builder::subsettingPolicy) + .handleResponseHeaderString("etag", CreateSubsettingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateSubsettingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateSubsettingPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createSubsettingRule( + CreateSubsettingRuleRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateSubsettingRuleRequest, CreateSubsettingRuleResponse> + handler) { + Objects.requireNonNull( + request.getCreateSubsettingRuleDetails(), + "createSubsettingRuleDetails is required"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, CreateSubsettingRuleResponse::builder) + .logger(LOG, "createSubsettingRule") + .serviceDetails( + "DataSafe", + "CreateSubsettingRule", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/CreateSubsettingRule") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSubsettingRuleRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + CreateSubsettingRuleResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateSubsettingRuleResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createSubsettingSchemaRelation( + CreateSubsettingSchemaRelationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateSubsettingSchemaRelationRequest, + CreateSubsettingSchemaRelationResponse> + handler) { + Objects.requireNonNull( + request.getCreateSubsettingSchemaRelationDetails(), + "createSubsettingSchemaRelationDetails is required"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, CreateSubsettingSchemaRelationResponse::builder) + .logger(LOG, "createSubsettingSchemaRelation") + .serviceDetails( + "DataSafe", + "CreateSubsettingSchemaRelation", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaRelationSummary/CreateSubsettingSchemaRelation") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSubsettingSchemaRelationRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemaRelations") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + CreateSubsettingSchemaRelationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateSubsettingSchemaRelationResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createTargetAlertPolicyAssociation( @@ -3834,6 +4106,38 @@ public java.util.concurrent.Future deleteRefe .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteRegistrationPolicy( + DeleteRegistrationPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteRegistrationPolicyRequest, DeleteRegistrationPolicyResponse> + handler) { + + Validate.notBlank( + request.getRegistrationPolicyId(), "registrationPolicyId must not be blank"); + + return clientCall(request, DeleteRegistrationPolicyResponse::builder) + .logger(LOG, "deleteRegistrationPolicy") + .serviceDetails( + "DataSafe", + "DeleteRegistrationPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/DeleteRegistrationPolicy") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteRegistrationPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendPathParam(request.getRegistrationPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteRegistrationPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteRegistrationPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteReportDefinition( DeleteReportDefinitionRequest request, @@ -4288,166 +4592,339 @@ public java.util.concurrent.Future deleteSqlFir } @Override - public java.util.concurrent.Future - deleteTargetAlertPolicyAssociation( - DeleteTargetAlertPolicyAssociationRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteTargetAlertPolicyAssociationRequest, - DeleteTargetAlertPolicyAssociationResponse> - handler) { + public java.util.concurrent.Future deleteSubsettingPolicy( + DeleteSubsettingPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteSubsettingPolicyRequest, DeleteSubsettingPolicyResponse> + handler) { - Validate.notBlank( - request.getTargetAlertPolicyAssociationId(), - "targetAlertPolicyAssociationId must not be blank"); + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); - return clientCall(request, DeleteTargetAlertPolicyAssociationResponse::builder) - .logger(LOG, "deleteTargetAlertPolicyAssociation") + return clientCall(request, DeleteSubsettingPolicyResponse::builder) + .logger(LOG, "deleteSubsettingPolicy") .serviceDetails( "DataSafe", - "DeleteTargetAlertPolicyAssociation", - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetAlertPolicyAssociation/DeleteTargetAlertPolicyAssociation") + "DeleteSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/DeleteSubsettingPolicy") .method(com.oracle.bmc.http.client.Method.DELETE) - .requestBuilder(DeleteTargetAlertPolicyAssociationRequest::builder) + .requestBuilder(DeleteSubsettingPolicyRequest::builder) .basePath("/20181201") - .appendPathParam("targetAlertPolicyAssociations") - .appendPathParam(request.getTargetAlertPolicyAssociationId()) + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-work-request-id", - DeleteTargetAlertPolicyAssociationResponse.Builder::opcWorkRequestId) + DeleteSubsettingPolicyResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( - "opc-request-id", - DeleteTargetAlertPolicyAssociationResponse.Builder::opcRequestId) + "opc-request-id", DeleteSubsettingPolicyResponse.Builder::opcRequestId) .callAsync(handler); } @Override - public java.util.concurrent.Future deleteTargetDatabase( - DeleteTargetDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteTargetDatabaseRequest, DeleteTargetDatabaseResponse> - handler) { + public java.util.concurrent.Future + deleteSubsettingPolicyHealthReport( + DeleteSubsettingPolicyHealthReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteSubsettingPolicyHealthReportRequest, + DeleteSubsettingPolicyHealthReportResponse> + handler) { - Validate.notBlank(request.getTargetDatabaseId(), "targetDatabaseId must not be blank"); + Validate.notBlank( + request.getSubsettingPolicyHealthReportId(), + "subsettingPolicyHealthReportId must not be blank"); - return clientCall(request, DeleteTargetDatabaseResponse::builder) - .logger(LOG, "deleteTargetDatabase") + return clientCall(request, DeleteSubsettingPolicyHealthReportResponse::builder) + .logger(LOG, "deleteSubsettingPolicyHealthReport") .serviceDetails( "DataSafe", - "DeleteTargetDatabase", - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/DeleteTargetDatabase") + "DeleteSubsettingPolicyHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/DeleteSubsettingPolicyHealthReport") .method(com.oracle.bmc.http.client.Method.DELETE) - .requestBuilder(DeleteTargetDatabaseRequest::builder) + .requestBuilder(DeleteSubsettingPolicyHealthReportRequest::builder) .basePath("/20181201") - .appendPathParam("targetDatabases") - .appendPathParam(request.getTargetDatabaseId()) + .appendPathParam("subsettingPolicyHealthReports") + .appendPathParam(request.getSubsettingPolicyHealthReportId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-work-request-id", - DeleteTargetDatabaseResponse.Builder::opcWorkRequestId) + DeleteSubsettingPolicyHealthReportResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( - "opc-request-id", DeleteTargetDatabaseResponse.Builder::opcRequestId) + "opc-request-id", + DeleteSubsettingPolicyHealthReportResponse.Builder::opcRequestId) .callAsync(handler); } @Override - public java.util.concurrent.Future deleteTargetDatabaseGroup( - DeleteTargetDatabaseGroupRequest request, + public java.util.concurrent.Future deleteSubsettingReport( + DeleteSubsettingReportRequest request, final com.oracle.bmc.responses.AsyncHandler< - DeleteTargetDatabaseGroupRequest, DeleteTargetDatabaseGroupResponse> + DeleteSubsettingReportRequest, DeleteSubsettingReportResponse> handler) { - Validate.notBlank( - request.getTargetDatabaseGroupId(), "targetDatabaseGroupId must not be blank"); + Validate.notBlank(request.getSubsettingReportId(), "subsettingReportId must not be blank"); - return clientCall(request, DeleteTargetDatabaseGroupResponse::builder) - .logger(LOG, "deleteTargetDatabaseGroup") + return clientCall(request, DeleteSubsettingReportResponse::builder) + .logger(LOG, "deleteSubsettingReport") .serviceDetails( "DataSafe", - "DeleteTargetDatabaseGroup", - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabaseGroup/DeleteTargetDatabaseGroup") + "DeleteSubsettingReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingReport/DeleteSubsettingReport") .method(com.oracle.bmc.http.client.Method.DELETE) - .requestBuilder(DeleteTargetDatabaseGroupRequest::builder) + .requestBuilder(DeleteSubsettingReportRequest::builder) .basePath("/20181201") - .appendPathParam("targetDatabaseGroups") - .appendPathParam(request.getTargetDatabaseGroupId()) + .appendPathParam("subsettingReports") + .appendPathParam(request.getSubsettingReportId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-work-request-id", - DeleteTargetDatabaseGroupResponse.Builder::opcWorkRequestId) + DeleteSubsettingReportResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( - "opc-request-id", DeleteTargetDatabaseGroupResponse.Builder::opcRequestId) + "opc-request-id", DeleteSubsettingReportResponse.Builder::opcRequestId) .callAsync(handler); } @Override - public java.util.concurrent.Future deleteUnifiedAuditPolicy( - DeleteUnifiedAuditPolicyRequest request, + public java.util.concurrent.Future deleteSubsettingRule( + DeleteSubsettingRuleRequest request, final com.oracle.bmc.responses.AsyncHandler< - DeleteUnifiedAuditPolicyRequest, DeleteUnifiedAuditPolicyResponse> + DeleteSubsettingRuleRequest, DeleteSubsettingRuleResponse> handler) { - Validate.notBlank( - request.getUnifiedAuditPolicyId(), "unifiedAuditPolicyId must not be blank"); + Validate.notBlank(request.getSubsettingRuleKey(), "subsettingRuleKey must not be blank"); - return clientCall(request, DeleteUnifiedAuditPolicyResponse::builder) - .logger(LOG, "deleteUnifiedAuditPolicy") + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, DeleteSubsettingRuleResponse::builder) + .logger(LOG, "deleteSubsettingRule") .serviceDetails( "DataSafe", - "DeleteUnifiedAuditPolicy", - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicy/DeleteUnifiedAuditPolicy") + "DeleteSubsettingRule", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/DeleteSubsettingRule") .method(com.oracle.bmc.http.client.Method.DELETE) - .requestBuilder(DeleteUnifiedAuditPolicyRequest::builder) + .requestBuilder(DeleteSubsettingRuleRequest::builder) .basePath("/20181201") - .appendPathParam("unifiedAuditPolicies") - .appendPathParam(request.getUnifiedAuditPolicyId()) + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendPathParam(request.getSubsettingRuleKey()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-work-request-id", - DeleteUnifiedAuditPolicyResponse.Builder::opcWorkRequestId) + DeleteSubsettingRuleResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( - "opc-request-id", DeleteUnifiedAuditPolicyResponse.Builder::opcRequestId) + "opc-request-id", DeleteSubsettingRuleResponse.Builder::opcRequestId) .callAsync(handler); } @Override - public java.util.concurrent.Future - deleteUnifiedAuditPolicyDefinition( - DeleteUnifiedAuditPolicyDefinitionRequest request, + public java.util.concurrent.Future + deleteSubsettingSchemaRelation( + DeleteSubsettingSchemaRelationRequest request, final com.oracle.bmc.responses.AsyncHandler< - DeleteUnifiedAuditPolicyDefinitionRequest, - DeleteUnifiedAuditPolicyDefinitionResponse> + DeleteSubsettingSchemaRelationRequest, + DeleteSubsettingSchemaRelationResponse> handler) { Validate.notBlank( - request.getUnifiedAuditPolicyDefinitionId(), - "unifiedAuditPolicyDefinitionId must not be blank"); + request.getSubsettingSchemaRelationKey(), + "subsettingSchemaRelationKey must not be blank"); - return clientCall(request, DeleteUnifiedAuditPolicyDefinitionResponse::builder) - .logger(LOG, "deleteUnifiedAuditPolicyDefinition") + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, DeleteSubsettingSchemaRelationResponse::builder) + .logger(LOG, "deleteSubsettingSchemaRelation") .serviceDetails( "DataSafe", - "DeleteUnifiedAuditPolicyDefinition", - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicyDefinition/DeleteUnifiedAuditPolicyDefinition") + "DeleteSubsettingSchemaRelation", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaRelation/DeleteSubsettingSchemaRelation") .method(com.oracle.bmc.http.client.Method.DELETE) - .requestBuilder(DeleteUnifiedAuditPolicyDefinitionRequest::builder) + .requestBuilder(DeleteSubsettingSchemaRelationRequest::builder) .basePath("/20181201") - .appendPathParam("unifiedAuditPolicyDefinitions") - .appendPathParam(request.getUnifiedAuditPolicyDefinitionId()) + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemaRelations") + .appendPathParam(request.getSubsettingSchemaRelationKey()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-work-request-id", - DeleteUnifiedAuditPolicyDefinitionResponse.Builder::opcWorkRequestId) + DeleteSubsettingSchemaRelationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteSubsettingSchemaRelationResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteTargetAlertPolicyAssociation( + DeleteTargetAlertPolicyAssociationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteTargetAlertPolicyAssociationRequest, + DeleteTargetAlertPolicyAssociationResponse> + handler) { + + Validate.notBlank( + request.getTargetAlertPolicyAssociationId(), + "targetAlertPolicyAssociationId must not be blank"); + + return clientCall(request, DeleteTargetAlertPolicyAssociationResponse::builder) + .logger(LOG, "deleteTargetAlertPolicyAssociation") + .serviceDetails( + "DataSafe", + "DeleteTargetAlertPolicyAssociation", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetAlertPolicyAssociation/DeleteTargetAlertPolicyAssociation") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteTargetAlertPolicyAssociationRequest::builder) + .basePath("/20181201") + .appendPathParam("targetAlertPolicyAssociations") + .appendPathParam(request.getTargetAlertPolicyAssociationId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteTargetAlertPolicyAssociationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteTargetAlertPolicyAssociationResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteTargetDatabase( + DeleteTargetDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteTargetDatabaseRequest, DeleteTargetDatabaseResponse> + handler) { + + Validate.notBlank(request.getTargetDatabaseId(), "targetDatabaseId must not be blank"); + + return clientCall(request, DeleteTargetDatabaseResponse::builder) + .logger(LOG, "deleteTargetDatabase") + .serviceDetails( + "DataSafe", + "DeleteTargetDatabase", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/DeleteTargetDatabase") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteTargetDatabaseRequest::builder) + .basePath("/20181201") + .appendPathParam("targetDatabases") + .appendPathParam(request.getTargetDatabaseId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteTargetDatabaseResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteTargetDatabaseResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteTargetDatabaseGroup( + DeleteTargetDatabaseGroupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteTargetDatabaseGroupRequest, DeleteTargetDatabaseGroupResponse> + handler) { + + Validate.notBlank( + request.getTargetDatabaseGroupId(), "targetDatabaseGroupId must not be blank"); + + return clientCall(request, DeleteTargetDatabaseGroupResponse::builder) + .logger(LOG, "deleteTargetDatabaseGroup") + .serviceDetails( + "DataSafe", + "DeleteTargetDatabaseGroup", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabaseGroup/DeleteTargetDatabaseGroup") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteTargetDatabaseGroupRequest::builder) + .basePath("/20181201") + .appendPathParam("targetDatabaseGroups") + .appendPathParam(request.getTargetDatabaseGroupId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteTargetDatabaseGroupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteTargetDatabaseGroupResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteUnifiedAuditPolicy( + DeleteUnifiedAuditPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteUnifiedAuditPolicyRequest, DeleteUnifiedAuditPolicyResponse> + handler) { + + Validate.notBlank( + request.getUnifiedAuditPolicyId(), "unifiedAuditPolicyId must not be blank"); + + return clientCall(request, DeleteUnifiedAuditPolicyResponse::builder) + .logger(LOG, "deleteUnifiedAuditPolicy") + .serviceDetails( + "DataSafe", + "DeleteUnifiedAuditPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicy/DeleteUnifiedAuditPolicy") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteUnifiedAuditPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("unifiedAuditPolicies") + .appendPathParam(request.getUnifiedAuditPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteUnifiedAuditPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteUnifiedAuditPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteUnifiedAuditPolicyDefinition( + DeleteUnifiedAuditPolicyDefinitionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteUnifiedAuditPolicyDefinitionRequest, + DeleteUnifiedAuditPolicyDefinitionResponse> + handler) { + + Validate.notBlank( + request.getUnifiedAuditPolicyDefinitionId(), + "unifiedAuditPolicyDefinitionId must not be blank"); + + return clientCall(request, DeleteUnifiedAuditPolicyDefinitionResponse::builder) + .logger(LOG, "deleteUnifiedAuditPolicyDefinition") + .serviceDetails( + "DataSafe", + "DeleteUnifiedAuditPolicyDefinition", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicyDefinition/DeleteUnifiedAuditPolicyDefinition") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteUnifiedAuditPolicyDefinitionRequest::builder) + .basePath("/20181201") + .appendPathParam("unifiedAuditPolicyDefinitions") + .appendPathParam(request.getUnifiedAuditPolicyDefinitionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteUnifiedAuditPolicyDefinitionResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", DeleteUnifiedAuditPolicyDefinitionResponse.Builder::opcRequestId) @@ -4927,6 +5404,123 @@ public java.util.concurrent.Future downloadPriv .callAsync(handler); } + @Override + public java.util.concurrent.Future downloadSubsettingLog( + DownloadSubsettingLogRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadSubsettingLogRequest, DownloadSubsettingLogResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getDownloadSubsettingLogDetails(), + "downloadSubsettingLogDetails is required"); + + return clientCall(request, DownloadSubsettingLogResponse::builder) + .logger(LOG, "downloadSubsettingLog") + .serviceDetails( + "DataSafe", + "DownloadSubsettingLog", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/DownloadSubsettingLog") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DownloadSubsettingLogRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("downloadLog") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + java.io.InputStream.class, + DownloadSubsettingLogResponse.Builder::inputStream) + .handleResponseHeaderString("etag", DownloadSubsettingLogResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", DownloadSubsettingLogResponse.Builder::opcRequestId) + .handleResponseHeaderLong( + "content-length", DownloadSubsettingLogResponse.Builder::contentLength) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future downloadSubsettingPolicy( + DownloadSubsettingPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadSubsettingPolicyRequest, DownloadSubsettingPolicyResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getDownloadSubsettingPolicyDetails(), + "downloadSubsettingPolicyDetails is required"); + + return clientCall(request, DownloadSubsettingPolicyResponse::builder) + .logger(LOG, "downloadSubsettingPolicy") + .serviceDetails( + "DataSafe", + "DownloadSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/DownloadSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DownloadSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("download") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + java.io.InputStream.class, + DownloadSubsettingPolicyResponse.Builder::inputStream) + .handleResponseHeaderString("etag", DownloadSubsettingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", DownloadSubsettingPolicyResponse.Builder::opcRequestId) + .handleResponseHeaderLong( + "content-length", DownloadSubsettingPolicyResponse.Builder::contentLength) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future downloadSubsettingReport( + DownloadSubsettingReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadSubsettingReportRequest, DownloadSubsettingReportResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getDownloadSubsettingReportDetails(), + "downloadSubsettingReportDetails is required"); + + return clientCall(request, DownloadSubsettingReportResponse::builder) + .logger(LOG, "downloadSubsettingReport") + .serviceDetails( + "DataSafe", + "DownloadSubsettingReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/DownloadSubsettingReport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DownloadSubsettingReportRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("downloadReport") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + java.io.InputStream.class, + DownloadSubsettingReportResponse.Builder::inputStream) + .handleResponseHeaderString("etag", DownloadSubsettingReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", DownloadSubsettingReportResponse.Builder::opcRequestId) + .handleResponseHeaderLong( + "content-length", DownloadSubsettingReportResponse.Builder::contentLength) + .callAsync(handler); + } + @Override public java.util.concurrent.Future downloadUserAssessmentReport( @@ -5008,6 +5602,41 @@ public java.util.concurrent.Future downloadPriv .callAsync(handler); } + @Override + public java.util.concurrent.Future estimateTableSizes( + EstimateTableSizesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EstimateTableSizesRequest, EstimateTableSizesResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getEstimateTableSizesDetails(), "estimateTableSizesDetails is required"); + + return clientCall(request, EstimateTableSizesResponse::builder) + .logger(LOG, "estimateTableSizes") + .serviceDetails( + "DataSafe", + "EstimateTableSizes", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/EstimateTableSizes") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EstimateTableSizesRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("estimateTableSizes") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", EstimateTableSizesResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", EstimateTableSizesResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future generateCryptoAssessmentReport( @@ -5405,11 +6034,129 @@ public java.util.concurrent.Future generateSq } @Override - public java.util.concurrent.Future - generateUserAssessmentReport( - GenerateUserAssessmentReportRequest request, + public java.util.concurrent.Future + generateSubsettingHealthReport( + GenerateSubsettingHealthReportRequest request, final com.oracle.bmc.responses.AsyncHandler< - GenerateUserAssessmentReportRequest, + GenerateSubsettingHealthReportRequest, + GenerateSubsettingHealthReportResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getGenerateSubsettingHealthReportDetails(), + "generateSubsettingHealthReportDetails is required"); + + return clientCall(request, GenerateSubsettingHealthReportResponse::builder) + .logger(LOG, "generateSubsettingHealthReport") + .serviceDetails( + "DataSafe", + "GenerateSubsettingHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/GenerateSubsettingHealthReport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateSubsettingHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("generateHealthReport") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateSubsettingHealthReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateSubsettingHealthReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + generateSubsettingPolicyForDownload( + GenerateSubsettingPolicyForDownloadRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateSubsettingPolicyForDownloadRequest, + GenerateSubsettingPolicyForDownloadResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getGenerateSubsettingPolicyForDownloadDetails(), + "generateSubsettingPolicyForDownloadDetails is required"); + + return clientCall(request, GenerateSubsettingPolicyForDownloadResponse::builder) + .logger(LOG, "generateSubsettingPolicyForDownload") + .serviceDetails( + "DataSafe", + "GenerateSubsettingPolicyForDownload", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/GenerateSubsettingPolicyForDownload") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateSubsettingPolicyForDownloadRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("generatePolicyForDownload") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateSubsettingPolicyForDownloadResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateSubsettingPolicyForDownloadResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + generateSubsettingReportForDownload( + GenerateSubsettingReportForDownloadRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateSubsettingReportForDownloadRequest, + GenerateSubsettingReportForDownloadResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getGenerateSubsettingReportForDownloadDetails(), + "generateSubsettingReportForDownloadDetails is required"); + + return clientCall(request, GenerateSubsettingReportForDownloadResponse::builder) + .logger(LOG, "generateSubsettingReportForDownload") + .serviceDetails( + "DataSafe", + "GenerateSubsettingReportForDownload", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/GenerateSubsettingReportForDownload") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateSubsettingReportForDownloadRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("generateReportForDownload") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateSubsettingReportForDownloadResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateSubsettingReportForDownloadResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + generateUserAssessmentReport( + GenerateUserAssessmentReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateUserAssessmentReportRequest, GenerateUserAssessmentReportResponse> handler) { @@ -6479,6 +7226,38 @@ public java.util.concurrent.Future getReferentia .callAsync(handler); } + @Override + public java.util.concurrent.Future getRegistrationPolicy( + GetRegistrationPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetRegistrationPolicyRequest, GetRegistrationPolicyResponse> + handler) { + + Validate.notBlank( + request.getRegistrationPolicyId(), "registrationPolicyId must not be blank"); + + return clientCall(request, GetRegistrationPolicyResponse::builder) + .logger(LOG, "getRegistrationPolicy") + .serviceDetails( + "DataSafe", + "GetRegistrationPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/GetRegistrationPolicy") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetRegistrationPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendPathParam(request.getRegistrationPolicyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.RegistrationPolicy.class, + GetRegistrationPolicyResponse.Builder::registrationPolicy) + .handleResponseHeaderString("etag", GetRegistrationPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetRegistrationPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getReport( GetReportRequest request, @@ -7118,6 +7897,181 @@ public java.util.concurrent.Future getSqlFirewallP .callAsync(handler); } + @Override + public java.util.concurrent.Future getSubsettingPolicy( + GetSubsettingPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSubsettingPolicyRequest, GetSubsettingPolicyResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, GetSubsettingPolicyResponse::builder) + .logger(LOG, "getSubsettingPolicy") + .serviceDetails( + "DataSafe", + "GetSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/GetSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicy.class, + GetSubsettingPolicyResponse.Builder::subsettingPolicy) + .handleResponseHeaderString("etag", GetSubsettingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSubsettingPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getSubsettingPolicyHealthReport( + GetSubsettingPolicyHealthReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSubsettingPolicyHealthReportRequest, + GetSubsettingPolicyHealthReportResponse> + handler) { + + Validate.notBlank( + request.getSubsettingPolicyHealthReportId(), + "subsettingPolicyHealthReportId must not be blank"); + + return clientCall(request, GetSubsettingPolicyHealthReportResponse::builder) + .logger(LOG, "getSubsettingPolicyHealthReport") + .serviceDetails( + "DataSafe", + "GetSubsettingPolicyHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/GetSubsettingPolicyHealthReport") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSubsettingPolicyHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicyHealthReports") + .appendPathParam(request.getSubsettingPolicyHealthReportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport.class, + GetSubsettingPolicyHealthReportResponse.Builder + ::subsettingPolicyHealthReport) + .handleResponseHeaderString( + "etag", GetSubsettingPolicyHealthReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetSubsettingPolicyHealthReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getSubsettingReport( + GetSubsettingReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSubsettingReportRequest, GetSubsettingReportResponse> + handler) { + + Validate.notBlank(request.getSubsettingReportId(), "subsettingReportId must not be blank"); + + return clientCall(request, GetSubsettingReportResponse::builder) + .logger(LOG, "getSubsettingReport") + .serviceDetails( + "DataSafe", + "GetSubsettingReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingReport/GetSubsettingReport") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSubsettingReportRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingReports") + .appendPathParam(request.getSubsettingReportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingReport.class, + GetSubsettingReportResponse.Builder::subsettingReport) + .handleResponseHeaderString("etag", GetSubsettingReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSubsettingReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getSubsettingRule( + GetSubsettingRuleRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSubsettingRuleRequest, GetSubsettingRuleResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + Validate.notBlank(request.getSubsettingRuleKey(), "subsettingRuleKey must not be blank"); + + return clientCall(request, GetSubsettingRuleResponse::builder) + .logger(LOG, "getSubsettingRule") + .serviceDetails( + "DataSafe", + "GetSubsettingRule", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/GetSubsettingRule") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSubsettingRuleRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendPathParam(request.getSubsettingRuleKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingRule.class, + GetSubsettingRuleResponse.Builder::subsettingRule) + .handleResponseHeaderString("etag", GetSubsettingRuleResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSubsettingRuleResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getSubsettingSchemaRelation( + GetSubsettingSchemaRelationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSubsettingSchemaRelationRequest, + GetSubsettingSchemaRelationResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + Validate.notBlank( + request.getSubsettingSchemaRelationKey(), + "subsettingSchemaRelationKey must not be blank"); + + return clientCall(request, GetSubsettingSchemaRelationResponse::builder) + .logger(LOG, "getSubsettingSchemaRelation") + .serviceDetails( + "DataSafe", + "GetSubsettingSchemaRelation", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaRelation/GetSubsettingSchemaRelation") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSubsettingSchemaRelationRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemaRelations") + .appendPathParam(request.getSubsettingSchemaRelationKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingSchemaRelation.class, + GetSubsettingSchemaRelationResponse.Builder::subsettingSchemaRelation) + .handleResponseHeaderString( + "etag", GetSubsettingSchemaRelationResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSubsettingSchemaRelationResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getTargetAlertPolicyAssociation( @@ -10439,6 +11393,102 @@ public java.util.concurrent.Future listReferen .callAsync(handler); } + @Override + public java.util.concurrent.Future listRegistrationPolicies( + ListRegistrationPoliciesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListRegistrationPoliciesRequest, ListRegistrationPoliciesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListRegistrationPoliciesResponse::builder) + .logger(LOG, "listRegistrationPolicies") + .serviceDetails( + "DataSafe", + "ListRegistrationPolicies", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicySummary/ListRegistrationPolicies") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRegistrationPoliciesRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("enablementLevel", request.getEnablementLevel()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam( + "timeCreatedGreaterThanOrEqualTo", + request.getTimeCreatedGreaterThanOrEqualTo()) + .appendQueryParam("timeCreatedLessThan", request.getTimeCreatedLessThan()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("registrationPolicyId", request.getRegistrationPolicyId()) + .appendEnumQueryParam("connectionType", request.getConnectionType()) + .appendQueryParam("connectionId", request.getConnectionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.RegistrationPolicyCollection.class, + ListRegistrationPoliciesResponse.Builder::registrationPolicyCollection) + .handleResponseHeaderString( + "opc-request-id", ListRegistrationPoliciesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListRegistrationPoliciesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListRegistrationPoliciesResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listRegistrationPolicyTargetDatabases( + ListRegistrationPolicyTargetDatabasesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListRegistrationPolicyTargetDatabasesRequest, + ListRegistrationPolicyTargetDatabasesResponse> + handler) { + + Validate.notBlank( + request.getRegistrationPolicyId(), "registrationPolicyId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListRegistrationPolicyTargetDatabasesResponse::builder) + .logger(LOG, "listRegistrationPolicyTargetDatabases") + .serviceDetails( + "DataSafe", + "ListRegistrationPolicyTargetDatabases", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/ListRegistrationPolicyTargetDatabases") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRegistrationPolicyTargetDatabasesRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendPathParam(request.getRegistrationPolicyId()) + .appendPathParam("targetDatabases") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("targetDatabaseId", request.getTargetDatabaseId()) + .appendEnumQueryParam("membershipStatus", request.getMembershipStatus()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model + .RegistrationPolicyTargetDatabaseSummaryCollection.class, + ListRegistrationPolicyTargetDatabasesResponse.Builder + ::registrationPolicyTargetDatabaseSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", + ListRegistrationPolicyTargetDatabasesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListRegistrationPolicyTargetDatabasesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listReportDefinitions( ListReportDefinitionsRequest request, @@ -11913,111 +12963,728 @@ public java.util.concurrent.Future listSqlFirew ::sqlFirewallPolicyAnalyticsCollection) .handleResponseHeaderString( "opc-request-id", - ListSqlFirewallPolicyAnalyticsResponse.Builder::opcRequestId) + ListSqlFirewallPolicyAnalyticsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListSqlFirewallPolicyAnalyticsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListSqlFirewallPolicyAnalyticsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listSqlFirewallViolationAnalytics( + ListSqlFirewallViolationAnalyticsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSqlFirewallViolationAnalyticsRequest, + ListSqlFirewallViolationAnalyticsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSqlFirewallViolationAnalyticsResponse::builder) + .logger(LOG, "listSqlFirewallViolationAnalytics") + .serviceDetails( + "DataSafe", + "ListSqlFirewallViolationAnalytics", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolationAnalytics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSqlFirewallViolationAnalyticsRequest::builder) + .basePath("/20181201") + .appendPathParam("sqlFirewallViolationAnalytics") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("timeStarted", request.getTimeStarted()) + .appendQueryParam("timeEnded", request.getTimeEnded()) + .appendQueryParam("queryTimeZone", request.getQueryTimeZone()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("scimQuery", request.getScimQuery()) + .appendListQueryParam( + "summaryField", + request.getSummaryField(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "groupBy", + request.getGroupBy(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleBody( + com.oracle.bmc.datasafe.model.SqlFirewallViolationAnalyticsCollection.class, + ListSqlFirewallViolationAnalyticsResponse.Builder + ::sqlFirewallViolationAnalyticsCollection) + .handleResponseHeaderString( + "opc-request-id", + ListSqlFirewallViolationAnalyticsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListSqlFirewallViolationAnalyticsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListSqlFirewallViolationAnalyticsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listSqlFirewallViolations( + ListSqlFirewallViolationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSqlFirewallViolationsRequest, ListSqlFirewallViolationsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSqlFirewallViolationsResponse::builder) + .logger(LOG, "listSqlFirewallViolations") + .serviceDetails( + "DataSafe", + "ListSqlFirewallViolations", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSqlFirewallViolationsRequest::builder) + .basePath("/20181201") + .appendPathParam("sqlFirewallViolations") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("scimQuery", request.getScimQuery()) + .accept("application/json, application/xml") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SqlFirewallViolationsCollection.class, + ListSqlFirewallViolationsResponse.Builder::sqlFirewallViolationsCollection) + .handleResponseHeaderString( + "opc-request-id", ListSqlFirewallViolationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSqlFirewallViolationsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSqlFirewallViolationsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listSubsettedObjects( + ListSubsettedObjectsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettedObjectsRequest, ListSubsettedObjectsResponse> + handler) { + + Validate.notBlank(request.getSubsettingReportId(), "subsettingReportId must not be blank"); + + return clientCall(request, ListSubsettedObjectsResponse::builder) + .logger(LOG, "listSubsettedObjects") + .serviceDetails( + "DataSafe", + "ListSubsettedObjects", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettedObjectSummary/ListSubsettedObjects") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettedObjectsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingReports") + .appendPathParam(request.getSubsettingReportId()) + .appendPathParam("subsettedObjects") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "schemaName", + request.getSchemaName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "objectName", + request.getObjectName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettedObjectCollection.class, + ListSubsettedObjectsResponse.Builder::subsettedObjectCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettedObjectsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettedObjectsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettedObjectsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listSubsettingAnalytics( + ListSubsettingAnalyticsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingAnalyticsRequest, ListSubsettingAnalyticsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSubsettingAnalyticsResponse::builder) + .logger(LOG, "listSubsettingAnalytics") + .serviceDetails( + "DataSafe", + "ListSubsettingAnalytics", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/ListSubsettingAnalytics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingAnalyticsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingAnalytics") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("groupBy", request.getGroupBy()) + .appendQueryParam("targetId", request.getTargetId()) + .appendQueryParam("subsettingPolicyId", request.getSubsettingPolicyId()) + .appendQueryParam("targetDatabaseGroupId", request.getTargetDatabaseGroupId()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam( + "timeCreatedGreaterThanOrEqualTo", + request.getTimeCreatedGreaterThanOrEqualTo()) + .appendQueryParam("timeCreatedLessThan", request.getTimeCreatedLessThan()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingAnalyticsCollection.class, + ListSubsettingAnalyticsResponse.Builder::subsettingAnalyticsCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingAnalyticsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingAnalyticsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingAnalyticsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listSubsettingErrors( + ListSubsettingErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingErrorsRequest, ListSubsettingErrorsResponse> + handler) { + + Validate.notBlank(request.getSubsettingReportId(), "subsettingReportId must not be blank"); + + return clientCall(request, ListSubsettingErrorsResponse::builder) + .logger(LOG, "listSubsettingErrors") + .serviceDetails( + "DataSafe", + "ListSubsettingErrors", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingErrorSummary/ListSubsettingErrors") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingErrorsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingReports") + .appendPathParam(request.getSubsettingReportId()) + .appendPathParam("subsettingErrors") + .appendEnumQueryParam("stepName", request.getStepName()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingErrorCollection.class, + ListSubsettingErrorsResponse.Builder::subsettingErrorCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingErrorsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingErrorsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listSubsettingPolicies( + ListSubsettingPoliciesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingPoliciesRequest, ListSubsettingPoliciesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSubsettingPoliciesResponse::builder) + .logger(LOG, "listSubsettingPolicies") + .serviceDetails( + "DataSafe", + "ListSubsettingPolicies", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/ListSubsettingPolicies") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingPoliciesRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendQueryParam("subsettingPolicyId", request.getSubsettingPolicyId()) + .appendQueryParam("maskingPolicyId", request.getMaskingPolicyId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("sensitiveDataModelId", request.getSensitiveDataModelId()) + .appendQueryParam("targetId", request.getTargetId()) + .appendQueryParam( + "timeCreatedGreaterThanOrEqualTo", + request.getTimeCreatedGreaterThanOrEqualTo()) + .appendQueryParam("timeCreatedLessThan", request.getTimeCreatedLessThan()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicyCollection.class, + ListSubsettingPoliciesResponse.Builder::subsettingPolicyCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingPoliciesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingPoliciesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingPoliciesResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listSubsettingPolicyHealthReportLogs( + ListSubsettingPolicyHealthReportLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingPolicyHealthReportLogsRequest, + ListSubsettingPolicyHealthReportLogsResponse> + handler) { + + Validate.notBlank( + request.getSubsettingPolicyHealthReportId(), + "subsettingPolicyHealthReportId must not be blank"); + + return clientCall(request, ListSubsettingPolicyHealthReportLogsResponse::builder) + .logger(LOG, "listSubsettingPolicyHealthReportLogs") + .serviceDetails( + "DataSafe", + "ListSubsettingPolicyHealthReportLogs", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/ListSubsettingPolicyHealthReportLogs") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingPolicyHealthReportLogsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicyHealthReports") + .appendPathParam(request.getSubsettingPolicyHealthReportId()) + .appendPathParam("logs") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("messageType", request.getMessageType()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogCollection + .class, + ListSubsettingPolicyHealthReportLogsResponse.Builder + ::subsettingPolicyHealthReportLogCollection) + .handleResponseHeaderString( + "opc-request-id", + ListSubsettingPolicyHealthReportLogsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListSubsettingPolicyHealthReportLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListSubsettingPolicyHealthReportLogsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listSubsettingPolicyHealthReports( + ListSubsettingPolicyHealthReportsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingPolicyHealthReportsRequest, + ListSubsettingPolicyHealthReportsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSubsettingPolicyHealthReportsResponse::builder) + .logger(LOG, "listSubsettingPolicyHealthReports") + .serviceDetails( + "DataSafe", + "ListSubsettingPolicyHealthReports", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/ListSubsettingPolicyHealthReports") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingPolicyHealthReportsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicyHealthReports") + .appendQueryParam( + "subsettingPolicyHealthReportId", + request.getSubsettingPolicyHealthReportId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("targetId", request.getTargetId()) + .appendQueryParam("subsettingPolicyId", request.getSubsettingPolicyId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportCollection.class, + ListSubsettingPolicyHealthReportsResponse.Builder + ::subsettingPolicyHealthReportCollection) + .handleResponseHeaderString( + "opc-request-id", + ListSubsettingPolicyHealthReportsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListSubsettingPolicyHealthReportsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListSubsettingPolicyHealthReportsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listSubsettingReports( + ListSubsettingReportsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingReportsRequest, ListSubsettingReportsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSubsettingReportsResponse::builder) + .logger(LOG, "listSubsettingReports") + .serviceDetails( + "DataSafe", + "ListSubsettingReports", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingReport/ListSubsettingReports") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingReportsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingReports") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("subsettingPolicyId", request.getSubsettingPolicyId()) + .appendQueryParam("targetId", request.getTargetId()) + .appendQueryParam("targetDatabaseGroupId", request.getTargetDatabaseGroupId()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingReportCollection.class, + ListSubsettingReportsResponse.Builder::subsettingReportCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingReportsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingReportsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingReportsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listSubsettingRuleProcessingChainObjects( + ListSubsettingRuleProcessingChainObjectsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingRuleProcessingChainObjectsRequest, + ListSubsettingRuleProcessingChainObjectsResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + Validate.notBlank(request.getSubsettingRuleKey(), "subsettingRuleKey must not be blank"); + + return clientCall(request, ListSubsettingRuleProcessingChainObjectsResponse::builder) + .logger(LOG, "listSubsettingRuleProcessingChainObjects") + .serviceDetails( + "DataSafe", + "ListSubsettingRuleProcessingChainObjects", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRuleProcessingChainObjectSummary/ListSubsettingRuleProcessingChainObjects") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingRuleProcessingChainObjectsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendPathParam(request.getSubsettingRuleKey()) + .appendPathParam("processingChainObjects") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("isEnabledForProcessing", request.getIsEnabledForProcessing()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectsCollection + .class, + ListSubsettingRuleProcessingChainObjectsResponse.Builder + ::subsettingRuleProcessingChainObjectsCollection) + .handleResponseHeaderString( + "opc-request-id", + ListSubsettingRuleProcessingChainObjectsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListSubsettingRuleProcessingChainObjectsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListSubsettingRuleProcessingChainObjectsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listSubsettingRules( + ListSubsettingRulesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingRulesRequest, ListSubsettingRulesResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, ListSubsettingRulesResponse::builder) + .logger(LOG, "listSubsettingRules") + .serviceDetails( + "DataSafe", + "ListSubsettingRules", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/ListSubsettingRules") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingRulesRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "schemaName", + request.getSchemaName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "objectName", + request.getObjectName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingRuleCollection.class, + ListSubsettingRulesResponse.Builder::subsettingRuleCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingRulesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingRulesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingRulesResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listSubsettingSchemaObjects( + ListSubsettingSchemaObjectsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingSchemaObjectsRequest, + ListSubsettingSchemaObjectsResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, ListSubsettingSchemaObjectsResponse::builder) + .logger(LOG, "listSubsettingSchemaObjects") + .serviceDetails( + "DataSafe", + "ListSubsettingSchemaObjects", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaObjectSummary/ListSubsettingSchemaObjects") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingSchemaObjectsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemaObjects") + .appendListQueryParam( + "schemaName", + request.getSchemaName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "objectName", + request.getObjectName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingSchemaObjectCollection.class, + ListSubsettingSchemaObjectsResponse.Builder + ::subsettingSchemaObjectCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingSchemaObjectsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingSchemaObjectsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingSchemaObjectsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listSubsettingSchemaRelations( + ListSubsettingSchemaRelationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingSchemaRelationsRequest, + ListSubsettingSchemaRelationsResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, ListSubsettingSchemaRelationsResponse::builder) + .logger(LOG, "listSubsettingSchemaRelations") + .serviceDetails( + "DataSafe", + "ListSubsettingSchemaRelations", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaRelationSummary/ListSubsettingSchemaRelations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingSchemaRelationsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemaRelations") + .appendListQueryParam( + "schemaName", + request.getSchemaName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "objectName", + request.getObjectName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("relationType", request.getRelationType()) + .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.datasafe.model.SubsettingSchemaRelationCollection.class, + ListSubsettingSchemaRelationsResponse.Builder + ::subsettingSchemaRelationCollection) + .handleResponseHeaderString( + "opc-request-id", + ListSubsettingSchemaRelationsResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", - ListSqlFirewallPolicyAnalyticsResponse.Builder::opcNextPage) + "opc-next-page", ListSubsettingSchemaRelationsResponse.Builder::opcNextPage) .handleResponseHeaderString( - "opc-prev-page", - ListSqlFirewallPolicyAnalyticsResponse.Builder::opcPrevPage) + "opc-prev-page", ListSubsettingSchemaRelationsResponse.Builder::opcPrevPage) .callAsync(handler); } @Override - public java.util.concurrent.Future - listSqlFirewallViolationAnalytics( - ListSqlFirewallViolationAnalyticsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListSqlFirewallViolationAnalyticsRequest, - ListSqlFirewallViolationAnalyticsResponse> - handler) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + public java.util.concurrent.Future listSubsettingSchemas( + ListSubsettingSchemasRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSubsettingSchemasRequest, ListSubsettingSchemasResponse> + handler) { - return clientCall(request, ListSqlFirewallViolationAnalyticsResponse::builder) - .logger(LOG, "listSqlFirewallViolationAnalytics") + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, ListSubsettingSchemasResponse::builder) + .logger(LOG, "listSubsettingSchemas") .serviceDetails( "DataSafe", - "ListSqlFirewallViolationAnalytics", - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolationAnalytics") + "ListSubsettingSchemas", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaCollection/ListSubsettingSchemas") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListSqlFirewallViolationAnalyticsRequest::builder) + .requestBuilder(ListSubsettingSchemasRequest::builder) .basePath("/20181201") - .appendPathParam("sqlFirewallViolationAnalytics") - .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) - .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemas") .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) - .appendQueryParam("timeStarted", request.getTimeStarted()) - .appendQueryParam("timeEnded", request.getTimeEnded()) - .appendQueryParam("queryTimeZone", request.getQueryTimeZone()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) - .appendQueryParam("scimQuery", request.getScimQuery()) - .appendListQueryParam( - "summaryField", - request.getSummaryField(), - com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendListQueryParam( - "groupBy", - request.getGroupBy(), + "schemaName", + request.getSchemaName(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isDerivedSchema", request.getIsDerivedSchema()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) .handleBody( - com.oracle.bmc.datasafe.model.SqlFirewallViolationAnalyticsCollection.class, - ListSqlFirewallViolationAnalyticsResponse.Builder - ::sqlFirewallViolationAnalyticsCollection) + com.oracle.bmc.datasafe.model.SubsettingSchemaCollection.class, + ListSubsettingSchemasResponse.Builder::subsettingSchemaCollection) .handleResponseHeaderString( - "opc-request-id", - ListSqlFirewallViolationAnalyticsResponse.Builder::opcRequestId) + "opc-request-id", ListSubsettingSchemasResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", - ListSqlFirewallViolationAnalyticsResponse.Builder::opcNextPage) + "opc-next-page", ListSubsettingSchemasResponse.Builder::opcNextPage) .handleResponseHeaderString( - "opc-prev-page", - ListSqlFirewallViolationAnalyticsResponse.Builder::opcPrevPage) + "opc-prev-page", ListSubsettingSchemasResponse.Builder::opcPrevPage) .callAsync(handler); } @Override - public java.util.concurrent.Future listSqlFirewallViolations( - ListSqlFirewallViolationsRequest request, + public java.util.concurrent.Future listTableEstimates( + ListTableEstimatesRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListSqlFirewallViolationsRequest, ListSqlFirewallViolationsResponse> + ListTableEstimatesRequest, ListTableEstimatesResponse> handler) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - return clientCall(request, ListSqlFirewallViolationsResponse::builder) - .logger(LOG, "listSqlFirewallViolations") + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, ListTableEstimatesResponse::builder) + .logger(LOG, "listTableEstimates") .serviceDetails( "DataSafe", - "ListSqlFirewallViolations", - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolations") + "ListTableEstimates", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TableEstimateSummary/ListTableEstimates") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListSqlFirewallViolationsRequest::builder) + .requestBuilder(ListTableEstimatesRequest::builder) .basePath("/20181201") - .appendPathParam("sqlFirewallViolations") - .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) - .appendQueryParam("limit", request.getLimit()) - .appendQueryParam("page", request.getPage()) - .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("tableEstimates") + .appendListQueryParam( + "schemaName", + request.getSchemaName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "objectName", + request.getObjectName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("targetId", request.getTargetId()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) - .appendQueryParam("scimQuery", request.getScimQuery()) - .accept("application/json, application/xml") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( - com.oracle.bmc.datasafe.model.SqlFirewallViolationsCollection.class, - ListSqlFirewallViolationsResponse.Builder::sqlFirewallViolationsCollection) + com.oracle.bmc.datasafe.model.TableEstimateCollection.class, + ListTableEstimatesResponse.Builder::tableEstimateCollection) .handleResponseHeaderString( - "opc-request-id", ListSqlFirewallViolationsResponse.Builder::opcRequestId) + "opc-request-id", ListTableEstimatesResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListSqlFirewallViolationsResponse.Builder::opcNextPage) + "opc-next-page", ListTableEstimatesResponse.Builder::opcNextPage) .handleResponseHeaderString( - "opc-prev-page", ListSqlFirewallViolationsResponse.Builder::opcPrevPage) + "opc-prev-page", ListTableEstimatesResponse.Builder::opcPrevPage) .callAsync(handler); } @@ -12241,6 +13908,7 @@ public java.util.concurrent.Future listTargetDataba .appendPathParam("targetDatabases") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("associatedResourceId", request.getAssociatedResourceId()) + .appendQueryParam("enablementResourceOcid", request.getEnablementResourceOcid()) .appendQueryParam("targetDatabaseId", request.getTargetDatabaseId()) .appendQueryParam("displayName", request.getDisplayName()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) @@ -12844,6 +14512,42 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future managePrivileges( + ManagePrivilegesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ManagePrivilegesRequest, ManagePrivilegesResponse> + handler) { + + Validate.notBlank(request.getTargetDatabaseId(), "targetDatabaseId must not be blank"); + Objects.requireNonNull( + request.getManagePrivilegesDetails(), "managePrivilegesDetails is required"); + + return clientCall(request, ManagePrivilegesResponse::builder) + .logger(LOG, "managePrivileges") + .serviceDetails( + "DataSafe", + "ManagePrivileges", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/ManagePrivileges") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ManagePrivilegesRequest::builder) + .basePath("/20181201") + .appendPathParam("targetDatabases") + .appendPathParam(request.getTargetDatabaseId()) + .appendPathParam("actions") + .appendPathParam("managePrivileges") + .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", ManagePrivilegesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", ManagePrivilegesResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future maskData( MaskDataRequest request, @@ -13234,6 +14938,42 @@ public java.util.concurrent.Future patchSensitive .callAsync(handler); } + @Override + public java.util.concurrent.Future patchSubsettingRules( + PatchSubsettingRulesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PatchSubsettingRulesRequest, PatchSubsettingRulesResponse> + handler) { + Objects.requireNonNull( + request.getPatchSubsettingRulesDetails(), + "patchSubsettingRulesDetails is required"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, PatchSubsettingRulesResponse::builder) + .logger(LOG, "patchSubsettingRules") + .serviceDetails( + "DataSafe", + "PatchSubsettingRules", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/PatchSubsettingRules") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchSubsettingRulesRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + PatchSubsettingRulesResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", PatchSubsettingRulesResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future patchTargetAlertPolicyAssociation( @@ -14018,6 +15758,39 @@ public java.util.concurrent.Future stopSqlCollection( .callAsync(handler); } + @Override + public java.util.concurrent.Future subsetData( + SubsetDataRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull(request.getSubsetDataDetails(), "subsetDataDetails is required"); + + return clientCall(request, SubsetDataResponse::builder) + .logger(LOG, "subsetData") + .serviceDetails( + "DataSafe", + "SubsetData", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/SubsetData") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SubsetDataRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("subset") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", SubsetDataResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", SubsetDataResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future suspendWorkRequest( SuspendWorkRequestRequest request, @@ -14778,6 +16551,94 @@ public java.util.concurrent.Future updatePeerT .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateProcessingChainObject( + UpdateProcessingChainObjectRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateProcessingChainObjectRequest, + UpdateProcessingChainObjectResponse> + handler) { + + Validate.notBlank( + request.getProcessingChainObjectKey(), + "processingChainObjectKey must not be blank"); + + Validate.notBlank(request.getSubsettingRuleKey(), "subsettingRuleKey must not be blank"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateProcessingChainObjectDetails(), + "updateProcessingChainObjectDetails is required"); + + return clientCall(request, UpdateProcessingChainObjectResponse::builder) + .logger(LOG, "updateProcessingChainObject") + .serviceDetails( + "DataSafe", + "UpdateProcessingChainObject", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRuleProcessingChainObjectSummary/UpdateProcessingChainObject") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateProcessingChainObjectRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendPathParam(request.getSubsettingRuleKey()) + .appendPathParam("processingChainObjects") + .appendPathParam(request.getProcessingChainObjectKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateProcessingChainObjectResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateProcessingChainObjectResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateRegistrationPolicy( + UpdateRegistrationPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateRegistrationPolicyRequest, UpdateRegistrationPolicyResponse> + handler) { + + Validate.notBlank( + request.getRegistrationPolicyId(), "registrationPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateRegistrationPolicyDetails(), + "updateRegistrationPolicyDetails is required"); + + return clientCall(request, UpdateRegistrationPolicyResponse::builder) + .logger(LOG, "updateRegistrationPolicy") + .serviceDetails( + "DataSafe", + "UpdateRegistrationPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/UpdateRegistrationPolicy") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateRegistrationPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendPathParam(request.getRegistrationPolicyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.datasafe.model.RegistrationPolicy.class, + UpdateRegistrationPolicyResponse.Builder::registrationPolicy) + .handleResponseHeaderString("etag", UpdateRegistrationPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateRegistrationPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateRegistrationPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateReport( UpdateReportRequest request, @@ -15289,6 +17150,80 @@ public java.util.concurrent.Future updateSqlFir .callAsync(handler); } + @Override + public java.util.concurrent.Future updateSubsettingPolicy( + UpdateSubsettingPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateSubsettingPolicyRequest, UpdateSubsettingPolicyResponse> + handler) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateSubsettingPolicyDetails(), + "updateSubsettingPolicyDetails is required"); + + return clientCall(request, UpdateSubsettingPolicyResponse::builder) + .logger(LOG, "updateSubsettingPolicy") + .serviceDetails( + "DataSafe", + "UpdateSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/UpdateSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSubsettingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateSubsettingPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateSubsettingRule( + UpdateSubsettingRuleRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateSubsettingRuleRequest, UpdateSubsettingRuleResponse> + handler) { + + Validate.notBlank(request.getSubsettingRuleKey(), "subsettingRuleKey must not be blank"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateSubsettingRuleDetails(), + "updateSubsettingRuleDetails is required"); + + return clientCall(request, UpdateSubsettingRuleResponse::builder) + .logger(LOG, "updateSubsettingRule") + .serviceDetails( + "DataSafe", + "UpdateSubsettingRule", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/UpdateSubsettingRule") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSubsettingRuleRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendPathParam(request.getSubsettingRuleKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSubsettingRuleResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateSubsettingRuleResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateTargetAlertPolicyAssociation( @@ -15589,6 +17524,44 @@ public java.util.concurrent.Future uploadSensi .callAsync(handler); } + @Override + public java.util.concurrent.Future uploadSubsettingPolicy( + UploadSubsettingPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UploadSubsettingPolicyRequest, UploadSubsettingPolicyResponse> + handler) { + Objects.requireNonNull( + request.getUploadSubsettingPolicyDetails(), + "uploadSubsettingPolicyDetails is required"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, UploadSubsettingPolicyResponse::builder) + .logger(LOG, "uploadSubsettingPolicy") + .serviceDetails( + "DataSafe", + "UploadSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/UploadSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(UploadSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("upload") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBinaryRequestBody() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UploadSubsettingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UploadSubsettingPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + /** * Create a new client instance. * 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 720232fcf9c..1f2edbd4b02 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 @@ -71,7 +71,7 @@ public class DataSafeClient extends com.oracle.bmc.http.internal.BaseSyncClient LOG.warn( com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( "DataSafeClient", - "downloadCryptoAssessmentReport,downloadDiscoveryReport,downloadMaskingLog,downloadMaskingPolicy,downloadMaskingReport,downloadPrivilegeScript,downloadSecurityAssessmentReport,downloadSensitiveDataModel,downloadSensitiveTypesExport,downloadUserAssessmentReport,generateOnPremConnectorConfiguration,getReportContent")); + "downloadCryptoAssessmentReport,downloadDiscoveryReport,downloadMaskingLog,downloadMaskingPolicy,downloadMaskingReport,downloadPrivilegeScript,downloadSecurityAssessmentReport,downloadSensitiveDataModel,downloadSensitiveTypesExport,downloadSubsettingLog,downloadSubsettingPolicy,downloadSubsettingReport,downloadUserAssessmentReport,generateOnPremConnectorConfiguration,getReportContent")); } } @@ -1100,6 +1100,49 @@ public ChangeOnPremConnectorCompartmentResponse changeOnPremConnectorCompartment .callSync(); } + @Override + public ChangeRegistrationPolicyCompartmentResponse changeRegistrationPolicyCompartment( + ChangeRegistrationPolicyCompartmentRequest request) { + + Validate.notBlank( + request.getRegistrationPolicyId(), "registrationPolicyId must not be blank"); + Objects.requireNonNull( + request.getChangeRegistrationPolicyCompartmentDetails(), + "changeRegistrationPolicyCompartmentDetails is required"); + + return clientCall(request, ChangeRegistrationPolicyCompartmentResponse::builder) + .logger(LOG, "changeRegistrationPolicyCompartment") + .serviceDetails( + "DataSafe", + "ChangeRegistrationPolicyCompartment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/ChangeRegistrationPolicyCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeRegistrationPolicyCompartmentRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendPathParam(request.getRegistrationPolicyId()) + .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() + .handleBody( + com.oracle.bmc.datasafe.model.RegistrationPolicy.class, + ChangeRegistrationPolicyCompartmentResponse.Builder::registrationPolicy) + .handleResponseHeaderString( + "etag", ChangeRegistrationPolicyCompartmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + ChangeRegistrationPolicyCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeRegistrationPolicyCompartmentResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public ChangeReportCompartmentResponse changeReportCompartment( ChangeReportCompartmentRequest request) { @@ -1607,6 +1650,75 @@ public ChangeSqlFirewallPolicyCompartmentResponse changeSqlFirewallPolicyCompart .callSync(); } + @Override + public ChangeSubsettingPolicyCompartmentResponse changeSubsettingPolicyCompartment( + ChangeSubsettingPolicyCompartmentRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getChangeSubsettingPolicyCompartmentDetails(), + "changeSubsettingPolicyCompartmentDetails is required"); + + return clientCall(request, ChangeSubsettingPolicyCompartmentResponse::builder) + .logger(LOG, "changeSubsettingPolicyCompartment") + .serviceDetails( + "DataSafe", + "ChangeSubsettingPolicyCompartment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/ChangeSubsettingPolicyCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeSubsettingPolicyCompartmentRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeSubsettingPolicyCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ChangeSubsettingPolicyHealthReportCompartmentResponse + changeSubsettingPolicyHealthReportCompartment( + ChangeSubsettingPolicyHealthReportCompartmentRequest request) { + + Validate.notBlank( + request.getSubsettingPolicyHealthReportId(), + "subsettingPolicyHealthReportId must not be blank"); + Objects.requireNonNull( + request.getChangeSubsettingPolicyHealthReportCompartmentDetails(), + "changeSubsettingPolicyHealthReportCompartmentDetails is required"); + + return clientCall(request, ChangeSubsettingPolicyHealthReportCompartmentResponse::builder) + .logger(LOG, "changeSubsettingPolicyHealthReportCompartment") + .serviceDetails( + "DataSafe", + "ChangeSubsettingPolicyHealthReportCompartment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/ChangeSubsettingPolicyHealthReportCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeSubsettingPolicyHealthReportCompartmentRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicyHealthReports") + .appendPathParam(request.getSubsettingPolicyHealthReportId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeSubsettingPolicyHealthReportCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeTargetAlertPolicyAssociationCompartmentResponse changeTargetAlertPolicyAssociationCompartment( @@ -2390,6 +2502,42 @@ public CreateReferentialRelationResponse createReferentialRelation( .callSync(); } + @Override + public CreateRegistrationPolicyResponse createRegistrationPolicy( + CreateRegistrationPolicyRequest request) { + Objects.requireNonNull( + request.getCreateRegistrationPolicyDetails(), + "createRegistrationPolicyDetails is required"); + + return clientCall(request, CreateRegistrationPolicyResponse::builder) + .logger(LOG, "createRegistrationPolicy") + .serviceDetails( + "DataSafe", + "CreateRegistrationPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/CreateRegistrationPolicy") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateRegistrationPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .accept("application/json") + .appendHeader("opc-dry-run", request.getOpcDryRun()) + .appendHeader("x-cluster-id", request.getXClusterId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datasafe.model.RegistrationPolicy.class, + CreateRegistrationPolicyResponse.Builder::registrationPolicy) + .handleResponseHeaderString("etag", CreateRegistrationPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateRegistrationPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateRegistrationPolicyResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateReportDefinitionResponse createReportDefinition( CreateReportDefinitionRequest request) { @@ -2812,6 +2960,108 @@ public CreateSqlCollectionResponse createSqlCollection(CreateSqlCollectionReques .callSync(); } + @Override + public CreateSubsettingPolicyResponse createSubsettingPolicy( + CreateSubsettingPolicyRequest request) { + Objects.requireNonNull( + request.getCreateSubsettingPolicyDetails(), + "createSubsettingPolicyDetails is required"); + + return clientCall(request, CreateSubsettingPolicyResponse::builder) + .logger(LOG, "createSubsettingPolicy") + .serviceDetails( + "DataSafe", + "CreateSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/CreateSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicy.class, + CreateSubsettingPolicyResponse.Builder::subsettingPolicy) + .handleResponseHeaderString("etag", CreateSubsettingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateSubsettingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateSubsettingPolicyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateSubsettingRuleResponse createSubsettingRule(CreateSubsettingRuleRequest request) { + Objects.requireNonNull( + request.getCreateSubsettingRuleDetails(), + "createSubsettingRuleDetails is required"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, CreateSubsettingRuleResponse::builder) + .logger(LOG, "createSubsettingRule") + .serviceDetails( + "DataSafe", + "CreateSubsettingRule", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/CreateSubsettingRule") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSubsettingRuleRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + CreateSubsettingRuleResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateSubsettingRuleResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateSubsettingSchemaRelationResponse createSubsettingSchemaRelation( + CreateSubsettingSchemaRelationRequest request) { + Objects.requireNonNull( + request.getCreateSubsettingSchemaRelationDetails(), + "createSubsettingSchemaRelationDetails is required"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, CreateSubsettingSchemaRelationResponse::builder) + .logger(LOG, "createSubsettingSchemaRelation") + .serviceDetails( + "DataSafe", + "CreateSubsettingSchemaRelation", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaRelationSummary/CreateSubsettingSchemaRelation") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSubsettingSchemaRelationRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemaRelations") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + CreateSubsettingSchemaRelationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateSubsettingSchemaRelationResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateTargetAlertPolicyAssociationResponse createTargetAlertPolicyAssociation( CreateTargetAlertPolicyAssociationRequest request) { @@ -3548,6 +3798,36 @@ public DeleteReferentialRelationResponse deleteReferentialRelation( .callSync(); } + @Override + public DeleteRegistrationPolicyResponse deleteRegistrationPolicy( + DeleteRegistrationPolicyRequest request) { + + Validate.notBlank( + request.getRegistrationPolicyId(), "registrationPolicyId must not be blank"); + + return clientCall(request, DeleteRegistrationPolicyResponse::builder) + .logger(LOG, "deleteRegistrationPolicy") + .serviceDetails( + "DataSafe", + "DeleteRegistrationPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/DeleteRegistrationPolicy") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteRegistrationPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendPathParam(request.getRegistrationPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteRegistrationPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteRegistrationPolicyResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteReportDefinitionResponse deleteReportDefinition( DeleteReportDefinitionRequest request) { @@ -3960,6 +4240,164 @@ public DeleteSqlFirewallPolicyResponse deleteSqlFirewallPolicy( .callSync(); } + @Override + public DeleteSubsettingPolicyResponse deleteSubsettingPolicy( + DeleteSubsettingPolicyRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, DeleteSubsettingPolicyResponse::builder) + .logger(LOG, "deleteSubsettingPolicy") + .serviceDetails( + "DataSafe", + "DeleteSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/DeleteSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteSubsettingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteSubsettingPolicyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteSubsettingPolicyHealthReportResponse deleteSubsettingPolicyHealthReport( + DeleteSubsettingPolicyHealthReportRequest request) { + + Validate.notBlank( + request.getSubsettingPolicyHealthReportId(), + "subsettingPolicyHealthReportId must not be blank"); + + return clientCall(request, DeleteSubsettingPolicyHealthReportResponse::builder) + .logger(LOG, "deleteSubsettingPolicyHealthReport") + .serviceDetails( + "DataSafe", + "DeleteSubsettingPolicyHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/DeleteSubsettingPolicyHealthReport") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSubsettingPolicyHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicyHealthReports") + .appendPathParam(request.getSubsettingPolicyHealthReportId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteSubsettingPolicyHealthReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteSubsettingPolicyHealthReportResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteSubsettingReportResponse deleteSubsettingReport( + DeleteSubsettingReportRequest request) { + + Validate.notBlank(request.getSubsettingReportId(), "subsettingReportId must not be blank"); + + return clientCall(request, DeleteSubsettingReportResponse::builder) + .logger(LOG, "deleteSubsettingReport") + .serviceDetails( + "DataSafe", + "DeleteSubsettingReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingReport/DeleteSubsettingReport") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSubsettingReportRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingReports") + .appendPathParam(request.getSubsettingReportId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteSubsettingReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteSubsettingReportResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteSubsettingRuleResponse deleteSubsettingRule(DeleteSubsettingRuleRequest request) { + + Validate.notBlank(request.getSubsettingRuleKey(), "subsettingRuleKey must not be blank"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, DeleteSubsettingRuleResponse::builder) + .logger(LOG, "deleteSubsettingRule") + .serviceDetails( + "DataSafe", + "DeleteSubsettingRule", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/DeleteSubsettingRule") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSubsettingRuleRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendPathParam(request.getSubsettingRuleKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteSubsettingRuleResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteSubsettingRuleResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteSubsettingSchemaRelationResponse deleteSubsettingSchemaRelation( + DeleteSubsettingSchemaRelationRequest request) { + + Validate.notBlank( + request.getSubsettingSchemaRelationKey(), + "subsettingSchemaRelationKey must not be blank"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, DeleteSubsettingSchemaRelationResponse::builder) + .logger(LOG, "deleteSubsettingSchemaRelation") + .serviceDetails( + "DataSafe", + "DeleteSubsettingSchemaRelation", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaRelation/DeleteSubsettingSchemaRelation") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSubsettingSchemaRelationRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemaRelations") + .appendPathParam(request.getSubsettingSchemaRelationKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteSubsettingSchemaRelationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteSubsettingSchemaRelationResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteTargetAlertPolicyAssociationResponse deleteTargetAlertPolicyAssociation( DeleteTargetAlertPolicyAssociationRequest request) { @@ -4549,10 +4987,121 @@ public DownloadSensitiveTypesExportResponse downloadSensitiveTypesExport( } @Override - public DownloadUserAssessmentReportResponse downloadUserAssessmentReport( - DownloadUserAssessmentReportRequest request) { + public DownloadSubsettingLogResponse downloadSubsettingLog( + DownloadSubsettingLogRequest request) { - Validate.notBlank(request.getUserAssessmentId(), "userAssessmentId must not be blank"); + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getDownloadSubsettingLogDetails(), + "downloadSubsettingLogDetails is required"); + + return clientCall(request, DownloadSubsettingLogResponse::builder) + .logger(LOG, "downloadSubsettingLog") + .serviceDetails( + "DataSafe", + "DownloadSubsettingLog", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/DownloadSubsettingLog") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DownloadSubsettingLogRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("downloadLog") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + java.io.InputStream.class, + DownloadSubsettingLogResponse.Builder::inputStream) + .handleResponseHeaderString("etag", DownloadSubsettingLogResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", DownloadSubsettingLogResponse.Builder::opcRequestId) + .handleResponseHeaderLong( + "content-length", DownloadSubsettingLogResponse.Builder::contentLength) + .callSync(); + } + + @Override + public DownloadSubsettingPolicyResponse downloadSubsettingPolicy( + DownloadSubsettingPolicyRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getDownloadSubsettingPolicyDetails(), + "downloadSubsettingPolicyDetails is required"); + + return clientCall(request, DownloadSubsettingPolicyResponse::builder) + .logger(LOG, "downloadSubsettingPolicy") + .serviceDetails( + "DataSafe", + "DownloadSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/DownloadSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DownloadSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("download") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + java.io.InputStream.class, + DownloadSubsettingPolicyResponse.Builder::inputStream) + .handleResponseHeaderString("etag", DownloadSubsettingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", DownloadSubsettingPolicyResponse.Builder::opcRequestId) + .handleResponseHeaderLong( + "content-length", DownloadSubsettingPolicyResponse.Builder::contentLength) + .callSync(); + } + + @Override + public DownloadSubsettingReportResponse downloadSubsettingReport( + DownloadSubsettingReportRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getDownloadSubsettingReportDetails(), + "downloadSubsettingReportDetails is required"); + + return clientCall(request, DownloadSubsettingReportResponse::builder) + .logger(LOG, "downloadSubsettingReport") + .serviceDetails( + "DataSafe", + "DownloadSubsettingReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/DownloadSubsettingReport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DownloadSubsettingReportRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("downloadReport") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + java.io.InputStream.class, + DownloadSubsettingReportResponse.Builder::inputStream) + .handleResponseHeaderString("etag", DownloadSubsettingReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", DownloadSubsettingReportResponse.Builder::opcRequestId) + .handleResponseHeaderLong( + "content-length", DownloadSubsettingReportResponse.Builder::contentLength) + .callSync(); + } + + @Override + public DownloadUserAssessmentReportResponse downloadUserAssessmentReport( + DownloadUserAssessmentReportRequest request) { + + Validate.notBlank(request.getUserAssessmentId(), "userAssessmentId must not be blank"); Objects.requireNonNull( request.getDownloadUserAssessmentReportDetails(), "downloadUserAssessmentReportDetails is required"); @@ -4621,6 +5170,38 @@ public EnableDataSafeConfigurationResponse enableDataSafeConfiguration( .callSync(); } + @Override + public EstimateTableSizesResponse estimateTableSizes(EstimateTableSizesRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getEstimateTableSizesDetails(), "estimateTableSizesDetails is required"); + + return clientCall(request, EstimateTableSizesResponse::builder) + .logger(LOG, "estimateTableSizes") + .serviceDetails( + "DataSafe", + "EstimateTableSizes", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/EstimateTableSizes") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EstimateTableSizesRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("estimateTableSizes") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", EstimateTableSizesResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", EstimateTableSizesResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GenerateCryptoAssessmentReportResponse generateCryptoAssessmentReport( GenerateCryptoAssessmentReportRequest request) { @@ -4981,6 +5562,112 @@ public GenerateSqlFirewallPolicyResponse generateSqlFirewallPolicy( .callSync(); } + @Override + public GenerateSubsettingHealthReportResponse generateSubsettingHealthReport( + GenerateSubsettingHealthReportRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getGenerateSubsettingHealthReportDetails(), + "generateSubsettingHealthReportDetails is required"); + + return clientCall(request, GenerateSubsettingHealthReportResponse::builder) + .logger(LOG, "generateSubsettingHealthReport") + .serviceDetails( + "DataSafe", + "GenerateSubsettingHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/GenerateSubsettingHealthReport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateSubsettingHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("generateHealthReport") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateSubsettingHealthReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateSubsettingHealthReportResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GenerateSubsettingPolicyForDownloadResponse generateSubsettingPolicyForDownload( + GenerateSubsettingPolicyForDownloadRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getGenerateSubsettingPolicyForDownloadDetails(), + "generateSubsettingPolicyForDownloadDetails is required"); + + return clientCall(request, GenerateSubsettingPolicyForDownloadResponse::builder) + .logger(LOG, "generateSubsettingPolicyForDownload") + .serviceDetails( + "DataSafe", + "GenerateSubsettingPolicyForDownload", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/GenerateSubsettingPolicyForDownload") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateSubsettingPolicyForDownloadRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("generatePolicyForDownload") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateSubsettingPolicyForDownloadResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateSubsettingPolicyForDownloadResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GenerateSubsettingReportForDownloadResponse generateSubsettingReportForDownload( + GenerateSubsettingReportForDownloadRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getGenerateSubsettingReportForDownloadDetails(), + "generateSubsettingReportForDownloadDetails is required"); + + return clientCall(request, GenerateSubsettingReportForDownloadResponse::builder) + .logger(LOG, "generateSubsettingReportForDownload") + .serviceDetails( + "DataSafe", + "GenerateSubsettingReportForDownload", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/GenerateSubsettingReportForDownload") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateSubsettingReportForDownloadRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("generateReportForDownload") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateSubsettingReportForDownloadResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateSubsettingReportForDownloadResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GenerateUserAssessmentReportResponse generateUserAssessmentReport( GenerateUserAssessmentReportRequest request) { @@ -5965,6 +6652,36 @@ public GetReferentialRelationResponse getReferentialRelation( .callSync(); } + @Override + public GetRegistrationPolicyResponse getRegistrationPolicy( + GetRegistrationPolicyRequest request) { + + Validate.notBlank( + request.getRegistrationPolicyId(), "registrationPolicyId must not be blank"); + + return clientCall(request, GetRegistrationPolicyResponse::builder) + .logger(LOG, "getRegistrationPolicy") + .serviceDetails( + "DataSafe", + "GetRegistrationPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/GetRegistrationPolicy") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetRegistrationPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendPathParam(request.getRegistrationPolicyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.RegistrationPolicy.class, + GetRegistrationPolicyResponse.Builder::registrationPolicy) + .handleResponseHeaderString("etag", GetRegistrationPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetRegistrationPolicyResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetReportResponse getReport(GetReportRequest request) { @@ -6551,6 +7268,164 @@ public GetSqlFirewallPolicyResponse getSqlFirewallPolicy(GetSqlFirewallPolicyReq .callSync(); } + @Override + public GetSubsettingPolicyResponse getSubsettingPolicy(GetSubsettingPolicyRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, GetSubsettingPolicyResponse::builder) + .logger(LOG, "getSubsettingPolicy") + .serviceDetails( + "DataSafe", + "GetSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/GetSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicy.class, + GetSubsettingPolicyResponse.Builder::subsettingPolicy) + .handleResponseHeaderString("etag", GetSubsettingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSubsettingPolicyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetSubsettingPolicyHealthReportResponse getSubsettingPolicyHealthReport( + GetSubsettingPolicyHealthReportRequest request) { + + Validate.notBlank( + request.getSubsettingPolicyHealthReportId(), + "subsettingPolicyHealthReportId must not be blank"); + + return clientCall(request, GetSubsettingPolicyHealthReportResponse::builder) + .logger(LOG, "getSubsettingPolicyHealthReport") + .serviceDetails( + "DataSafe", + "GetSubsettingPolicyHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/GetSubsettingPolicyHealthReport") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSubsettingPolicyHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicyHealthReports") + .appendPathParam(request.getSubsettingPolicyHealthReportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport.class, + GetSubsettingPolicyHealthReportResponse.Builder + ::subsettingPolicyHealthReport) + .handleResponseHeaderString( + "etag", GetSubsettingPolicyHealthReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetSubsettingPolicyHealthReportResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetSubsettingReportResponse getSubsettingReport(GetSubsettingReportRequest request) { + + Validate.notBlank(request.getSubsettingReportId(), "subsettingReportId must not be blank"); + + return clientCall(request, GetSubsettingReportResponse::builder) + .logger(LOG, "getSubsettingReport") + .serviceDetails( + "DataSafe", + "GetSubsettingReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingReport/GetSubsettingReport") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSubsettingReportRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingReports") + .appendPathParam(request.getSubsettingReportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingReport.class, + GetSubsettingReportResponse.Builder::subsettingReport) + .handleResponseHeaderString("etag", GetSubsettingReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSubsettingReportResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetSubsettingRuleResponse getSubsettingRule(GetSubsettingRuleRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + Validate.notBlank(request.getSubsettingRuleKey(), "subsettingRuleKey must not be blank"); + + return clientCall(request, GetSubsettingRuleResponse::builder) + .logger(LOG, "getSubsettingRule") + .serviceDetails( + "DataSafe", + "GetSubsettingRule", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/GetSubsettingRule") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSubsettingRuleRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendPathParam(request.getSubsettingRuleKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingRule.class, + GetSubsettingRuleResponse.Builder::subsettingRule) + .handleResponseHeaderString("etag", GetSubsettingRuleResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSubsettingRuleResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetSubsettingSchemaRelationResponse getSubsettingSchemaRelation( + GetSubsettingSchemaRelationRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + Validate.notBlank( + request.getSubsettingSchemaRelationKey(), + "subsettingSchemaRelationKey must not be blank"); + + return clientCall(request, GetSubsettingSchemaRelationResponse::builder) + .logger(LOG, "getSubsettingSchemaRelation") + .serviceDetails( + "DataSafe", + "GetSubsettingSchemaRelation", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaRelation/GetSubsettingSchemaRelation") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSubsettingSchemaRelationRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemaRelations") + .appendPathParam(request.getSubsettingSchemaRelationKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingSchemaRelation.class, + GetSubsettingSchemaRelationResponse.Builder::subsettingSchemaRelation) + .handleResponseHeaderString( + "etag", GetSubsettingSchemaRelationResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSubsettingSchemaRelationResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetTargetAlertPolicyAssociationResponse getTargetAlertPolicyAssociation( GetTargetAlertPolicyAssociationRequest request) { @@ -9667,22 +10542,112 @@ public ListReferentialRelationsResponse listReferentialRelations( } @Override - public ListReportDefinitionsResponse listReportDefinitions( - ListReportDefinitionsRequest request) { + public ListRegistrationPoliciesResponse listRegistrationPolicies( + ListRegistrationPoliciesRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - return clientCall(request, ListReportDefinitionsResponse::builder) - .logger(LOG, "listReportDefinitions") + return clientCall(request, ListRegistrationPoliciesResponse::builder) + .logger(LOG, "listRegistrationPolicies") .serviceDetails( "DataSafe", - "ListReportDefinitions", - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReportDefinition/ListReportDefinitions") + "ListRegistrationPolicies", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicySummary/ListRegistrationPolicies") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListReportDefinitionsRequest::builder) + .requestBuilder(ListRegistrationPoliciesRequest::builder) .basePath("/20181201") - .appendPathParam("reportDefinitions") + .appendPathParam("registrationPolicies") .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("enablementLevel", request.getEnablementLevel()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam( + "timeCreatedGreaterThanOrEqualTo", + request.getTimeCreatedGreaterThanOrEqualTo()) + .appendQueryParam("timeCreatedLessThan", request.getTimeCreatedLessThan()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("registrationPolicyId", request.getRegistrationPolicyId()) + .appendEnumQueryParam("connectionType", request.getConnectionType()) + .appendQueryParam("connectionId", request.getConnectionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.RegistrationPolicyCollection.class, + ListRegistrationPoliciesResponse.Builder::registrationPolicyCollection) + .handleResponseHeaderString( + "opc-request-id", ListRegistrationPoliciesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListRegistrationPoliciesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListRegistrationPoliciesResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListRegistrationPolicyTargetDatabasesResponse listRegistrationPolicyTargetDatabases( + ListRegistrationPolicyTargetDatabasesRequest request) { + + Validate.notBlank( + request.getRegistrationPolicyId(), "registrationPolicyId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListRegistrationPolicyTargetDatabasesResponse::builder) + .logger(LOG, "listRegistrationPolicyTargetDatabases") + .serviceDetails( + "DataSafe", + "ListRegistrationPolicyTargetDatabases", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/ListRegistrationPolicyTargetDatabases") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRegistrationPolicyTargetDatabasesRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendPathParam(request.getRegistrationPolicyId()) + .appendPathParam("targetDatabases") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("targetDatabaseId", request.getTargetDatabaseId()) + .appendEnumQueryParam("membershipStatus", request.getMembershipStatus()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model + .RegistrationPolicyTargetDatabaseSummaryCollection.class, + ListRegistrationPolicyTargetDatabasesResponse.Builder + ::registrationPolicyTargetDatabaseSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", + ListRegistrationPolicyTargetDatabasesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListRegistrationPolicyTargetDatabasesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListReportDefinitionsResponse listReportDefinitions( + ListReportDefinitionsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListReportDefinitionsResponse::builder) + .logger(LOG, "listReportDefinitions") + .serviceDetails( + "DataSafe", + "ListReportDefinitions", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReportDefinition/ListReportDefinitions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListReportDefinitionsRequest::builder) + .basePath("/20181201") + .appendPathParam("reportDefinitions") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendEnumQueryParam("accessLevel", request.getAccessLevel()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("limit", request.getLimit()) @@ -11034,121 +11999,699 @@ public ListSqlFirewallPolicyAnalyticsResponse listSqlFirewallPolicyAnalytics( .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendListQueryParam( - "groupBy", - request.getGroupBy(), + "groupBy", + request.getGroupBy(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("securityPolicyId", request.getSecurityPolicyId()) + .appendQueryParam("timeStarted", request.getTimeStarted()) + .appendQueryParam("timeEnded", request.getTimeEnded()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SqlFirewallPolicyAnalyticsCollection.class, + ListSqlFirewallPolicyAnalyticsResponse.Builder + ::sqlFirewallPolicyAnalyticsCollection) + .handleResponseHeaderString( + "opc-request-id", + ListSqlFirewallPolicyAnalyticsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListSqlFirewallPolicyAnalyticsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListSqlFirewallPolicyAnalyticsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSqlFirewallViolationAnalyticsResponse listSqlFirewallViolationAnalytics( + ListSqlFirewallViolationAnalyticsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSqlFirewallViolationAnalyticsResponse::builder) + .logger(LOG, "listSqlFirewallViolationAnalytics") + .serviceDetails( + "DataSafe", + "ListSqlFirewallViolationAnalytics", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolationAnalytics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSqlFirewallViolationAnalyticsRequest::builder) + .basePath("/20181201") + .appendPathParam("sqlFirewallViolationAnalytics") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("timeStarted", request.getTimeStarted()) + .appendQueryParam("timeEnded", request.getTimeEnded()) + .appendQueryParam("queryTimeZone", request.getQueryTimeZone()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("scimQuery", request.getScimQuery()) + .appendListQueryParam( + "summaryField", + request.getSummaryField(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "groupBy", + request.getGroupBy(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SqlFirewallViolationAnalyticsCollection.class, + ListSqlFirewallViolationAnalyticsResponse.Builder + ::sqlFirewallViolationAnalyticsCollection) + .handleResponseHeaderString( + "opc-request-id", + ListSqlFirewallViolationAnalyticsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListSqlFirewallViolationAnalyticsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListSqlFirewallViolationAnalyticsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSqlFirewallViolationsResponse listSqlFirewallViolations( + ListSqlFirewallViolationsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSqlFirewallViolationsResponse::builder) + .logger(LOG, "listSqlFirewallViolations") + .serviceDetails( + "DataSafe", + "ListSqlFirewallViolations", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSqlFirewallViolationsRequest::builder) + .basePath("/20181201") + .appendPathParam("sqlFirewallViolations") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("scimQuery", request.getScimQuery()) + .accept("application/json, application/xml") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SqlFirewallViolationsCollection.class, + ListSqlFirewallViolationsResponse.Builder::sqlFirewallViolationsCollection) + .handleResponseHeaderString( + "opc-request-id", ListSqlFirewallViolationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSqlFirewallViolationsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSqlFirewallViolationsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettedObjectsResponse listSubsettedObjects(ListSubsettedObjectsRequest request) { + + Validate.notBlank(request.getSubsettingReportId(), "subsettingReportId must not be blank"); + + return clientCall(request, ListSubsettedObjectsResponse::builder) + .logger(LOG, "listSubsettedObjects") + .serviceDetails( + "DataSafe", + "ListSubsettedObjects", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettedObjectSummary/ListSubsettedObjects") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettedObjectsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingReports") + .appendPathParam(request.getSubsettingReportId()) + .appendPathParam("subsettedObjects") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "schemaName", + request.getSchemaName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "objectName", + request.getObjectName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettedObjectCollection.class, + ListSubsettedObjectsResponse.Builder::subsettedObjectCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettedObjectsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettedObjectsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettedObjectsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettingAnalyticsResponse listSubsettingAnalytics( + ListSubsettingAnalyticsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSubsettingAnalyticsResponse::builder) + .logger(LOG, "listSubsettingAnalytics") + .serviceDetails( + "DataSafe", + "ListSubsettingAnalytics", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/ListSubsettingAnalytics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingAnalyticsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingAnalytics") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("groupBy", request.getGroupBy()) + .appendQueryParam("targetId", request.getTargetId()) + .appendQueryParam("subsettingPolicyId", request.getSubsettingPolicyId()) + .appendQueryParam("targetDatabaseGroupId", request.getTargetDatabaseGroupId()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam( + "timeCreatedGreaterThanOrEqualTo", + request.getTimeCreatedGreaterThanOrEqualTo()) + .appendQueryParam("timeCreatedLessThan", request.getTimeCreatedLessThan()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingAnalyticsCollection.class, + ListSubsettingAnalyticsResponse.Builder::subsettingAnalyticsCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingAnalyticsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingAnalyticsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingAnalyticsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettingErrorsResponse listSubsettingErrors(ListSubsettingErrorsRequest request) { + + Validate.notBlank(request.getSubsettingReportId(), "subsettingReportId must not be blank"); + + return clientCall(request, ListSubsettingErrorsResponse::builder) + .logger(LOG, "listSubsettingErrors") + .serviceDetails( + "DataSafe", + "ListSubsettingErrors", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingErrorSummary/ListSubsettingErrors") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingErrorsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingReports") + .appendPathParam(request.getSubsettingReportId()) + .appendPathParam("subsettingErrors") + .appendEnumQueryParam("stepName", request.getStepName()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingErrorCollection.class, + ListSubsettingErrorsResponse.Builder::subsettingErrorCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingErrorsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingErrorsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettingPoliciesResponse listSubsettingPolicies( + ListSubsettingPoliciesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSubsettingPoliciesResponse::builder) + .logger(LOG, "listSubsettingPolicies") + .serviceDetails( + "DataSafe", + "ListSubsettingPolicies", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/ListSubsettingPolicies") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingPoliciesRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendQueryParam("subsettingPolicyId", request.getSubsettingPolicyId()) + .appendQueryParam("maskingPolicyId", request.getMaskingPolicyId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("sensitiveDataModelId", request.getSensitiveDataModelId()) + .appendQueryParam("targetId", request.getTargetId()) + .appendQueryParam( + "timeCreatedGreaterThanOrEqualTo", + request.getTimeCreatedGreaterThanOrEqualTo()) + .appendQueryParam("timeCreatedLessThan", request.getTimeCreatedLessThan()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicyCollection.class, + ListSubsettingPoliciesResponse.Builder::subsettingPolicyCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingPoliciesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingPoliciesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingPoliciesResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettingPolicyHealthReportLogsResponse listSubsettingPolicyHealthReportLogs( + ListSubsettingPolicyHealthReportLogsRequest request) { + + Validate.notBlank( + request.getSubsettingPolicyHealthReportId(), + "subsettingPolicyHealthReportId must not be blank"); + + return clientCall(request, ListSubsettingPolicyHealthReportLogsResponse::builder) + .logger(LOG, "listSubsettingPolicyHealthReportLogs") + .serviceDetails( + "DataSafe", + "ListSubsettingPolicyHealthReportLogs", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/ListSubsettingPolicyHealthReportLogs") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingPolicyHealthReportLogsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicyHealthReports") + .appendPathParam(request.getSubsettingPolicyHealthReportId()) + .appendPathParam("logs") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("messageType", request.getMessageType()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogCollection + .class, + ListSubsettingPolicyHealthReportLogsResponse.Builder + ::subsettingPolicyHealthReportLogCollection) + .handleResponseHeaderString( + "opc-request-id", + ListSubsettingPolicyHealthReportLogsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListSubsettingPolicyHealthReportLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListSubsettingPolicyHealthReportLogsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettingPolicyHealthReportsResponse listSubsettingPolicyHealthReports( + ListSubsettingPolicyHealthReportsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSubsettingPolicyHealthReportsResponse::builder) + .logger(LOG, "listSubsettingPolicyHealthReports") + .serviceDetails( + "DataSafe", + "ListSubsettingPolicyHealthReports", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicyHealthReport/ListSubsettingPolicyHealthReports") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingPolicyHealthReportsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicyHealthReports") + .appendQueryParam( + "subsettingPolicyHealthReportId", + request.getSubsettingPolicyHealthReportId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("targetId", request.getTargetId()) + .appendQueryParam("subsettingPolicyId", request.getSubsettingPolicyId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportCollection.class, + ListSubsettingPolicyHealthReportsResponse.Builder + ::subsettingPolicyHealthReportCollection) + .handleResponseHeaderString( + "opc-request-id", + ListSubsettingPolicyHealthReportsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListSubsettingPolicyHealthReportsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListSubsettingPolicyHealthReportsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettingReportsResponse listSubsettingReports( + ListSubsettingReportsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListSubsettingReportsResponse::builder) + .logger(LOG, "listSubsettingReports") + .serviceDetails( + "DataSafe", + "ListSubsettingReports", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingReport/ListSubsettingReports") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingReportsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingReports") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("subsettingPolicyId", request.getSubsettingPolicyId()) + .appendQueryParam("targetId", request.getTargetId()) + .appendQueryParam("targetDatabaseGroupId", request.getTargetDatabaseGroupId()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingReportCollection.class, + ListSubsettingReportsResponse.Builder::subsettingReportCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingReportsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingReportsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingReportsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettingRuleProcessingChainObjectsResponse + listSubsettingRuleProcessingChainObjects( + ListSubsettingRuleProcessingChainObjectsRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + Validate.notBlank(request.getSubsettingRuleKey(), "subsettingRuleKey must not be blank"); + + return clientCall(request, ListSubsettingRuleProcessingChainObjectsResponse::builder) + .logger(LOG, "listSubsettingRuleProcessingChainObjects") + .serviceDetails( + "DataSafe", + "ListSubsettingRuleProcessingChainObjects", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRuleProcessingChainObjectSummary/ListSubsettingRuleProcessingChainObjects") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingRuleProcessingChainObjectsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendPathParam(request.getSubsettingRuleKey()) + .appendPathParam("processingChainObjects") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("isEnabledForProcessing", request.getIsEnabledForProcessing()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectsCollection + .class, + ListSubsettingRuleProcessingChainObjectsResponse.Builder + ::subsettingRuleProcessingChainObjectsCollection) + .handleResponseHeaderString( + "opc-request-id", + ListSubsettingRuleProcessingChainObjectsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListSubsettingRuleProcessingChainObjectsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListSubsettingRuleProcessingChainObjectsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettingRulesResponse listSubsettingRules(ListSubsettingRulesRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, ListSubsettingRulesResponse::builder) + .logger(LOG, "listSubsettingRules") + .serviceDetails( + "DataSafe", + "ListSubsettingRules", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/ListSubsettingRules") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingRulesRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "schemaName", + request.getSchemaName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "objectName", + request.getObjectName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingRuleCollection.class, + ListSubsettingRulesResponse.Builder::subsettingRuleCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingRulesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingRulesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingRulesResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettingSchemaObjectsResponse listSubsettingSchemaObjects( + ListSubsettingSchemaObjectsRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, ListSubsettingSchemaObjectsResponse::builder) + .logger(LOG, "listSubsettingSchemaObjects") + .serviceDetails( + "DataSafe", + "ListSubsettingSchemaObjects", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaObjectSummary/ListSubsettingSchemaObjects") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingSchemaObjectsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemaObjects") + .appendListQueryParam( + "schemaName", + request.getSchemaName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "objectName", + request.getObjectName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.SubsettingSchemaObjectCollection.class, + ListSubsettingSchemaObjectsResponse.Builder + ::subsettingSchemaObjectCollection) + .handleResponseHeaderString( + "opc-request-id", ListSubsettingSchemaObjectsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSubsettingSchemaObjectsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListSubsettingSchemaObjectsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListSubsettingSchemaRelationsResponse listSubsettingSchemaRelations( + ListSubsettingSchemaRelationsRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, ListSubsettingSchemaRelationsResponse::builder) + .logger(LOG, "listSubsettingSchemaRelations") + .serviceDetails( + "DataSafe", + "ListSubsettingSchemaRelations", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaRelationSummary/ListSubsettingSchemaRelations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSubsettingSchemaRelationsRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemaRelations") + .appendListQueryParam( + "schemaName", + request.getSchemaName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "objectName", + request.getObjectName(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) - .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) - .appendQueryParam("securityPolicyId", request.getSecurityPolicyId()) - .appendQueryParam("timeStarted", request.getTimeStarted()) - .appendQueryParam("timeEnded", request.getTimeEnded()) + .appendEnumQueryParam("relationType", request.getRelationType()) + .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.datasafe.model.SqlFirewallPolicyAnalyticsCollection.class, - ListSqlFirewallPolicyAnalyticsResponse.Builder - ::sqlFirewallPolicyAnalyticsCollection) + com.oracle.bmc.datasafe.model.SubsettingSchemaRelationCollection.class, + ListSubsettingSchemaRelationsResponse.Builder + ::subsettingSchemaRelationCollection) .handleResponseHeaderString( "opc-request-id", - ListSqlFirewallPolicyAnalyticsResponse.Builder::opcRequestId) + ListSubsettingSchemaRelationsResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", - ListSqlFirewallPolicyAnalyticsResponse.Builder::opcNextPage) + "opc-next-page", ListSubsettingSchemaRelationsResponse.Builder::opcNextPage) .handleResponseHeaderString( - "opc-prev-page", - ListSqlFirewallPolicyAnalyticsResponse.Builder::opcPrevPage) + "opc-prev-page", ListSubsettingSchemaRelationsResponse.Builder::opcPrevPage) .callSync(); } @Override - public ListSqlFirewallViolationAnalyticsResponse listSqlFirewallViolationAnalytics( - ListSqlFirewallViolationAnalyticsRequest request) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + public ListSubsettingSchemasResponse listSubsettingSchemas( + ListSubsettingSchemasRequest request) { - return clientCall(request, ListSqlFirewallViolationAnalyticsResponse::builder) - .logger(LOG, "listSqlFirewallViolationAnalytics") + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, ListSubsettingSchemasResponse::builder) + .logger(LOG, "listSubsettingSchemas") .serviceDetails( "DataSafe", - "ListSqlFirewallViolationAnalytics", - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolationAnalytics") + "ListSubsettingSchemas", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingSchemaCollection/ListSubsettingSchemas") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListSqlFirewallViolationAnalyticsRequest::builder) + .requestBuilder(ListSubsettingSchemasRequest::builder) .basePath("/20181201") - .appendPathParam("sqlFirewallViolationAnalytics") - .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) - .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingSchemas") .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) - .appendQueryParam("timeStarted", request.getTimeStarted()) - .appendQueryParam("timeEnded", request.getTimeEnded()) - .appendQueryParam("queryTimeZone", request.getQueryTimeZone()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) - .appendQueryParam("scimQuery", request.getScimQuery()) - .appendListQueryParam( - "summaryField", - request.getSummaryField(), - com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendListQueryParam( - "groupBy", - request.getGroupBy(), + "schemaName", + request.getSchemaName(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isDerivedSchema", request.getIsDerivedSchema()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) .operationUsesDefaultRetries() .handleBody( - com.oracle.bmc.datasafe.model.SqlFirewallViolationAnalyticsCollection.class, - ListSqlFirewallViolationAnalyticsResponse.Builder - ::sqlFirewallViolationAnalyticsCollection) + com.oracle.bmc.datasafe.model.SubsettingSchemaCollection.class, + ListSubsettingSchemasResponse.Builder::subsettingSchemaCollection) .handleResponseHeaderString( - "opc-request-id", - ListSqlFirewallViolationAnalyticsResponse.Builder::opcRequestId) + "opc-request-id", ListSubsettingSchemasResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", - ListSqlFirewallViolationAnalyticsResponse.Builder::opcNextPage) + "opc-next-page", ListSubsettingSchemasResponse.Builder::opcNextPage) .handleResponseHeaderString( - "opc-prev-page", - ListSqlFirewallViolationAnalyticsResponse.Builder::opcPrevPage) + "opc-prev-page", ListSubsettingSchemasResponse.Builder::opcPrevPage) .callSync(); } @Override - public ListSqlFirewallViolationsResponse listSqlFirewallViolations( - ListSqlFirewallViolationsRequest request) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + public ListTableEstimatesResponse listTableEstimates(ListTableEstimatesRequest request) { - return clientCall(request, ListSqlFirewallViolationsResponse::builder) - .logger(LOG, "listSqlFirewallViolations") + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, ListTableEstimatesResponse::builder) + .logger(LOG, "listTableEstimates") .serviceDetails( "DataSafe", - "ListSqlFirewallViolations", - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolations") + "ListTableEstimates", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TableEstimateSummary/ListTableEstimates") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListSqlFirewallViolationsRequest::builder) + .requestBuilder(ListTableEstimatesRequest::builder) .basePath("/20181201") - .appendPathParam("sqlFirewallViolations") - .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) - .appendQueryParam("limit", request.getLimit()) - .appendQueryParam("page", request.getPage()) - .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("tableEstimates") + .appendListQueryParam( + "schemaName", + request.getSchemaName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "objectName", + request.getObjectName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("targetId", request.getTargetId()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) - .appendQueryParam("scimQuery", request.getScimQuery()) - .accept("application/json, application/xml") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .handleBody( - com.oracle.bmc.datasafe.model.SqlFirewallViolationsCollection.class, - ListSqlFirewallViolationsResponse.Builder::sqlFirewallViolationsCollection) + com.oracle.bmc.datasafe.model.TableEstimateCollection.class, + ListTableEstimatesResponse.Builder::tableEstimateCollection) .handleResponseHeaderString( - "opc-request-id", ListSqlFirewallViolationsResponse.Builder::opcRequestId) + "opc-request-id", ListTableEstimatesResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListSqlFirewallViolationsResponse.Builder::opcNextPage) + "opc-next-page", ListTableEstimatesResponse.Builder::opcNextPage) .handleResponseHeaderString( - "opc-prev-page", ListSqlFirewallViolationsResponse.Builder::opcPrevPage) + "opc-prev-page", ListTableEstimatesResponse.Builder::opcPrevPage) .callSync(); } @@ -11357,6 +12900,7 @@ public ListTargetDatabasesResponse listTargetDatabases(ListTargetDatabasesReques .appendPathParam("targetDatabases") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("associatedResourceId", request.getAssociatedResourceId()) + .appendQueryParam("enablementResourceOcid", request.getEnablementResourceOcid()) .appendQueryParam("targetDatabaseId", request.getTargetDatabaseId()) .appendQueryParam("displayName", request.getDisplayName()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) @@ -11928,6 +13472,39 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request .callSync(); } + @Override + public ManagePrivilegesResponse managePrivileges(ManagePrivilegesRequest request) { + + Validate.notBlank(request.getTargetDatabaseId(), "targetDatabaseId must not be blank"); + Objects.requireNonNull( + request.getManagePrivilegesDetails(), "managePrivilegesDetails is required"); + + return clientCall(request, ManagePrivilegesResponse::builder) + .logger(LOG, "managePrivileges") + .serviceDetails( + "DataSafe", + "ManagePrivileges", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/ManagePrivileges") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ManagePrivilegesRequest::builder) + .basePath("/20181201") + .appendPathParam("targetDatabases") + .appendPathParam(request.getTargetDatabaseId()) + .appendPathParam("actions") + .appendPathParam("managePrivileges") + .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", ManagePrivilegesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", ManagePrivilegesResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public MaskDataResponse maskData(MaskDataRequest request) { @@ -12288,6 +13865,39 @@ public PatchSqlFirewallAllowedSqlResponse patchSqlFirewallAllowedSql( .callSync(); } + @Override + public PatchSubsettingRulesResponse patchSubsettingRules(PatchSubsettingRulesRequest request) { + Objects.requireNonNull( + request.getPatchSubsettingRulesDetails(), + "patchSubsettingRulesDetails is required"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, PatchSubsettingRulesResponse::builder) + .logger(LOG, "patchSubsettingRules") + .serviceDetails( + "DataSafe", + "PatchSubsettingRules", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/PatchSubsettingRules") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchSubsettingRulesRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + PatchSubsettingRulesResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", PatchSubsettingRulesResponse.Builder::opcRequestId) + .callSync(); + } + @Override public PatchTargetAlertPolicyAssociationResponse patchTargetAlertPolicyAssociation( PatchTargetAlertPolicyAssociationRequest request) { @@ -13007,6 +14617,37 @@ public StopSqlCollectionResponse stopSqlCollection(StopSqlCollectionRequest requ .callSync(); } + @Override + public SubsetDataResponse subsetData(SubsetDataRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull(request.getSubsetDataDetails(), "subsetDataDetails is required"); + + return clientCall(request, SubsetDataResponse::builder) + .logger(LOG, "subsetData") + .serviceDetails( + "DataSafe", + "SubsetData", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/SubsetData") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SubsetDataRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("subset") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", SubsetDataResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", SubsetDataResponse.Builder::opcRequestId) + .callSync(); + } + @Override public SuspendWorkRequestResponse suspendWorkRequest(SuspendWorkRequestRequest request) { @@ -13703,6 +15344,88 @@ public UpdatePeerTargetDatabaseResponse updatePeerTargetDatabase( .callSync(); } + @Override + public UpdateProcessingChainObjectResponse updateProcessingChainObject( + UpdateProcessingChainObjectRequest request) { + + Validate.notBlank( + request.getProcessingChainObjectKey(), + "processingChainObjectKey must not be blank"); + + Validate.notBlank(request.getSubsettingRuleKey(), "subsettingRuleKey must not be blank"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateProcessingChainObjectDetails(), + "updateProcessingChainObjectDetails is required"); + + return clientCall(request, UpdateProcessingChainObjectResponse::builder) + .logger(LOG, "updateProcessingChainObject") + .serviceDetails( + "DataSafe", + "UpdateProcessingChainObject", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRuleProcessingChainObjectSummary/UpdateProcessingChainObject") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateProcessingChainObjectRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendPathParam(request.getSubsettingRuleKey()) + .appendPathParam("processingChainObjects") + .appendPathParam(request.getProcessingChainObjectKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateProcessingChainObjectResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateProcessingChainObjectResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateRegistrationPolicyResponse updateRegistrationPolicy( + UpdateRegistrationPolicyRequest request) { + + Validate.notBlank( + request.getRegistrationPolicyId(), "registrationPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateRegistrationPolicyDetails(), + "updateRegistrationPolicyDetails is required"); + + return clientCall(request, UpdateRegistrationPolicyResponse::builder) + .logger(LOG, "updateRegistrationPolicy") + .serviceDetails( + "DataSafe", + "UpdateRegistrationPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RegistrationPolicy/UpdateRegistrationPolicy") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateRegistrationPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("registrationPolicies") + .appendPathParam(request.getRegistrationPolicyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datasafe.model.RegistrationPolicy.class, + UpdateRegistrationPolicyResponse.Builder::registrationPolicy) + .handleResponseHeaderString("etag", UpdateRegistrationPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateRegistrationPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateRegistrationPolicyResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateReportResponse updateReport(UpdateReportRequest request) { @@ -14175,6 +15898,75 @@ public UpdateSqlFirewallPolicyResponse updateSqlFirewallPolicy( .callSync(); } + @Override + public UpdateSubsettingPolicyResponse updateSubsettingPolicy( + UpdateSubsettingPolicyRequest request) { + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateSubsettingPolicyDetails(), + "updateSubsettingPolicyDetails is required"); + + return clientCall(request, UpdateSubsettingPolicyResponse::builder) + .logger(LOG, "updateSubsettingPolicy") + .serviceDetails( + "DataSafe", + "UpdateSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/UpdateSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSubsettingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateSubsettingPolicyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateSubsettingRuleResponse updateSubsettingRule(UpdateSubsettingRuleRequest request) { + + Validate.notBlank(request.getSubsettingRuleKey(), "subsettingRuleKey must not be blank"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateSubsettingRuleDetails(), + "updateSubsettingRuleDetails is required"); + + return clientCall(request, UpdateSubsettingRuleResponse::builder) + .logger(LOG, "updateSubsettingRule") + .serviceDetails( + "DataSafe", + "UpdateSubsettingRule", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingRule/UpdateSubsettingRule") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSubsettingRuleRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("subsettingRules") + .appendPathParam(request.getSubsettingRuleKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSubsettingRuleResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateSubsettingRuleResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateTargetAlertPolicyAssociationResponse updateTargetAlertPolicyAssociation( UpdateTargetAlertPolicyAssociationRequest request) { @@ -14452,6 +16244,42 @@ public UploadSensitiveDataModelResponse uploadSensitiveDataModel( .callSync(); } + @Override + public UploadSubsettingPolicyResponse uploadSubsettingPolicy( + UploadSubsettingPolicyRequest request) { + Objects.requireNonNull( + request.getUploadSubsettingPolicyDetails(), + "uploadSubsettingPolicyDetails is required"); + + Validate.notBlank(request.getSubsettingPolicyId(), "subsettingPolicyId must not be blank"); + + return clientCall(request, UploadSubsettingPolicyResponse::builder) + .logger(LOG, "uploadSubsettingPolicy") + .serviceDetails( + "DataSafe", + "UploadSubsettingPolicy", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SubsettingPolicy/UploadSubsettingPolicy") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(UploadSubsettingPolicyRequest::builder) + .basePath("/20181201") + .appendPathParam("subsettingPolicies") + .appendPathParam(request.getSubsettingPolicyId()) + .appendPathParam("actions") + .appendPathParam("upload") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBinaryRequestBody() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UploadSubsettingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UploadSubsettingPolicyResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DataSafeWaiters getWaiters() { return waiters; 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 743b830fe14..9a6a5626950 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 @@ -7118,6 +7118,263 @@ public ListReferentialRelationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listRegistrationPolicies 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 listRegistrationPoliciesResponseIterator( + final ListRegistrationPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListRegistrationPoliciesRequest.Builder, + ListRegistrationPoliciesRequest, + ListRegistrationPoliciesResponse>( + new java.util.function.Supplier() { + @Override + public ListRegistrationPoliciesRequest.Builder get() { + return ListRegistrationPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRegistrationPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRegistrationPoliciesRequest.Builder>, + ListRegistrationPoliciesRequest>() { + @Override + public ListRegistrationPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRegistrationPoliciesRequest.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< + ListRegistrationPoliciesRequest, ListRegistrationPoliciesResponse>() { + @Override + public ListRegistrationPoliciesResponse apply( + ListRegistrationPoliciesRequest request) { + return client.listRegistrationPolicies(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.RegistrationPolicySummary} objects contained in responses from + * the listRegistrationPolicies 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.RegistrationPolicySummary} objects contained in responses + * received from the service. + */ + public Iterable + listRegistrationPoliciesRecordIterator(final ListRegistrationPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListRegistrationPoliciesRequest.Builder, + ListRegistrationPoliciesRequest, + ListRegistrationPoliciesResponse, + com.oracle.bmc.datasafe.model.RegistrationPolicySummary>( + new java.util.function.Supplier() { + @Override + public ListRegistrationPoliciesRequest.Builder get() { + return ListRegistrationPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRegistrationPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRegistrationPoliciesRequest.Builder>, + ListRegistrationPoliciesRequest>() { + @Override + public ListRegistrationPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRegistrationPoliciesRequest.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< + ListRegistrationPoliciesRequest, ListRegistrationPoliciesResponse>() { + @Override + public ListRegistrationPoliciesResponse apply( + ListRegistrationPoliciesRequest request) { + return client.listRegistrationPolicies(request); + } + }, + new java.util.function.Function< + ListRegistrationPoliciesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListRegistrationPoliciesResponse response) { + return response.getRegistrationPolicyCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listRegistrationPolicyTargetDatabases 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 + listRegistrationPolicyTargetDatabasesResponseIterator( + final ListRegistrationPolicyTargetDatabasesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListRegistrationPolicyTargetDatabasesRequest.Builder, + ListRegistrationPolicyTargetDatabasesRequest, + ListRegistrationPolicyTargetDatabasesResponse>( + new java.util.function.Supplier< + ListRegistrationPolicyTargetDatabasesRequest.Builder>() { + @Override + public ListRegistrationPolicyTargetDatabasesRequest.Builder get() { + return ListRegistrationPolicyTargetDatabasesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListRegistrationPolicyTargetDatabasesResponse, String>() { + @Override + public String apply(ListRegistrationPolicyTargetDatabasesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRegistrationPolicyTargetDatabasesRequest.Builder>, + ListRegistrationPolicyTargetDatabasesRequest>() { + @Override + public ListRegistrationPolicyTargetDatabasesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRegistrationPolicyTargetDatabasesRequest.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< + ListRegistrationPolicyTargetDatabasesRequest, + ListRegistrationPolicyTargetDatabasesResponse>() { + @Override + public ListRegistrationPolicyTargetDatabasesResponse apply( + ListRegistrationPolicyTargetDatabasesRequest request) { + return client.listRegistrationPolicyTargetDatabases(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummary} objects contained in + * responses from the listRegistrationPolicyTargetDatabases 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.RegistrationPolicyTargetDatabaseSummary} objects contained + * in responses received from the service. + */ + public Iterable + listRegistrationPolicyTargetDatabasesRecordIterator( + final ListRegistrationPolicyTargetDatabasesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListRegistrationPolicyTargetDatabasesRequest.Builder, + ListRegistrationPolicyTargetDatabasesRequest, + ListRegistrationPolicyTargetDatabasesResponse, + com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummary>( + new java.util.function.Supplier< + ListRegistrationPolicyTargetDatabasesRequest.Builder>() { + @Override + public ListRegistrationPolicyTargetDatabasesRequest.Builder get() { + return ListRegistrationPolicyTargetDatabasesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListRegistrationPolicyTargetDatabasesResponse, String>() { + @Override + public String apply(ListRegistrationPolicyTargetDatabasesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRegistrationPolicyTargetDatabasesRequest.Builder>, + ListRegistrationPolicyTargetDatabasesRequest>() { + @Override + public ListRegistrationPolicyTargetDatabasesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRegistrationPolicyTargetDatabasesRequest.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< + ListRegistrationPolicyTargetDatabasesRequest, + ListRegistrationPolicyTargetDatabasesResponse>() { + @Override + public ListRegistrationPolicyTargetDatabasesResponse apply( + ListRegistrationPolicyTargetDatabasesRequest request) { + return client.listRegistrationPolicyTargetDatabases(request); + } + }, + new java.util.function.Function< + ListRegistrationPolicyTargetDatabasesResponse, + java.util.List< + com.oracle.bmc.datasafe.model + .RegistrationPolicyTargetDatabaseSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model + .RegistrationPolicyTargetDatabaseSummary> + apply(ListRegistrationPolicyTargetDatabasesResponse response) { + return response.getRegistrationPolicyTargetDatabaseSummaryCollection() + .getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listReportDefinitions operation. This iterable will fetch more data from the server as @@ -10923,6 +11180,1626 @@ public ListSqlFirewallViolationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettedObjects 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 listSubsettedObjectsResponseIterator( + final ListSubsettedObjectsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettedObjectsRequest.Builder, + ListSubsettedObjectsRequest, + ListSubsettedObjectsResponse>( + new java.util.function.Supplier() { + @Override + public ListSubsettedObjectsRequest.Builder get() { + return ListSubsettedObjectsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettedObjectsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettedObjectsRequest.Builder>, + ListSubsettedObjectsRequest>() { + @Override + public ListSubsettedObjectsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettedObjectsRequest.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< + ListSubsettedObjectsRequest, ListSubsettedObjectsResponse>() { + @Override + public ListSubsettedObjectsResponse apply(ListSubsettedObjectsRequest request) { + return client.listSubsettedObjects(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettedObjectSummary} objects contained in responses from the + * listSubsettedObjects 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.SubsettedObjectSummary} objects contained in responses + * received from the service. + */ + public Iterable + listSubsettedObjectsRecordIterator(final ListSubsettedObjectsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettedObjectsRequest.Builder, + ListSubsettedObjectsRequest, + ListSubsettedObjectsResponse, + com.oracle.bmc.datasafe.model.SubsettedObjectSummary>( + new java.util.function.Supplier() { + @Override + public ListSubsettedObjectsRequest.Builder get() { + return ListSubsettedObjectsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettedObjectsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettedObjectsRequest.Builder>, + ListSubsettedObjectsRequest>() { + @Override + public ListSubsettedObjectsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettedObjectsRequest.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< + ListSubsettedObjectsRequest, ListSubsettedObjectsResponse>() { + @Override + public ListSubsettedObjectsResponse apply(ListSubsettedObjectsRequest request) { + return client.listSubsettedObjects(request); + } + }, + new java.util.function.Function< + ListSubsettedObjectsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListSubsettedObjectsResponse response) { + return response.getSubsettedObjectCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingAnalytics 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 listSubsettingAnalyticsResponseIterator( + final ListSubsettingAnalyticsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingAnalyticsRequest.Builder, + ListSubsettingAnalyticsRequest, + ListSubsettingAnalyticsResponse>( + new java.util.function.Supplier() { + @Override + public ListSubsettingAnalyticsRequest.Builder get() { + return ListSubsettingAnalyticsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingAnalyticsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingAnalyticsRequest.Builder>, + ListSubsettingAnalyticsRequest>() { + @Override + public ListSubsettingAnalyticsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingAnalyticsRequest.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< + ListSubsettingAnalyticsRequest, ListSubsettingAnalyticsResponse>() { + @Override + public ListSubsettingAnalyticsResponse apply( + ListSubsettingAnalyticsRequest request) { + return client.listSubsettingAnalytics(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingAnalyticsSummary} objects contained in responses from + * the listSubsettingAnalytics 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.SubsettingAnalyticsSummary} objects contained in responses + * received from the service. + */ + public Iterable + listSubsettingAnalyticsRecordIterator(final ListSubsettingAnalyticsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingAnalyticsRequest.Builder, + ListSubsettingAnalyticsRequest, + ListSubsettingAnalyticsResponse, + com.oracle.bmc.datasafe.model.SubsettingAnalyticsSummary>( + new java.util.function.Supplier() { + @Override + public ListSubsettingAnalyticsRequest.Builder get() { + return ListSubsettingAnalyticsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingAnalyticsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingAnalyticsRequest.Builder>, + ListSubsettingAnalyticsRequest>() { + @Override + public ListSubsettingAnalyticsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingAnalyticsRequest.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< + ListSubsettingAnalyticsRequest, ListSubsettingAnalyticsResponse>() { + @Override + public ListSubsettingAnalyticsResponse apply( + ListSubsettingAnalyticsRequest request) { + return client.listSubsettingAnalytics(request); + } + }, + new java.util.function.Function< + ListSubsettingAnalyticsResponse, + java.util.List< + com.oracle.bmc.datasafe.model.SubsettingAnalyticsSummary>>() { + @Override + public java.util.List + apply(ListSubsettingAnalyticsResponse response) { + return response.getSubsettingAnalyticsCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingErrors 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 listSubsettingErrorsResponseIterator( + final ListSubsettingErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingErrorsRequest.Builder, + ListSubsettingErrorsRequest, + ListSubsettingErrorsResponse>( + new java.util.function.Supplier() { + @Override + public ListSubsettingErrorsRequest.Builder get() { + return ListSubsettingErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingErrorsRequest.Builder>, + ListSubsettingErrorsRequest>() { + @Override + public ListSubsettingErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingErrorsRequest.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< + ListSubsettingErrorsRequest, ListSubsettingErrorsResponse>() { + @Override + public ListSubsettingErrorsResponse apply(ListSubsettingErrorsRequest request) { + return client.listSubsettingErrors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingErrorSummary} objects contained in responses from the + * listSubsettingErrors 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.SubsettingErrorSummary} objects contained in responses + * received from the service. + */ + public Iterable + listSubsettingErrorsRecordIterator(final ListSubsettingErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingErrorsRequest.Builder, + ListSubsettingErrorsRequest, + ListSubsettingErrorsResponse, + com.oracle.bmc.datasafe.model.SubsettingErrorSummary>( + new java.util.function.Supplier() { + @Override + public ListSubsettingErrorsRequest.Builder get() { + return ListSubsettingErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingErrorsRequest.Builder>, + ListSubsettingErrorsRequest>() { + @Override + public ListSubsettingErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingErrorsRequest.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< + ListSubsettingErrorsRequest, ListSubsettingErrorsResponse>() { + @Override + public ListSubsettingErrorsResponse apply(ListSubsettingErrorsRequest request) { + return client.listSubsettingErrors(request); + } + }, + new java.util.function.Function< + ListSubsettingErrorsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListSubsettingErrorsResponse response) { + return response.getSubsettingErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingPolicies 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 listSubsettingPoliciesResponseIterator( + final ListSubsettingPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingPoliciesRequest.Builder, + ListSubsettingPoliciesRequest, + ListSubsettingPoliciesResponse>( + new java.util.function.Supplier() { + @Override + public ListSubsettingPoliciesRequest.Builder get() { + return ListSubsettingPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPoliciesRequest.Builder>, + ListSubsettingPoliciesRequest>() { + @Override + public ListSubsettingPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPoliciesRequest.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< + ListSubsettingPoliciesRequest, ListSubsettingPoliciesResponse>() { + @Override + public ListSubsettingPoliciesResponse apply( + ListSubsettingPoliciesRequest request) { + return client.listSubsettingPolicies(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingPolicySummary} objects contained in responses from + * the listSubsettingPolicies 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.SubsettingPolicySummary} objects contained in responses + * received from the service. + */ + public Iterable + listSubsettingPoliciesRecordIterator(final ListSubsettingPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingPoliciesRequest.Builder, + ListSubsettingPoliciesRequest, + ListSubsettingPoliciesResponse, + com.oracle.bmc.datasafe.model.SubsettingPolicySummary>( + new java.util.function.Supplier() { + @Override + public ListSubsettingPoliciesRequest.Builder get() { + return ListSubsettingPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPoliciesRequest.Builder>, + ListSubsettingPoliciesRequest>() { + @Override + public ListSubsettingPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPoliciesRequest.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< + ListSubsettingPoliciesRequest, ListSubsettingPoliciesResponse>() { + @Override + public ListSubsettingPoliciesResponse apply( + ListSubsettingPoliciesRequest request) { + return client.listSubsettingPolicies(request); + } + }, + new java.util.function.Function< + ListSubsettingPoliciesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListSubsettingPoliciesResponse response) { + return response.getSubsettingPolicyCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingPolicyHealthReportLogs 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 + listSubsettingPolicyHealthReportLogsResponseIterator( + final ListSubsettingPolicyHealthReportLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingPolicyHealthReportLogsRequest.Builder, + ListSubsettingPolicyHealthReportLogsRequest, + ListSubsettingPolicyHealthReportLogsResponse>( + new java.util.function.Supplier< + ListSubsettingPolicyHealthReportLogsRequest.Builder>() { + @Override + public ListSubsettingPolicyHealthReportLogsRequest.Builder get() { + return ListSubsettingPolicyHealthReportLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListSubsettingPolicyHealthReportLogsResponse, String>() { + @Override + public String apply(ListSubsettingPolicyHealthReportLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPolicyHealthReportLogsRequest.Builder>, + ListSubsettingPolicyHealthReportLogsRequest>() { + @Override + public ListSubsettingPolicyHealthReportLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPolicyHealthReportLogsRequest.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< + ListSubsettingPolicyHealthReportLogsRequest, + ListSubsettingPolicyHealthReportLogsResponse>() { + @Override + public ListSubsettingPolicyHealthReportLogsResponse apply( + ListSubsettingPolicyHealthReportLogsRequest request) { + return client.listSubsettingPolicyHealthReportLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogSummary} objects contained in + * responses from the listSubsettingPolicyHealthReportLogs 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.SubsettingPolicyHealthReportLogSummary} objects contained + * in responses received from the service. + */ + public Iterable + listSubsettingPolicyHealthReportLogsRecordIterator( + final ListSubsettingPolicyHealthReportLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingPolicyHealthReportLogsRequest.Builder, + ListSubsettingPolicyHealthReportLogsRequest, + ListSubsettingPolicyHealthReportLogsResponse, + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogSummary>( + new java.util.function.Supplier< + ListSubsettingPolicyHealthReportLogsRequest.Builder>() { + @Override + public ListSubsettingPolicyHealthReportLogsRequest.Builder get() { + return ListSubsettingPolicyHealthReportLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListSubsettingPolicyHealthReportLogsResponse, String>() { + @Override + public String apply(ListSubsettingPolicyHealthReportLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPolicyHealthReportLogsRequest.Builder>, + ListSubsettingPolicyHealthReportLogsRequest>() { + @Override + public ListSubsettingPolicyHealthReportLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPolicyHealthReportLogsRequest.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< + ListSubsettingPolicyHealthReportLogsRequest, + ListSubsettingPolicyHealthReportLogsResponse>() { + @Override + public ListSubsettingPolicyHealthReportLogsResponse apply( + ListSubsettingPolicyHealthReportLogsRequest request) { + return client.listSubsettingPolicyHealthReportLogs(request); + } + }, + new java.util.function.Function< + ListSubsettingPolicyHealthReportLogsResponse, + java.util.List< + com.oracle.bmc.datasafe.model + .SubsettingPolicyHealthReportLogSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model + .SubsettingPolicyHealthReportLogSummary> + apply(ListSubsettingPolicyHealthReportLogsResponse response) { + return response.getSubsettingPolicyHealthReportLogCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingPolicyHealthReports 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 + listSubsettingPolicyHealthReportsResponseIterator( + final ListSubsettingPolicyHealthReportsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingPolicyHealthReportsRequest.Builder, + ListSubsettingPolicyHealthReportsRequest, + ListSubsettingPolicyHealthReportsResponse>( + new java.util.function.Supplier< + ListSubsettingPolicyHealthReportsRequest.Builder>() { + @Override + public ListSubsettingPolicyHealthReportsRequest.Builder get() { + return ListSubsettingPolicyHealthReportsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListSubsettingPolicyHealthReportsResponse, String>() { + @Override + public String apply(ListSubsettingPolicyHealthReportsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPolicyHealthReportsRequest.Builder>, + ListSubsettingPolicyHealthReportsRequest>() { + @Override + public ListSubsettingPolicyHealthReportsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPolicyHealthReportsRequest.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< + ListSubsettingPolicyHealthReportsRequest, + ListSubsettingPolicyHealthReportsResponse>() { + @Override + public ListSubsettingPolicyHealthReportsResponse apply( + ListSubsettingPolicyHealthReportsRequest request) { + return client.listSubsettingPolicyHealthReports(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportSummary} objects contained in + * responses from the listSubsettingPolicyHealthReports 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.SubsettingPolicyHealthReportSummary} objects contained in + * responses received from the service. + */ + public Iterable + listSubsettingPolicyHealthReportsRecordIterator( + final ListSubsettingPolicyHealthReportsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingPolicyHealthReportsRequest.Builder, + ListSubsettingPolicyHealthReportsRequest, + ListSubsettingPolicyHealthReportsResponse, + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportSummary>( + new java.util.function.Supplier< + ListSubsettingPolicyHealthReportsRequest.Builder>() { + @Override + public ListSubsettingPolicyHealthReportsRequest.Builder get() { + return ListSubsettingPolicyHealthReportsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListSubsettingPolicyHealthReportsResponse, String>() { + @Override + public String apply(ListSubsettingPolicyHealthReportsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPolicyHealthReportsRequest.Builder>, + ListSubsettingPolicyHealthReportsRequest>() { + @Override + public ListSubsettingPolicyHealthReportsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingPolicyHealthReportsRequest.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< + ListSubsettingPolicyHealthReportsRequest, + ListSubsettingPolicyHealthReportsResponse>() { + @Override + public ListSubsettingPolicyHealthReportsResponse apply( + ListSubsettingPolicyHealthReportsRequest request) { + return client.listSubsettingPolicyHealthReports(request); + } + }, + new java.util.function.Function< + ListSubsettingPolicyHealthReportsResponse, + java.util.List< + com.oracle.bmc.datasafe.model + .SubsettingPolicyHealthReportSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model + .SubsettingPolicyHealthReportSummary> + apply(ListSubsettingPolicyHealthReportsResponse response) { + return response.getSubsettingPolicyHealthReportCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingReports 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 listSubsettingReportsResponseIterator( + final ListSubsettingReportsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingReportsRequest.Builder, + ListSubsettingReportsRequest, + ListSubsettingReportsResponse>( + new java.util.function.Supplier() { + @Override + public ListSubsettingReportsRequest.Builder get() { + return ListSubsettingReportsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingReportsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingReportsRequest.Builder>, + ListSubsettingReportsRequest>() { + @Override + public ListSubsettingReportsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingReportsRequest.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< + ListSubsettingReportsRequest, ListSubsettingReportsResponse>() { + @Override + public ListSubsettingReportsResponse apply( + ListSubsettingReportsRequest request) { + return client.listSubsettingReports(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingReportSummary} objects contained in responses from + * the listSubsettingReports 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.SubsettingReportSummary} objects contained in responses + * received from the service. + */ + public Iterable + listSubsettingReportsRecordIterator(final ListSubsettingReportsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingReportsRequest.Builder, + ListSubsettingReportsRequest, + ListSubsettingReportsResponse, + com.oracle.bmc.datasafe.model.SubsettingReportSummary>( + new java.util.function.Supplier() { + @Override + public ListSubsettingReportsRequest.Builder get() { + return ListSubsettingReportsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingReportsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingReportsRequest.Builder>, + ListSubsettingReportsRequest>() { + @Override + public ListSubsettingReportsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingReportsRequest.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< + ListSubsettingReportsRequest, ListSubsettingReportsResponse>() { + @Override + public ListSubsettingReportsResponse apply( + ListSubsettingReportsRequest request) { + return client.listSubsettingReports(request); + } + }, + new java.util.function.Function< + ListSubsettingReportsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListSubsettingReportsResponse response) { + return response.getSubsettingReportCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingRuleProcessingChainObjects 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 + listSubsettingRuleProcessingChainObjectsResponseIterator( + final ListSubsettingRuleProcessingChainObjectsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingRuleProcessingChainObjectsRequest.Builder, + ListSubsettingRuleProcessingChainObjectsRequest, + ListSubsettingRuleProcessingChainObjectsResponse>( + new java.util.function.Supplier< + ListSubsettingRuleProcessingChainObjectsRequest.Builder>() { + @Override + public ListSubsettingRuleProcessingChainObjectsRequest.Builder get() { + return ListSubsettingRuleProcessingChainObjectsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListSubsettingRuleProcessingChainObjectsResponse, String>() { + @Override + public String apply(ListSubsettingRuleProcessingChainObjectsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingRuleProcessingChainObjectsRequest.Builder>, + ListSubsettingRuleProcessingChainObjectsRequest>() { + @Override + public ListSubsettingRuleProcessingChainObjectsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingRuleProcessingChainObjectsRequest.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< + ListSubsettingRuleProcessingChainObjectsRequest, + ListSubsettingRuleProcessingChainObjectsResponse>() { + @Override + public ListSubsettingRuleProcessingChainObjectsResponse apply( + ListSubsettingRuleProcessingChainObjectsRequest request) { + return client.listSubsettingRuleProcessingChainObjects(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectSummary} objects contained + * in responses from the listSubsettingRuleProcessingChainObjects 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.SubsettingRuleProcessingChainObjectSummary} objects + * contained in responses received from the service. + */ + public Iterable + listSubsettingRuleProcessingChainObjectsRecordIterator( + final ListSubsettingRuleProcessingChainObjectsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingRuleProcessingChainObjectsRequest.Builder, + ListSubsettingRuleProcessingChainObjectsRequest, + ListSubsettingRuleProcessingChainObjectsResponse, + com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectSummary>( + new java.util.function.Supplier< + ListSubsettingRuleProcessingChainObjectsRequest.Builder>() { + @Override + public ListSubsettingRuleProcessingChainObjectsRequest.Builder get() { + return ListSubsettingRuleProcessingChainObjectsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListSubsettingRuleProcessingChainObjectsResponse, String>() { + @Override + public String apply(ListSubsettingRuleProcessingChainObjectsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingRuleProcessingChainObjectsRequest.Builder>, + ListSubsettingRuleProcessingChainObjectsRequest>() { + @Override + public ListSubsettingRuleProcessingChainObjectsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingRuleProcessingChainObjectsRequest.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< + ListSubsettingRuleProcessingChainObjectsRequest, + ListSubsettingRuleProcessingChainObjectsResponse>() { + @Override + public ListSubsettingRuleProcessingChainObjectsResponse apply( + ListSubsettingRuleProcessingChainObjectsRequest request) { + return client.listSubsettingRuleProcessingChainObjects(request); + } + }, + new java.util.function.Function< + ListSubsettingRuleProcessingChainObjectsResponse, + java.util.List< + com.oracle.bmc.datasafe.model + .SubsettingRuleProcessingChainObjectSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model + .SubsettingRuleProcessingChainObjectSummary> + apply(ListSubsettingRuleProcessingChainObjectsResponse response) { + return response.getSubsettingRuleProcessingChainObjectsCollection() + .getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingRules 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 listSubsettingRulesResponseIterator( + final ListSubsettingRulesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingRulesRequest.Builder, + ListSubsettingRulesRequest, + ListSubsettingRulesResponse>( + new java.util.function.Supplier() { + @Override + public ListSubsettingRulesRequest.Builder get() { + return ListSubsettingRulesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingRulesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingRulesRequest.Builder>, + ListSubsettingRulesRequest>() { + @Override + public ListSubsettingRulesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingRulesRequest.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< + ListSubsettingRulesRequest, ListSubsettingRulesResponse>() { + @Override + public ListSubsettingRulesResponse apply(ListSubsettingRulesRequest request) { + return client.listSubsettingRules(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingRuleSummary} objects contained in responses from the + * listSubsettingRules 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.SubsettingRuleSummary} objects contained in responses + * received from the service. + */ + public Iterable + listSubsettingRulesRecordIterator(final ListSubsettingRulesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingRulesRequest.Builder, + ListSubsettingRulesRequest, + ListSubsettingRulesResponse, + com.oracle.bmc.datasafe.model.SubsettingRuleSummary>( + new java.util.function.Supplier() { + @Override + public ListSubsettingRulesRequest.Builder get() { + return ListSubsettingRulesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingRulesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingRulesRequest.Builder>, + ListSubsettingRulesRequest>() { + @Override + public ListSubsettingRulesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingRulesRequest.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< + ListSubsettingRulesRequest, ListSubsettingRulesResponse>() { + @Override + public ListSubsettingRulesResponse apply(ListSubsettingRulesRequest request) { + return client.listSubsettingRules(request); + } + }, + new java.util.function.Function< + ListSubsettingRulesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListSubsettingRulesResponse response) { + return response.getSubsettingRuleCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingSchemaObjects 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 + listSubsettingSchemaObjectsResponseIterator( + final ListSubsettingSchemaObjectsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingSchemaObjectsRequest.Builder, + ListSubsettingSchemaObjectsRequest, + ListSubsettingSchemaObjectsResponse>( + new java.util.function.Supplier() { + @Override + public ListSubsettingSchemaObjectsRequest.Builder get() { + return ListSubsettingSchemaObjectsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingSchemaObjectsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemaObjectsRequest.Builder>, + ListSubsettingSchemaObjectsRequest>() { + @Override + public ListSubsettingSchemaObjectsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemaObjectsRequest.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< + ListSubsettingSchemaObjectsRequest, ListSubsettingSchemaObjectsResponse>() { + @Override + public ListSubsettingSchemaObjectsResponse apply( + ListSubsettingSchemaObjectsRequest request) { + return client.listSubsettingSchemaObjects(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingSchemaObjectSummary} objects contained in responses + * from the listSubsettingSchemaObjects 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.SubsettingSchemaObjectSummary} objects contained in + * responses received from the service. + */ + public Iterable + listSubsettingSchemaObjectsRecordIterator( + final ListSubsettingSchemaObjectsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingSchemaObjectsRequest.Builder, + ListSubsettingSchemaObjectsRequest, + ListSubsettingSchemaObjectsResponse, + com.oracle.bmc.datasafe.model.SubsettingSchemaObjectSummary>( + new java.util.function.Supplier() { + @Override + public ListSubsettingSchemaObjectsRequest.Builder get() { + return ListSubsettingSchemaObjectsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingSchemaObjectsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemaObjectsRequest.Builder>, + ListSubsettingSchemaObjectsRequest>() { + @Override + public ListSubsettingSchemaObjectsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemaObjectsRequest.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< + ListSubsettingSchemaObjectsRequest, ListSubsettingSchemaObjectsResponse>() { + @Override + public ListSubsettingSchemaObjectsResponse apply( + ListSubsettingSchemaObjectsRequest request) { + return client.listSubsettingSchemaObjects(request); + } + }, + new java.util.function.Function< + ListSubsettingSchemaObjectsResponse, + java.util.List< + com.oracle.bmc.datasafe.model.SubsettingSchemaObjectSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model.SubsettingSchemaObjectSummary> + apply(ListSubsettingSchemaObjectsResponse response) { + return response.getSubsettingSchemaObjectCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingSchemaRelations 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 + listSubsettingSchemaRelationsResponseIterator( + final ListSubsettingSchemaRelationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingSchemaRelationsRequest.Builder, + ListSubsettingSchemaRelationsRequest, + ListSubsettingSchemaRelationsResponse>( + new java.util.function.Supplier() { + @Override + public ListSubsettingSchemaRelationsRequest.Builder get() { + return ListSubsettingSchemaRelationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingSchemaRelationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemaRelationsRequest.Builder>, + ListSubsettingSchemaRelationsRequest>() { + @Override + public ListSubsettingSchemaRelationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemaRelationsRequest.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< + ListSubsettingSchemaRelationsRequest, + ListSubsettingSchemaRelationsResponse>() { + @Override + public ListSubsettingSchemaRelationsResponse apply( + ListSubsettingSchemaRelationsRequest request) { + return client.listSubsettingSchemaRelations(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingSchemaRelationSummary} objects contained in responses + * from the listSubsettingSchemaRelations 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.SubsettingSchemaRelationSummary} objects contained in + * responses received from the service. + */ + public Iterable + listSubsettingSchemaRelationsRecordIterator( + final ListSubsettingSchemaRelationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingSchemaRelationsRequest.Builder, + ListSubsettingSchemaRelationsRequest, + ListSubsettingSchemaRelationsResponse, + com.oracle.bmc.datasafe.model.SubsettingSchemaRelationSummary>( + new java.util.function.Supplier() { + @Override + public ListSubsettingSchemaRelationsRequest.Builder get() { + return ListSubsettingSchemaRelationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingSchemaRelationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemaRelationsRequest.Builder>, + ListSubsettingSchemaRelationsRequest>() { + @Override + public ListSubsettingSchemaRelationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemaRelationsRequest.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< + ListSubsettingSchemaRelationsRequest, + ListSubsettingSchemaRelationsResponse>() { + @Override + public ListSubsettingSchemaRelationsResponse apply( + ListSubsettingSchemaRelationsRequest request) { + return client.listSubsettingSchemaRelations(request); + } + }, + new java.util.function.Function< + ListSubsettingSchemaRelationsResponse, + java.util.List< + com.oracle.bmc.datasafe.model.SubsettingSchemaRelationSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model.SubsettingSchemaRelationSummary> + apply(ListSubsettingSchemaRelationsResponse response) { + return response.getSubsettingSchemaRelationCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSubsettingSchemas 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 listSubsettingSchemasResponseIterator( + final ListSubsettingSchemasRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSubsettingSchemasRequest.Builder, + ListSubsettingSchemasRequest, + ListSubsettingSchemasResponse>( + new java.util.function.Supplier() { + @Override + public ListSubsettingSchemasRequest.Builder get() { + return ListSubsettingSchemasRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingSchemasResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemasRequest.Builder>, + ListSubsettingSchemasRequest>() { + @Override + public ListSubsettingSchemasRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemasRequest.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< + ListSubsettingSchemasRequest, ListSubsettingSchemasResponse>() { + @Override + public ListSubsettingSchemasResponse apply( + ListSubsettingSchemasRequest request) { + return client.listSubsettingSchemas(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.SubsettingSchemaSummary} objects contained in responses from + * the listSubsettingSchemas 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.SubsettingSchemaSummary} objects contained in responses + * received from the service. + */ + public Iterable + listSubsettingSchemasRecordIterator(final ListSubsettingSchemasRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSubsettingSchemasRequest.Builder, + ListSubsettingSchemasRequest, + ListSubsettingSchemasResponse, + com.oracle.bmc.datasafe.model.SubsettingSchemaSummary>( + new java.util.function.Supplier() { + @Override + public ListSubsettingSchemasRequest.Builder get() { + return ListSubsettingSchemasRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSubsettingSchemasResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemasRequest.Builder>, + ListSubsettingSchemasRequest>() { + @Override + public ListSubsettingSchemasRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSubsettingSchemasRequest.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< + ListSubsettingSchemasRequest, ListSubsettingSchemasResponse>() { + @Override + public ListSubsettingSchemasResponse apply( + ListSubsettingSchemasRequest request) { + return client.listSubsettingSchemas(request); + } + }, + new java.util.function.Function< + ListSubsettingSchemasResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListSubsettingSchemasResponse response) { + return response.getSubsettingSchemaCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listTableEstimates 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 listTableEstimatesResponseIterator( + final ListTableEstimatesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTableEstimatesRequest.Builder, + ListTableEstimatesRequest, + ListTableEstimatesResponse>( + new java.util.function.Supplier() { + @Override + public ListTableEstimatesRequest.Builder get() { + return ListTableEstimatesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListTableEstimatesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTableEstimatesRequest.Builder>, + ListTableEstimatesRequest>() { + @Override + public ListTableEstimatesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTableEstimatesRequest.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< + ListTableEstimatesRequest, ListTableEstimatesResponse>() { + @Override + public ListTableEstimatesResponse apply(ListTableEstimatesRequest request) { + return client.listTableEstimates(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.TableEstimateSummary} objects contained in responses from the + * listTableEstimates 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.TableEstimateSummary} objects contained in responses + * received from the service. + */ + public Iterable + listTableEstimatesRecordIterator(final ListTableEstimatesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTableEstimatesRequest.Builder, + ListTableEstimatesRequest, + ListTableEstimatesResponse, + com.oracle.bmc.datasafe.model.TableEstimateSummary>( + new java.util.function.Supplier() { + @Override + public ListTableEstimatesRequest.Builder get() { + return ListTableEstimatesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListTableEstimatesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTableEstimatesRequest.Builder>, + ListTableEstimatesRequest>() { + @Override + public ListTableEstimatesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTableEstimatesRequest.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< + ListTableEstimatesRequest, ListTableEstimatesResponse>() { + @Override + public ListTableEstimatesResponse apply(ListTableEstimatesRequest request) { + return client.listTableEstimates(request); + } + }, + new java.util.function.Function< + ListTableEstimatesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListTableEstimatesResponse response) { + return response.getTableEstimateCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listTables * operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeWaiters.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeWaiters.java index fab5d5bd002..fa1fc51232c 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeWaiters.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeWaiters.java @@ -2263,6 +2263,114 @@ public boolean test(GetReferentialRelationResponse 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 + forRegistrationPolicy( + GetRegistrationPolicyRequest request, + com.oracle.bmc.datasafe.model.RegistrationPolicy.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 forRegistrationPolicy( + 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 + forRegistrationPolicy( + GetRegistrationPolicyRequest request, + com.oracle.bmc.datasafe.model.RegistrationPolicy.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 forRegistrationPolicy( + 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 + forRegistrationPolicy( + GetRegistrationPolicyRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datasafe.model.RegistrationPolicy.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 forRegistrationPolicy( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for RegistrationPolicy. + private com.oracle.bmc.waiter.Waiter< + GetRegistrationPolicyRequest, GetRegistrationPolicyResponse> + forRegistrationPolicy( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetRegistrationPolicyRequest request, + final com.oracle.bmc.datasafe.model.RegistrationPolicy.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< + GetRegistrationPolicyRequest, GetRegistrationPolicyResponse>() { + @Override + public GetRegistrationPolicyResponse apply( + GetRegistrationPolicyRequest request) { + return client.getRegistrationPolicy(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetRegistrationPolicyResponse response) { + return targetStatesSet.contains( + response.getRegistrationPolicy().getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -4125,6 +4233,337 @@ public boolean test(GetSqlFirewallPolicyResponse 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 + forSubsettingPolicy( + GetSubsettingPolicyRequest request, + com.oracle.bmc.datasafe.model.SubsettingPolicy.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 forSubsettingPolicy( + 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 + forSubsettingPolicy( + GetSubsettingPolicyRequest request, + com.oracle.bmc.datasafe.model.SubsettingPolicy.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 forSubsettingPolicy( + 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 + forSubsettingPolicy( + GetSubsettingPolicyRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datasafe.model.SubsettingPolicy.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 forSubsettingPolicy( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for SubsettingPolicy. + private com.oracle.bmc.waiter.Waiter + forSubsettingPolicy( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetSubsettingPolicyRequest request, + final com.oracle.bmc.datasafe.model.SubsettingPolicy.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< + GetSubsettingPolicyRequest, GetSubsettingPolicyResponse>() { + @Override + public GetSubsettingPolicyResponse apply( + GetSubsettingPolicyRequest request) { + return client.getSubsettingPolicy(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetSubsettingPolicyResponse response) { + return targetStatesSet.contains( + response.getSubsettingPolicy().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datasafe.model.SubsettingPolicy.LifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetSubsettingPolicyHealthReportRequest, GetSubsettingPolicyHealthReportResponse> + forSubsettingPolicyHealthReport( + GetSubsettingPolicyHealthReportRequest request, + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport.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 forSubsettingPolicyHealthReport( + 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< + GetSubsettingPolicyHealthReportRequest, GetSubsettingPolicyHealthReportResponse> + forSubsettingPolicyHealthReport( + GetSubsettingPolicyHealthReportRequest request, + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport.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 forSubsettingPolicyHealthReport( + 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< + GetSubsettingPolicyHealthReportRequest, GetSubsettingPolicyHealthReportResponse> + forSubsettingPolicyHealthReport( + GetSubsettingPolicyHealthReportRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport.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 forSubsettingPolicyHealthReport( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for SubsettingPolicyHealthReport. + private com.oracle.bmc.waiter.Waiter< + GetSubsettingPolicyHealthReportRequest, GetSubsettingPolicyHealthReportResponse> + forSubsettingPolicyHealthReport( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetSubsettingPolicyHealthReportRequest request, + final com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport.LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetSubsettingPolicyHealthReportRequest, + GetSubsettingPolicyHealthReportResponse>() { + @Override + public GetSubsettingPolicyHealthReportResponse apply( + GetSubsettingPolicyHealthReportRequest request) { + return client.getSubsettingPolicyHealthReport(request); + } + }, + new java.util.function.Predicate< + GetSubsettingPolicyHealthReportResponse>() { + @Override + public boolean test(GetSubsettingPolicyHealthReportResponse response) { + return targetStatesSet.contains( + response.getSubsettingPolicyHealthReport() + .getLifecycleState()); + } + }, + false), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forSubsettingReport( + GetSubsettingReportRequest request, + com.oracle.bmc.datasafe.model.SubsettingReport.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 forSubsettingReport( + 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 + forSubsettingReport( + GetSubsettingReportRequest request, + com.oracle.bmc.datasafe.model.SubsettingReport.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 forSubsettingReport( + 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 + forSubsettingReport( + GetSubsettingReportRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datasafe.model.SubsettingReport.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 forSubsettingReport( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for SubsettingReport. + private com.oracle.bmc.waiter.Waiter + forSubsettingReport( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetSubsettingReportRequest request, + final com.oracle.bmc.datasafe.model.SubsettingReport.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< + GetSubsettingReportRequest, GetSubsettingReportResponse>() { + @Override + public GetSubsettingReportResponse apply( + GetSubsettingReportRequest request) { + return client.getSubsettingReport(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetSubsettingReportResponse response) { + return targetStatesSet.contains( + response.getSubsettingReport().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datasafe.model.SubsettingReport.LifecycleState + .Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeRegistrationPolicyCompartmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeRegistrationPolicyCompartmentDetails.java new file mode 100644 index 00000000000..1036e98899d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeRegistrationPolicyCompartmentDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * The details required to move a registration policy to a different compartment. This object + * contains the OCID of the compartment to which the registration policy should be moved.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = ChangeRegistrationPolicyCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeRegistrationPolicyCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeRegistrationPolicyCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the compartment to which the registration policy should be moved. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment to which the registration policy should be moved. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeRegistrationPolicyCompartmentDetails build() { + ChangeRegistrationPolicyCompartmentDetails model = + new ChangeRegistrationPolicyCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeRegistrationPolicyCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the compartment to which the registration policy should be moved. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment to which the registration policy should be moved. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeRegistrationPolicyCompartmentDetails("); + 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 ChangeRegistrationPolicyCompartmentDetails)) { + return false; + } + + ChangeRegistrationPolicyCompartmentDetails other = + (ChangeRegistrationPolicyCompartmentDetails) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeSubsettingPolicyCompartmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeSubsettingPolicyCompartmentDetails.java new file mode 100644 index 00000000000..9aa9206c34b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeSubsettingPolicyCompartmentDetails.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.datasafe.model; + +/** + * Details to change the compartment of a subsetting policy
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeSubsettingPolicyCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeSubsettingPolicyCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeSubsettingPolicyCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the compartment where the subsetting policy should be moved */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment where the subsetting policy should be moved + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeSubsettingPolicyCompartmentDetails build() { + ChangeSubsettingPolicyCompartmentDetails model = + new ChangeSubsettingPolicyCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeSubsettingPolicyCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the compartment where the subsetting policy should be moved */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment where the subsetting policy should be moved + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeSubsettingPolicyCompartmentDetails("); + 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 ChangeSubsettingPolicyCompartmentDetails)) { + return false; + } + + ChangeSubsettingPolicyCompartmentDetails other = + (ChangeSubsettingPolicyCompartmentDetails) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeSubsettingPolicyHealthReportCompartmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeSubsettingPolicyHealthReportCompartmentDetails.java new file mode 100644 index 00000000000..b19554bf655 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeSubsettingPolicyHealthReportCompartmentDetails.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.datasafe.model; + +/** + * Details to change the compartment of a subsetting policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeSubsettingPolicyHealthReportCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeSubsettingPolicyHealthReportCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeSubsettingPolicyHealthReportCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the compartment where the subsetting policy should be moved. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment where the subsetting policy should be moved. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeSubsettingPolicyHealthReportCompartmentDetails build() { + ChangeSubsettingPolicyHealthReportCompartmentDetails model = + new ChangeSubsettingPolicyHealthReportCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeSubsettingPolicyHealthReportCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the compartment where the subsetting policy should be moved. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment where the subsetting policy should be moved. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeSubsettingPolicyHealthReportCompartmentDetails("); + 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 ChangeSubsettingPolicyHealthReportCompartmentDetails)) { + return false; + } + + ChangeSubsettingPolicyHealthReportCompartmentDetails other = + (ChangeSubsettingPolicyHealthReportCompartmentDetails) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ConditionSubsetRuleEntry.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ConditionSubsetRuleEntry.java new file mode 100644 index 00000000000..19159312948 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ConditionSubsetRuleEntry.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.datasafe.model; + +/** + * Defines a subsetting rule based on a SQL condition to filter rows
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = ConditionSubsetRuleEntry.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ruleType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ConditionSubsetRuleEntry extends SubsetRuleEntry { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The SQL WHERE clause condition used to filter rows for the subset */ + @com.fasterxml.jackson.annotation.JsonProperty("condition") + private String condition; + + /** + * The SQL WHERE clause condition used to filter rows for the subset + * + * @param condition the value to set + * @return this builder + */ + public Builder condition(String condition) { + this.condition = condition; + this.__explicitlySet__.add("condition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConditionSubsetRuleEntry build() { + ConditionSubsetRuleEntry model = new ConditionSubsetRuleEntry(this.condition); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConditionSubsetRuleEntry model) { + if (model.wasPropertyExplicitlySet("condition")) { + this.condition(model.getCondition()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ConditionSubsetRuleEntry(String condition) { + super(); + this.condition = condition; + } + + /** The SQL WHERE clause condition used to filter rows for the subset */ + @com.fasterxml.jackson.annotation.JsonProperty("condition") + private final String condition; + + /** + * The SQL WHERE clause condition used to filter rows for the subset + * + * @return the value + */ + public String getCondition() { + return condition; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConditionSubsetRuleEntry("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", condition=").append(String.valueOf(this.condition)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConditionSubsetRuleEntry)) { + return false; + } + + ConditionSubsetRuleEntry other = (ConditionSubsetRuleEntry) o; + return java.util.Objects.equals(this.condition, other.condition) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.condition == null ? 43 : this.condition.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateRegistrationPolicyDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateRegistrationPolicyDetails.java new file mode 100644 index 00000000000..8cbf2a0a3c3 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateRegistrationPolicyDetails.java @@ -0,0 +1,484 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * The details required to create a new registration policy. This object contains the necessary + * information to create a registration policy, including the compartment ID, resource ID, and + * features.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = CreateRegistrationPolicyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateRegistrationPolicyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "description", + "resourceId", + "canOverrideFeatures", + "features", + "connectionOption", + "freeformTags", + "definedTags" + }) + public CreateRegistrationPolicyDetails( + String compartmentId, + String displayName, + String description, + String resourceId, + Boolean canOverrideFeatures, + java.util.List features, + PolicyConnectionOption connectionOption, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.resourceId = resourceId; + this.canOverrideFeatures = canOverrideFeatures; + this.features = features; + this.connectionOption = connectionOption; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the compartment where the registration policy will be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment where the registration policy will be created. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the registration policy. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** A description of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of the registration policy. + * + * @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 of the resource used in the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID of the resource used in the registration policy. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** Indicates whether features will be overridden for all targets. */ + @com.fasterxml.jackson.annotation.JsonProperty("canOverrideFeatures") + private Boolean canOverrideFeatures; + + /** + * Indicates whether features will be overridden for all targets. + * + * @param canOverrideFeatures the value to set + * @return this builder + */ + public Builder canOverrideFeatures(Boolean canOverrideFeatures) { + this.canOverrideFeatures = canOverrideFeatures; + this.__explicitlySet__.add("canOverrideFeatures"); + return this; + } + /** + * The Data Safe features granted to the databases registering under the registration + * policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * The Data Safe features granted to the databases registering under the registration + * policy. + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionOption") + private PolicyConnectionOption connectionOption; + + public Builder connectionOption(PolicyConnectionOption connectionOption) { + this.connectionOption = connectionOption; + this.__explicitlySet__.add("connectionOption"); + 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 CreateRegistrationPolicyDetails build() { + CreateRegistrationPolicyDetails model = + new CreateRegistrationPolicyDetails( + this.compartmentId, + this.displayName, + this.description, + this.resourceId, + this.canOverrideFeatures, + this.features, + this.connectionOption, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateRegistrationPolicyDetails 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("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("canOverrideFeatures")) { + this.canOverrideFeatures(model.getCanOverrideFeatures()); + } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } + if (model.wasPropertyExplicitlySet("connectionOption")) { + this.connectionOption(model.getConnectionOption()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the compartment where the registration policy will be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment where the registration policy will be created. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the registration policy. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** A description of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the registration policy. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The OCID of the resource used in the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID of the resource used in the registration policy. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** Indicates whether features will be overridden for all targets. */ + @com.fasterxml.jackson.annotation.JsonProperty("canOverrideFeatures") + private final Boolean canOverrideFeatures; + + /** + * Indicates whether features will be overridden for all targets. + * + * @return the value + */ + public Boolean getCanOverrideFeatures() { + return canOverrideFeatures; + } + + /** + * The Data Safe features granted to the databases registering under the registration policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * The Data Safe features granted to the databases registering under the registration policy. + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionOption") + private final PolicyConnectionOption connectionOption; + + public PolicyConnectionOption getConnectionOption() { + return connectionOption; + } + + /** + * 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("CreateRegistrationPolicyDetails("); + 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(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", canOverrideFeatures=").append(String.valueOf(this.canOverrideFeatures)); + sb.append(", features=").append(String.valueOf(this.features)); + sb.append(", connectionOption=").append(String.valueOf(this.connectionOption)); + 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 CreateRegistrationPolicyDetails)) { + return false; + } + + CreateRegistrationPolicyDetails other = (CreateRegistrationPolicyDetails) 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.resourceId, other.resourceId) + && java.util.Objects.equals(this.canOverrideFeatures, other.canOverrideFeatures) + && java.util.Objects.equals(this.features, other.features) + && java.util.Objects.equals(this.connectionOption, other.connectionOption) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.canOverrideFeatures == null + ? 43 + : this.canOverrideFeatures.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); + result = + (result * PRIME) + + (this.connectionOption == null ? 43 : this.connectionOption.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceDetails.java new file mode 100644 index 00000000000..6cdc4ad2123 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceDetails.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.datasafe.model; + +/** + * The source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource", + defaultImpl = CreateSchemaSourceDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateSchemaSourceFromSdmDetails.class, + name = "SENSITIVE_DATA_MODEL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateSchemaSourceFromTargetDetails.class, + name = "TARGET") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateSchemaSourceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateSchemaSourceDetails() { + 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("CreateSchemaSourceDetails("); + 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 CreateSchemaSourceDetails)) { + return false; + } + + CreateSchemaSourceDetails other = (CreateSchemaSourceDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** The source of subsetting schemas */ + public enum SchemaSource implements com.oracle.bmc.http.internal.BmcEnum { + Target("TARGET"), + SensitiveDataModel("SENSITIVE_DATA_MODEL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SchemaSource v : SchemaSource.values()) { + map.put(v.getValue(), v); + } + } + + SchemaSource(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SchemaSource create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SchemaSource: " + key); + } + }; +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceFromSdmDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceFromSdmDetails.java new file mode 100644 index 00000000000..a3a9b35c006 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceFromSdmDetails.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.datasafe.model; + +/** + * Details of the sensitive data model that's used as the source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = CreateSchemaSourceFromSdmDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSchemaSourceFromSdmDetails extends CreateSchemaSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the sensitive data model that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("sensitiveDataModelId") + private String sensitiveDataModelId; + + /** + * The OCID of the sensitive data model that's used as the source of subsetting schemas + * + * @param sensitiveDataModelId the value to set + * @return this builder + */ + public Builder sensitiveDataModelId(String sensitiveDataModelId) { + this.sensitiveDataModelId = sensitiveDataModelId; + this.__explicitlySet__.add("sensitiveDataModelId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateSchemaSourceFromSdmDetails build() { + CreateSchemaSourceFromSdmDetails model = + new CreateSchemaSourceFromSdmDetails(this.sensitiveDataModelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSchemaSourceFromSdmDetails model) { + if (model.wasPropertyExplicitlySet("sensitiveDataModelId")) { + this.sensitiveDataModelId(model.getSensitiveDataModelId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateSchemaSourceFromSdmDetails(String sensitiveDataModelId) { + super(); + this.sensitiveDataModelId = sensitiveDataModelId; + } + + /** The OCID of the sensitive data model that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("sensitiveDataModelId") + private final String sensitiveDataModelId; + + /** + * The OCID of the sensitive data model that's used as the source of subsetting schemas + * + * @return the value + */ + public String getSensitiveDataModelId() { + return sensitiveDataModelId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateSchemaSourceFromSdmDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sensitiveDataModelId=").append(String.valueOf(this.sensitiveDataModelId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSchemaSourceFromSdmDetails)) { + return false; + } + + CreateSchemaSourceFromSdmDetails other = (CreateSchemaSourceFromSdmDetails) o; + return java.util.Objects.equals(this.sensitiveDataModelId, other.sensitiveDataModelId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sensitiveDataModelId == null + ? 43 + : this.sensitiveDataModelId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceFromTargetDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceFromTargetDetails.java new file mode 100644 index 00000000000..2ac87f8931c --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSchemaSourceFromTargetDetails.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details of the target database that's used as the source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = CreateSchemaSourceFromTargetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSchemaSourceFromTargetDetails extends CreateSchemaSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the target database that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database that's used as the source of subsetting schemas + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The schemas to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("schemasForSubsetting") + private java.util.List schemasForSubsetting; + + /** + * The schemas to be subsetted + * + * @param schemasForSubsetting the value to set + * @return this builder + */ + public Builder schemasForSubsetting(java.util.List schemasForSubsetting) { + this.schemasForSubsetting = schemasForSubsetting; + this.__explicitlySet__.add("schemasForSubsetting"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateSchemaSourceFromTargetDetails build() { + CreateSchemaSourceFromTargetDetails model = + new CreateSchemaSourceFromTargetDetails( + this.targetId, this.schemasForSubsetting); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSchemaSourceFromTargetDetails model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("schemasForSubsetting")) { + this.schemasForSubsetting(model.getSchemasForSubsetting()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateSchemaSourceFromTargetDetails( + String targetId, java.util.List schemasForSubsetting) { + super(); + this.targetId = targetId; + this.schemasForSubsetting = schemasForSubsetting; + } + + /** The OCID of the target database that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database that's used as the source of subsetting schemas + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The schemas to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("schemasForSubsetting") + private final java.util.List schemasForSubsetting; + + /** + * The schemas to be subsetted + * + * @return the value + */ + public java.util.List getSchemasForSubsetting() { + return schemasForSubsetting; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateSchemaSourceFromTargetDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", schemasForSubsetting=").append(String.valueOf(this.schemasForSubsetting)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSchemaSourceFromTargetDetails)) { + return false; + } + + CreateSchemaSourceFromTargetDetails other = (CreateSchemaSourceFromTargetDetails) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.schemasForSubsetting, other.schemasForSubsetting) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.schemasForSubsetting == null + ? 43 + : this.schemasForSubsetting.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingPolicyDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingPolicyDetails.java new file mode 100644 index 00000000000..42e8d74e2f8 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingPolicyDetails.java @@ -0,0 +1,802 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details to create a new subsetting policy. Use either a sensitive data model or a target database + * as the source of schemas for subsetting. To use a sensitive data model as the source of schemas, + * set the schemaSource attribute to SENSITIVE_DATA_MODEL and provide the sensitiveDataModelId + * attribute. The schemas from the SDM will be used for subsetting. To use a target database as the + * source of schemas, set the schemaSource attribute to TARGET and provide the targetId attribute + * along with the schemasForSubsetting list. The schema list can also be provided or updated later + * using the UpdateSubsettingPolicy operation. After creating a subsetting policy, you can use + * operations to add or modify subsetting rules as needed
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = CreateSubsettingPolicyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSubsettingPolicyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "compartmentId", + "description", + "isRedoLoggingEnabled", + "isRefreshStatsEnabled", + "parallelDegree", + "recompile", + "unrelatedTablesAction", + "preSubsettingScript", + "postSubsettingScript", + "schemaSource", + "maskingPolicyId", + "freeformTags", + "definedTags" + }) + public CreateSubsettingPolicyDetails( + String displayName, + String compartmentId, + String description, + Boolean isRedoLoggingEnabled, + Boolean isRefreshStatsEnabled, + String parallelDegree, + SubsettingPolicy.Recompile recompile, + SubsettingPolicy.UnrelatedTablesAction unrelatedTablesAction, + String preSubsettingScript, + String postSubsettingScript, + CreateSchemaSourceDetails schemaSource, + String maskingPolicyId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.compartmentId = compartmentId; + this.description = description; + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.parallelDegree = parallelDegree; + this.recompile = recompile; + this.unrelatedTablesAction = unrelatedTablesAction; + this.preSubsettingScript = preSubsettingScript; + this.postSubsettingScript = postSubsettingScript; + this.schemaSource = schemaSource; + this.maskingPolicyId = maskingPolicyId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The display name of the subsetting policy. The name does not have to be unique, and it's + * changeable + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the subsetting policy. The 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; + } + /** The OCID of the compartment where the subsetting policy should be created */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment where the subsetting policy should be created + * + * @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 of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the subsetting policy + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by + * default. Set this attribute to true to enable redo logging. By default, subsetting + * disables redo logging and flashback logging to purge any original data from logs. + * However, in certain circumstances when you only want to test subsetting, rollback + * changes, and retry subsetting, you could enable logging and use a flashback database to + * retrieve the original data after it has been subsetted + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by + * default. Set this attribute to true to enable redo logging. By default, subsetting + * disables redo logging and flashback logging to purge any original data from logs. + * However, in certain circumstances when you only want to test subsetting, rollback + * changes, and retry subsetting, you could enable logging and use a flashback database to + * retrieve the original data after it has been subsetted + * + * @param isRedoLoggingEnabled the value to set + * @return this builder + */ + public Builder isRedoLoggingEnabled(Boolean isRedoLoggingEnabled) { + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.__explicitlySet__.add("isRedoLoggingEnabled"); + return this; + } + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute + * to false to disable statistics gathering. The subsetting process gathers statistics on + * subsetted database tables after subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute + * to false to disable statistics gathering. The subsetting process gathers statistics on + * subsetted database tables after subsetting completes + * + * @param isRefreshStatsEnabled the value to set + * @return this builder + */ + public Builder isRefreshStatsEnabled(Boolean isRefreshStatsEnabled) { + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.__explicitlySet__.add("isRefreshStatsEnabled"); + return this; + } + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed + * values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum + * degree of parallelism) or an integer value to be used as the degree of parallelism. + * Parallel execution helps effectively use multiple CPUs and improve subsetting + * performance. Refer to the Oracle Database parallel execution framework when choosing an + * explicit degree of parallelism + */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private String parallelDegree; + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed + * values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum + * degree of parallelism) or an integer value to be used as the degree of parallelism. + * Parallel execution helps effectively use multiple CPUs and improve subsetting + * performance. Refer to the Oracle Database parallel execution framework when choosing an + * explicit degree of parallelism + * + * @param parallelDegree the value to set + * @return this builder + */ + public Builder parallelDegree(String parallelDegree) { + this.parallelDegree = parallelDegree; + this.__explicitlySet__.add("parallelDegree"); + return this; + } + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are + * 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not + * recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use + * the built-in UTL_RECOMP package to recompile any remaining invalid objects after + * subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private SubsettingPolicy.Recompile recompile; + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are + * 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not + * recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use + * the built-in UTL_RECOMP package to recompile any remaining invalid objects after + * subsetting completes + * + * @param recompile the value to set + * @return this builder + */ + public Builder recompile(SubsettingPolicy.Recompile recompile) { + this.recompile = recompile; + this.__explicitlySet__.add("recompile"); + return this; + } + /** + * Strategy to be applied for tables which are not impacted by any of the subsetting rules + */ + @com.fasterxml.jackson.annotation.JsonProperty("unrelatedTablesAction") + private SubsettingPolicy.UnrelatedTablesAction unrelatedTablesAction; + + /** + * Strategy to be applied for tables which are not impacted by any of the subsetting rules + * + * @param unrelatedTablesAction the value to set + * @return this builder + */ + public Builder unrelatedTablesAction( + SubsettingPolicy.UnrelatedTablesAction unrelatedTablesAction) { + this.unrelatedTablesAction = unrelatedTablesAction; + this.__explicitlySet__.add("unrelatedTablesAction"); + return this; + } + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * before the subsetting process. It's usually used to perform any preparation or + * prerequisite work before subsetting data. + */ + @com.fasterxml.jackson.annotation.JsonProperty("preSubsettingScript") + private String preSubsettingScript; + + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * before the subsetting process. It's usually used to perform any preparation or + * prerequisite work before subsetting data. + * + * @param preSubsettingScript the value to set + * @return this builder + */ + public Builder preSubsettingScript(String preSubsettingScript) { + this.preSubsettingScript = preSubsettingScript; + this.__explicitlySet__.add("preSubsettingScript"); + return this; + } + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * after the subsetting process. It's usually used to perform additional transformation or + * cleanup work after subsetting data. + */ + @com.fasterxml.jackson.annotation.JsonProperty("postSubsettingScript") + private String postSubsettingScript; + + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * after the subsetting process. It's usually used to perform additional transformation or + * cleanup work after subsetting data. + * + * @param postSubsettingScript the value to set + * @return this builder + */ + public Builder postSubsettingScript(String postSubsettingScript) { + this.postSubsettingScript = postSubsettingScript; + this.__explicitlySet__.add("postSubsettingScript"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schemaSource") + private CreateSchemaSourceDetails schemaSource; + + public Builder schemaSource(CreateSchemaSourceDetails schemaSource) { + this.schemaSource = schemaSource; + this.__explicitlySet__.add("schemaSource"); + return this; + } + /** The OCID of the masking policy to associate with this subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private String maskingPolicyId; + + /** + * The OCID of the masking policy to associate with this subsetting policy + * + * @param maskingPolicyId the value to set + * @return this builder + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + this.__explicitlySet__.add("maskingPolicyId"); + 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 CreateSubsettingPolicyDetails build() { + CreateSubsettingPolicyDetails model = + new CreateSubsettingPolicyDetails( + this.displayName, + this.compartmentId, + this.description, + this.isRedoLoggingEnabled, + this.isRefreshStatsEnabled, + this.parallelDegree, + this.recompile, + this.unrelatedTablesAction, + this.preSubsettingScript, + this.postSubsettingScript, + this.schemaSource, + this.maskingPolicyId, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSubsettingPolicyDetails 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("isRedoLoggingEnabled")) { + this.isRedoLoggingEnabled(model.getIsRedoLoggingEnabled()); + } + if (model.wasPropertyExplicitlySet("isRefreshStatsEnabled")) { + this.isRefreshStatsEnabled(model.getIsRefreshStatsEnabled()); + } + if (model.wasPropertyExplicitlySet("parallelDegree")) { + this.parallelDegree(model.getParallelDegree()); + } + if (model.wasPropertyExplicitlySet("recompile")) { + this.recompile(model.getRecompile()); + } + if (model.wasPropertyExplicitlySet("unrelatedTablesAction")) { + this.unrelatedTablesAction(model.getUnrelatedTablesAction()); + } + if (model.wasPropertyExplicitlySet("preSubsettingScript")) { + this.preSubsettingScript(model.getPreSubsettingScript()); + } + if (model.wasPropertyExplicitlySet("postSubsettingScript")) { + this.postSubsettingScript(model.getPostSubsettingScript()); + } + if (model.wasPropertyExplicitlySet("schemaSource")) { + this.schemaSource(model.getSchemaSource()); + } + if (model.wasPropertyExplicitlySet("maskingPolicyId")) { + this.maskingPolicyId(model.getMaskingPolicyId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The display name of the subsetting policy. The name does not have to be unique, and it's + * changeable + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the subsetting policy. The name does not have to be unique, and it's + * changeable + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the compartment where the subsetting policy should be created */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment where the subsetting policy should be created + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The description of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the subsetting policy + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. + * Set this attribute to true to enable redo logging. By default, subsetting disables redo + * logging and flashback logging to purge any original data from logs. However, in certain + * circumstances when you only want to test subsetting, rollback changes, and retry subsetting, + * you could enable logging and use a flashback database to retrieve the original data after it + * has been subsetted + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private final Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. + * Set this attribute to true to enable redo logging. By default, subsetting disables redo + * logging and flashback logging to purge any original data from logs. However, in certain + * circumstances when you only want to test subsetting, rollback changes, and retry subsetting, + * you could enable logging and use a flashback database to retrieve the original data after it + * has been subsetted + * + * @return the value + */ + public Boolean getIsRedoLoggingEnabled() { + return isRedoLoggingEnabled; + } + + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to + * false to disable statistics gathering. The subsetting process gathers statistics on subsetted + * database tables after subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private final Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to + * false to disable statistics gathering. The subsetting process gathers statistics on subsetted + * database tables after subsetting completes + * + * @return the value + */ + public Boolean getIsRefreshStatsEnabled() { + return isRefreshStatsEnabled; + } + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed values + * are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of + * parallelism) or an integer value to be used as the degree of parallelism. Parallel execution + * helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle + * Database parallel execution framework when choosing an explicit degree of parallelism + */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private final String parallelDegree; + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed values + * are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of + * parallelism) or an integer value to be used as the degree of parallelism. Parallel execution + * helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle + * Database parallel execution framework when choosing an explicit degree of parallelism + * + * @return the value + */ + public String getParallelDegree() { + return parallelDegree; + } + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' + * (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's + * set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP + * package to recompile any remaining invalid objects after subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private final SubsettingPolicy.Recompile recompile; + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' + * (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's + * set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP + * package to recompile any remaining invalid objects after subsetting completes + * + * @return the value + */ + public SubsettingPolicy.Recompile getRecompile() { + return recompile; + } + + /** Strategy to be applied for tables which are not impacted by any of the subsetting rules */ + @com.fasterxml.jackson.annotation.JsonProperty("unrelatedTablesAction") + private final SubsettingPolicy.UnrelatedTablesAction unrelatedTablesAction; + + /** + * Strategy to be applied for tables which are not impacted by any of the subsetting rules + * + * @return the value + */ + public SubsettingPolicy.UnrelatedTablesAction getUnrelatedTablesAction() { + return unrelatedTablesAction; + } + + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before + * the subsetting process. It's usually used to perform any preparation or prerequisite work + * before subsetting data. + */ + @com.fasterxml.jackson.annotation.JsonProperty("preSubsettingScript") + private final String preSubsettingScript; + + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before + * the subsetting process. It's usually used to perform any preparation or prerequisite work + * before subsetting data. + * + * @return the value + */ + public String getPreSubsettingScript() { + return preSubsettingScript; + } + + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after + * the subsetting process. It's usually used to perform additional transformation or cleanup + * work after subsetting data. + */ + @com.fasterxml.jackson.annotation.JsonProperty("postSubsettingScript") + private final String postSubsettingScript; + + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after + * the subsetting process. It's usually used to perform additional transformation or cleanup + * work after subsetting data. + * + * @return the value + */ + public String getPostSubsettingScript() { + return postSubsettingScript; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schemaSource") + private final CreateSchemaSourceDetails schemaSource; + + public CreateSchemaSourceDetails getSchemaSource() { + return schemaSource; + } + + /** The OCID of the masking policy to associate with this subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private final String maskingPolicyId; + + /** + * The OCID of the masking policy to associate with this subsetting policy + * + * @return the value + */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + + /** + * 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("CreateSubsettingPolicyDetails("); + 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(", isRedoLoggingEnabled=").append(String.valueOf(this.isRedoLoggingEnabled)); + sb.append(", isRefreshStatsEnabled=").append(String.valueOf(this.isRefreshStatsEnabled)); + sb.append(", parallelDegree=").append(String.valueOf(this.parallelDegree)); + sb.append(", recompile=").append(String.valueOf(this.recompile)); + sb.append(", unrelatedTablesAction=").append(String.valueOf(this.unrelatedTablesAction)); + sb.append(", preSubsettingScript=").append(String.valueOf(this.preSubsettingScript)); + sb.append(", postSubsettingScript=").append(String.valueOf(this.postSubsettingScript)); + sb.append(", schemaSource=").append(String.valueOf(this.schemaSource)); + sb.append(", maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + 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 CreateSubsettingPolicyDetails)) { + return false; + } + + CreateSubsettingPolicyDetails other = (CreateSubsettingPolicyDetails) 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.isRedoLoggingEnabled, other.isRedoLoggingEnabled) + && java.util.Objects.equals(this.isRefreshStatsEnabled, other.isRefreshStatsEnabled) + && java.util.Objects.equals(this.parallelDegree, other.parallelDegree) + && java.util.Objects.equals(this.recompile, other.recompile) + && java.util.Objects.equals(this.unrelatedTablesAction, other.unrelatedTablesAction) + && java.util.Objects.equals(this.preSubsettingScript, other.preSubsettingScript) + && java.util.Objects.equals(this.postSubsettingScript, other.postSubsettingScript) + && java.util.Objects.equals(this.schemaSource, other.schemaSource) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && 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.isRedoLoggingEnabled == null + ? 43 + : this.isRedoLoggingEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRefreshStatsEnabled == null + ? 43 + : this.isRefreshStatsEnabled.hashCode()); + result = + (result * PRIME) + + (this.parallelDegree == null ? 43 : this.parallelDegree.hashCode()); + result = (result * PRIME) + (this.recompile == null ? 43 : this.recompile.hashCode()); + result = + (result * PRIME) + + (this.unrelatedTablesAction == null + ? 43 + : this.unrelatedTablesAction.hashCode()); + result = + (result * PRIME) + + (this.preSubsettingScript == null + ? 43 + : this.preSubsettingScript.hashCode()); + result = + (result * PRIME) + + (this.postSubsettingScript == null + ? 43 + : this.postSubsettingScript.hashCode()); + result = (result * PRIME) + (this.schemaSource == null ? 43 : this.schemaSource.hashCode()); + result = + (result * PRIME) + + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingRuleDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingRuleDetails.java new file mode 100644 index 00000000000..fd7735d1ce3 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingRuleDetails.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.datasafe.model; + +/** + * Details to create the subsetting rule
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = CreateSubsettingRuleDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSubsettingRuleDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "scope", + "subsetRuleEntry", + "ruleCombinationMode", + "relatedTablesPropagation", + "peerTablesAction" + }) + public CreateSubsettingRuleDetails( + String displayName, + String description, + SubsetScope scope, + SubsetRuleEntry subsetRuleEntry, + RuleCombinationMode ruleCombinationMode, + RelatedTablesPropagation relatedTablesPropagation, + PeerTablesAction peerTablesAction) { + super(); + this.displayName = displayName; + this.description = description; + this.scope = scope; + this.subsetRuleEntry = subsetRuleEntry; + this.ruleCombinationMode = ruleCombinationMode; + this.relatedTablesPropagation = relatedTablesPropagation; + this.peerTablesAction = peerTablesAction; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The display name of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the subset rule + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The description of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the subset rule + * + * @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("scope") + private SubsetScope scope; + + public Builder scope(SubsetScope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subsetRuleEntry") + private SubsetRuleEntry subsetRuleEntry; + + public Builder subsetRuleEntry(SubsetRuleEntry subsetRuleEntry) { + this.subsetRuleEntry = subsetRuleEntry; + this.__explicitlySet__.add("subsetRuleEntry"); + return this; + } + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule + * independently and adds matching rows to the result set. SERIAL applies this rule + * sequentially to filter rows selected by a compatible preceding rule. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ruleCombinationMode") + private RuleCombinationMode ruleCombinationMode; + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule + * independently and adds matching rows to the result set. SERIAL applies this rule + * sequentially to filter rows selected by a compatible preceding rule. + * + * @param ruleCombinationMode the value to set + * @return this builder + */ + public Builder ruleCombinationMode(RuleCombinationMode ruleCombinationMode) { + this.ruleCombinationMode = ruleCombinationMode; + this.__explicitlySet__.add("ruleCombinationMode"); + return this; + } + /** Strategy to be applied while propagating subsetting rule to related tables */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTablesPropagation") + private RelatedTablesPropagation relatedTablesPropagation; + + /** + * Strategy to be applied while propagating subsetting rule to related tables + * + * @param relatedTablesPropagation the value to set + * @return this builder + */ + public Builder relatedTablesPropagation(RelatedTablesPropagation relatedTablesPropagation) { + this.relatedTablesPropagation = relatedTablesPropagation; + this.__explicitlySet__.add("relatedTablesPropagation"); + return this; + } + /** Strategy to be applied while processing peer tables */ + @com.fasterxml.jackson.annotation.JsonProperty("peerTablesAction") + private PeerTablesAction peerTablesAction; + + /** + * Strategy to be applied while processing peer tables + * + * @param peerTablesAction the value to set + * @return this builder + */ + public Builder peerTablesAction(PeerTablesAction peerTablesAction) { + this.peerTablesAction = peerTablesAction; + this.__explicitlySet__.add("peerTablesAction"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateSubsettingRuleDetails build() { + CreateSubsettingRuleDetails model = + new CreateSubsettingRuleDetails( + this.displayName, + this.description, + this.scope, + this.subsetRuleEntry, + this.ruleCombinationMode, + this.relatedTablesPropagation, + this.peerTablesAction); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSubsettingRuleDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("subsetRuleEntry")) { + this.subsetRuleEntry(model.getSubsetRuleEntry()); + } + if (model.wasPropertyExplicitlySet("ruleCombinationMode")) { + this.ruleCombinationMode(model.getRuleCombinationMode()); + } + if (model.wasPropertyExplicitlySet("relatedTablesPropagation")) { + this.relatedTablesPropagation(model.getRelatedTablesPropagation()); + } + if (model.wasPropertyExplicitlySet("peerTablesAction")) { + this.peerTablesAction(model.getPeerTablesAction()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The display name of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the subset rule + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the subset rule + * + * @return the value + */ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final SubsetScope scope; + + public SubsetScope getScope() { + return scope; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subsetRuleEntry") + private final SubsetRuleEntry subsetRuleEntry; + + public SubsetRuleEntry getSubsetRuleEntry() { + return subsetRuleEntry; + } + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + */ + public enum RuleCombinationMode implements com.oracle.bmc.http.internal.BmcEnum { + Union("UNION"), + Serial("SERIAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuleCombinationMode v : RuleCombinationMode.values()) { + map.put(v.getValue(), v); + } + } + + RuleCombinationMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuleCombinationMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RuleCombinationMode: " + key); + } + }; + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ruleCombinationMode") + private final RuleCombinationMode ruleCombinationMode; + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + * + * @return the value + */ + public RuleCombinationMode getRuleCombinationMode() { + return ruleCombinationMode; + } + + /** Strategy to be applied while propagating subsetting rule to related tables */ + public enum RelatedTablesPropagation implements com.oracle.bmc.http.internal.BmcEnum { + AncestorsAndDescendants("ANCESTORS_AND_DESCENDANTS"), + Ancestors("ANCESTORS"), + Descendants("DESCENDANTS"), + None("NONE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RelatedTablesPropagation v : RelatedTablesPropagation.values()) { + map.put(v.getValue(), v); + } + } + + RelatedTablesPropagation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RelatedTablesPropagation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RelatedTablesPropagation: " + key); + } + }; + /** Strategy to be applied while propagating subsetting rule to related tables */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTablesPropagation") + private final RelatedTablesPropagation relatedTablesPropagation; + + /** + * Strategy to be applied while propagating subsetting rule to related tables + * + * @return the value + */ + public RelatedTablesPropagation getRelatedTablesPropagation() { + return relatedTablesPropagation; + } + + /** Strategy to be applied while processing peer tables */ + public enum PeerTablesAction implements com.oracle.bmc.http.internal.BmcEnum { + MinimumRows("MINIMUM_ROWS"), + Subset("SUBSET"), + MaximumRows("MAXIMUM_ROWS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PeerTablesAction v : PeerTablesAction.values()) { + map.put(v.getValue(), v); + } + } + + PeerTablesAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PeerTablesAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PeerTablesAction: " + key); + } + }; + /** Strategy to be applied while processing peer tables */ + @com.fasterxml.jackson.annotation.JsonProperty("peerTablesAction") + private final PeerTablesAction peerTablesAction; + + /** + * Strategy to be applied while processing peer tables + * + * @return the value + */ + public PeerTablesAction getPeerTablesAction() { + return peerTablesAction; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateSubsettingRuleDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", subsetRuleEntry=").append(String.valueOf(this.subsetRuleEntry)); + sb.append(", ruleCombinationMode=").append(String.valueOf(this.ruleCombinationMode)); + sb.append(", relatedTablesPropagation=") + .append(String.valueOf(this.relatedTablesPropagation)); + sb.append(", peerTablesAction=").append(String.valueOf(this.peerTablesAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSubsettingRuleDetails)) { + return false; + } + + CreateSubsettingRuleDetails other = (CreateSubsettingRuleDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.subsetRuleEntry, other.subsetRuleEntry) + && java.util.Objects.equals(this.ruleCombinationMode, other.ruleCombinationMode) + && java.util.Objects.equals( + this.relatedTablesPropagation, other.relatedTablesPropagation) + && java.util.Objects.equals(this.peerTablesAction, other.peerTablesAction) + && 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.scope == null ? 43 : this.scope.hashCode()); + result = + (result * PRIME) + + (this.subsetRuleEntry == null ? 43 : this.subsetRuleEntry.hashCode()); + result = + (result * PRIME) + + (this.ruleCombinationMode == null + ? 43 + : this.ruleCombinationMode.hashCode()); + result = + (result * PRIME) + + (this.relatedTablesPropagation == null + ? 43 + : this.relatedTablesPropagation.hashCode()); + result = + (result * PRIME) + + (this.peerTablesAction == null ? 43 : this.peerTablesAction.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingSchemaRelationDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingSchemaRelationDetails.java new file mode 100644 index 00000000000..f01a4063009 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateSubsettingSchemaRelationDetails.java @@ -0,0 +1,419 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a relationship between tables in the subsetting for a subsetting policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateSubsettingSchemaRelationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSubsettingSchemaRelationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "parentObjectKey", + "parentSchemaName", + "parentObjectName", + "parentColumns", + "childObjectKey", + "childSchemaName", + "childObjectName", + "childColumns" + }) + public CreateSubsettingSchemaRelationDetails( + String parentObjectKey, + String parentSchemaName, + String parentObjectName, + java.util.List parentColumns, + String childObjectKey, + String childSchemaName, + String childObjectName, + java.util.List childColumns) { + super(); + this.parentObjectKey = parentObjectKey; + this.parentSchemaName = parentSchemaName; + this.parentObjectName = parentObjectName; + this.parentColumns = parentColumns; + this.childObjectKey = childObjectKey; + this.childSchemaName = childSchemaName; + this.childObjectName = childObjectName; + this.childColumns = childColumns; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The key that identifies the parent subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectKey") + private String parentObjectKey; + + /** + * The key that identifies the parent subsetting table in this relation. + * + * @param parentObjectKey the value to set + * @return this builder + */ + public Builder parentObjectKey(String parentObjectKey) { + this.parentObjectKey = parentObjectKey; + this.__explicitlySet__.add("parentObjectKey"); + return this; + } + /** The database schema that contains the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentSchemaName") + private String parentSchemaName; + + /** + * The database schema that contains the parent subsetting table + * + * @param parentSchemaName the value to set + * @return this builder + */ + public Builder parentSchemaName(String parentSchemaName) { + this.parentSchemaName = parentSchemaName; + this.__explicitlySet__.add("parentSchemaName"); + return this; + } + /** The name of the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectName") + private String parentObjectName; + + /** + * The name of the parent subsetting table + * + * @param parentObjectName the value to set + * @return this builder + */ + public Builder parentObjectName(String parentObjectName) { + this.parentObjectName = parentObjectName; + this.__explicitlySet__.add("parentObjectName"); + return this; + } + /** Unique identifiers identifying the parents columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentColumns") + private java.util.List parentColumns; + + /** + * Unique identifiers identifying the parents columns in the relation. + * + * @param parentColumns the value to set + * @return this builder + */ + public Builder parentColumns(java.util.List parentColumns) { + this.parentColumns = parentColumns; + this.__explicitlySet__.add("parentColumns"); + return this; + } + /** The key that identifies the child subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectKey") + private String childObjectKey; + + /** + * The key that identifies the child subsetting table in this relation. + * + * @param childObjectKey the value to set + * @return this builder + */ + public Builder childObjectKey(String childObjectKey) { + this.childObjectKey = childObjectKey; + this.__explicitlySet__.add("childObjectKey"); + return this; + } + /** The database schema that contains the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childSchemaName") + private String childSchemaName; + + /** + * The database schema that contains the child subsetting table + * + * @param childSchemaName the value to set + * @return this builder + */ + public Builder childSchemaName(String childSchemaName) { + this.childSchemaName = childSchemaName; + this.__explicitlySet__.add("childSchemaName"); + return this; + } + /** The name of the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectName") + private String childObjectName; + + /** + * The name of the child subsetting table + * + * @param childObjectName the value to set + * @return this builder + */ + public Builder childObjectName(String childObjectName) { + this.childObjectName = childObjectName; + this.__explicitlySet__.add("childObjectName"); + return this; + } + /** Unique identifiers identifying the child columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childColumns") + private java.util.List childColumns; + + /** + * Unique identifiers identifying the child columns in the relation. + * + * @param childColumns the value to set + * @return this builder + */ + public Builder childColumns(java.util.List childColumns) { + this.childColumns = childColumns; + this.__explicitlySet__.add("childColumns"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateSubsettingSchemaRelationDetails build() { + CreateSubsettingSchemaRelationDetails model = + new CreateSubsettingSchemaRelationDetails( + this.parentObjectKey, + this.parentSchemaName, + this.parentObjectName, + this.parentColumns, + this.childObjectKey, + this.childSchemaName, + this.childObjectName, + this.childColumns); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSubsettingSchemaRelationDetails model) { + if (model.wasPropertyExplicitlySet("parentObjectKey")) { + this.parentObjectKey(model.getParentObjectKey()); + } + if (model.wasPropertyExplicitlySet("parentSchemaName")) { + this.parentSchemaName(model.getParentSchemaName()); + } + if (model.wasPropertyExplicitlySet("parentObjectName")) { + this.parentObjectName(model.getParentObjectName()); + } + if (model.wasPropertyExplicitlySet("parentColumns")) { + this.parentColumns(model.getParentColumns()); + } + if (model.wasPropertyExplicitlySet("childObjectKey")) { + this.childObjectKey(model.getChildObjectKey()); + } + if (model.wasPropertyExplicitlySet("childSchemaName")) { + this.childSchemaName(model.getChildSchemaName()); + } + if (model.wasPropertyExplicitlySet("childObjectName")) { + this.childObjectName(model.getChildObjectName()); + } + if (model.wasPropertyExplicitlySet("childColumns")) { + this.childColumns(model.getChildColumns()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The key that identifies the parent subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectKey") + private final String parentObjectKey; + + /** + * The key that identifies the parent subsetting table in this relation. + * + * @return the value + */ + public String getParentObjectKey() { + return parentObjectKey; + } + + /** The database schema that contains the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentSchemaName") + private final String parentSchemaName; + + /** + * The database schema that contains the parent subsetting table + * + * @return the value + */ + public String getParentSchemaName() { + return parentSchemaName; + } + + /** The name of the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectName") + private final String parentObjectName; + + /** + * The name of the parent subsetting table + * + * @return the value + */ + public String getParentObjectName() { + return parentObjectName; + } + + /** Unique identifiers identifying the parents columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentColumns") + private final java.util.List parentColumns; + + /** + * Unique identifiers identifying the parents columns in the relation. + * + * @return the value + */ + public java.util.List getParentColumns() { + return parentColumns; + } + + /** The key that identifies the child subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectKey") + private final String childObjectKey; + + /** + * The key that identifies the child subsetting table in this relation. + * + * @return the value + */ + public String getChildObjectKey() { + return childObjectKey; + } + + /** The database schema that contains the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childSchemaName") + private final String childSchemaName; + + /** + * The database schema that contains the child subsetting table + * + * @return the value + */ + public String getChildSchemaName() { + return childSchemaName; + } + + /** The name of the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectName") + private final String childObjectName; + + /** + * The name of the child subsetting table + * + * @return the value + */ + public String getChildObjectName() { + return childObjectName; + } + + /** Unique identifiers identifying the child columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childColumns") + private final java.util.List childColumns; + + /** + * Unique identifiers identifying the child columns in the relation. + * + * @return the value + */ + public java.util.List getChildColumns() { + return childColumns; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateSubsettingSchemaRelationDetails("); + sb.append("super=").append(super.toString()); + sb.append("parentObjectKey=").append(String.valueOf(this.parentObjectKey)); + sb.append(", parentSchemaName=").append(String.valueOf(this.parentSchemaName)); + sb.append(", parentObjectName=").append(String.valueOf(this.parentObjectName)); + sb.append(", parentColumns=").append(String.valueOf(this.parentColumns)); + sb.append(", childObjectKey=").append(String.valueOf(this.childObjectKey)); + sb.append(", childSchemaName=").append(String.valueOf(this.childSchemaName)); + sb.append(", childObjectName=").append(String.valueOf(this.childObjectName)); + sb.append(", childColumns=").append(String.valueOf(this.childColumns)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSubsettingSchemaRelationDetails)) { + return false; + } + + CreateSubsettingSchemaRelationDetails other = (CreateSubsettingSchemaRelationDetails) o; + return java.util.Objects.equals(this.parentObjectKey, other.parentObjectKey) + && java.util.Objects.equals(this.parentSchemaName, other.parentSchemaName) + && java.util.Objects.equals(this.parentObjectName, other.parentObjectName) + && java.util.Objects.equals(this.parentColumns, other.parentColumns) + && java.util.Objects.equals(this.childObjectKey, other.childObjectKey) + && java.util.Objects.equals(this.childSchemaName, other.childSchemaName) + && java.util.Objects.equals(this.childObjectName, other.childObjectName) + && java.util.Objects.equals(this.childColumns, other.childColumns) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.parentObjectKey == null ? 43 : this.parentObjectKey.hashCode()); + result = + (result * PRIME) + + (this.parentSchemaName == null ? 43 : this.parentSchemaName.hashCode()); + result = + (result * PRIME) + + (this.parentObjectName == null ? 43 : this.parentObjectName.hashCode()); + result = + (result * PRIME) + + (this.parentColumns == null ? 43 : this.parentColumns.hashCode()); + result = + (result * PRIME) + + (this.childObjectKey == null ? 43 : this.childObjectKey.hashCode()); + result = + (result * PRIME) + + (this.childSchemaName == null ? 43 : this.childSchemaName.hashCode()); + result = + (result * PRIME) + + (this.childObjectName == null ? 43 : this.childObjectName.hashCode()); + result = (result * PRIME) + (this.childColumns == null ? 43 : this.childColumns.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingLogDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingLogDetails.java new file mode 100644 index 00000000000..92c66eea2b5 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingLogDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Details to download the subsetting log
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = DownloadSubsettingLogDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DownloadSubsettingLogDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"targetId", "subsettingWorkRequestId"}) + public DownloadSubsettingLogDetails(String targetId, String subsettingWorkRequestId) { + super(); + this.targetId = targetId; + this.subsettingWorkRequestId = subsettingWorkRequestId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the target database for which the subsetting log is to be downloaded */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database for which the subsetting log is to be downloaded + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The OCID of the subsetting work request that resulted in this subsetting log */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingWorkRequestId") + private String subsettingWorkRequestId; + + /** + * The OCID of the subsetting work request that resulted in this subsetting log + * + * @param subsettingWorkRequestId the value to set + * @return this builder + */ + public Builder subsettingWorkRequestId(String subsettingWorkRequestId) { + this.subsettingWorkRequestId = subsettingWorkRequestId; + this.__explicitlySet__.add("subsettingWorkRequestId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DownloadSubsettingLogDetails build() { + DownloadSubsettingLogDetails model = + new DownloadSubsettingLogDetails(this.targetId, this.subsettingWorkRequestId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DownloadSubsettingLogDetails model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("subsettingWorkRequestId")) { + this.subsettingWorkRequestId(model.getSubsettingWorkRequestId()); + } + 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 for which the subsetting log is to be downloaded */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database for which the subsetting log is to be downloaded + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The OCID of the subsetting work request that resulted in this subsetting log */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingWorkRequestId") + private final String subsettingWorkRequestId; + + /** + * The OCID of the subsetting work request that resulted in this subsetting log + * + * @return the value + */ + public String getSubsettingWorkRequestId() { + return subsettingWorkRequestId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DownloadSubsettingLogDetails("); + sb.append("super=").append(super.toString()); + sb.append("targetId=").append(String.valueOf(this.targetId)); + sb.append(", subsettingWorkRequestId=") + .append(String.valueOf(this.subsettingWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadSubsettingLogDetails)) { + return false; + } + + DownloadSubsettingLogDetails other = (DownloadSubsettingLogDetails) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals( + this.subsettingWorkRequestId, other.subsettingWorkRequestId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.subsettingWorkRequestId == null + ? 43 + : this.subsettingWorkRequestId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingPolicyDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingPolicyDetails.java new file mode 100644 index 00000000000..4dc80897108 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingPolicyDetails.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; + +/** + * Details to download a subsetting policy
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DownloadSubsettingPolicyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DownloadSubsettingPolicyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"policyFormat"}) + public DownloadSubsettingPolicyDetails(SubsettingPolicyFormat policyFormat) { + super(); + this.policyFormat = policyFormat; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The format of the subsetting policy file */ + @com.fasterxml.jackson.annotation.JsonProperty("policyFormat") + private SubsettingPolicyFormat policyFormat; + + /** + * The format of the subsetting policy file + * + * @param policyFormat the value to set + * @return this builder + */ + public Builder policyFormat(SubsettingPolicyFormat policyFormat) { + this.policyFormat = policyFormat; + this.__explicitlySet__.add("policyFormat"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DownloadSubsettingPolicyDetails build() { + DownloadSubsettingPolicyDetails model = + new DownloadSubsettingPolicyDetails(this.policyFormat); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DownloadSubsettingPolicyDetails model) { + if (model.wasPropertyExplicitlySet("policyFormat")) { + this.policyFormat(model.getPolicyFormat()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The format of the subsetting policy file */ + @com.fasterxml.jackson.annotation.JsonProperty("policyFormat") + private final SubsettingPolicyFormat policyFormat; + + /** + * The format of the subsetting policy file + * + * @return the value + */ + public SubsettingPolicyFormat getPolicyFormat() { + return policyFormat; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DownloadSubsettingPolicyDetails("); + sb.append("super=").append(super.toString()); + sb.append("policyFormat=").append(String.valueOf(this.policyFormat)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadSubsettingPolicyDetails)) { + return false; + } + + DownloadSubsettingPolicyDetails other = (DownloadSubsettingPolicyDetails) o; + return java.util.Objects.equals(this.policyFormat, other.policyFormat) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.policyFormat == null ? 43 : this.policyFormat.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingReportDetails.java new file mode 100644 index 00000000000..e48cb88d3c0 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSubsettingReportDetails.java @@ -0,0 +1,203 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details to download a subsetting report
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = DownloadSubsettingReportDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DownloadSubsettingReportDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"reportId", "reportFormat"}) + public DownloadSubsettingReportDetails(String reportId, ReportFormat reportFormat) { + super(); + this.reportId = reportId; + this.reportFormat = reportFormat; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the subsetting report to be downloaded */ + @com.fasterxml.jackson.annotation.JsonProperty("reportId") + private String reportId; + + /** + * The OCID of the subsetting report to be downloaded + * + * @param reportId the value to set + * @return this builder + */ + public Builder reportId(String reportId) { + this.reportId = reportId; + this.__explicitlySet__.add("reportId"); + return this; + } + /** Format of the report. */ + @com.fasterxml.jackson.annotation.JsonProperty("reportFormat") + private ReportFormat reportFormat; + + /** + * Format of the report. + * + * @param reportFormat the value to set + * @return this builder + */ + public Builder reportFormat(ReportFormat reportFormat) { + this.reportFormat = reportFormat; + this.__explicitlySet__.add("reportFormat"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DownloadSubsettingReportDetails build() { + DownloadSubsettingReportDetails model = + new DownloadSubsettingReportDetails(this.reportId, this.reportFormat); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DownloadSubsettingReportDetails model) { + if (model.wasPropertyExplicitlySet("reportId")) { + this.reportId(model.getReportId()); + } + if (model.wasPropertyExplicitlySet("reportFormat")) { + this.reportFormat(model.getReportFormat()); + } + 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 subsetting report to be downloaded */ + @com.fasterxml.jackson.annotation.JsonProperty("reportId") + private final String reportId; + + /** + * The OCID of the subsetting report to be downloaded + * + * @return the value + */ + public String getReportId() { + return reportId; + } + + /** Format of the report. */ + public enum ReportFormat implements com.oracle.bmc.http.internal.BmcEnum { + Pdf("PDF"), + Xls("XLS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReportFormat v : ReportFormat.values()) { + map.put(v.getValue(), v); + } + } + + ReportFormat(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReportFormat create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ReportFormat: " + key); + } + }; + /** Format of the report. */ + @com.fasterxml.jackson.annotation.JsonProperty("reportFormat") + private final ReportFormat reportFormat; + + /** + * Format of the report. + * + * @return the value + */ + public ReportFormat getReportFormat() { + return reportFormat; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DownloadSubsettingReportDetails("); + sb.append("super=").append(super.toString()); + sb.append("reportId=").append(String.valueOf(this.reportId)); + sb.append(", reportFormat=").append(String.valueOf(this.reportFormat)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadSubsettingReportDetails)) { + return false; + } + + DownloadSubsettingReportDetails other = (DownloadSubsettingReportDetails) o; + return java.util.Objects.equals(this.reportId, other.reportId) + && java.util.Objects.equals(this.reportFormat, other.reportFormat) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.reportId == null ? 43 : this.reportId.hashCode()); + result = (result * PRIME) + (this.reportFormat == null ? 43 : this.reportFormat.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/EstimateTableSizesDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/EstimateTableSizesDetails.java new file mode 100644 index 00000000000..eafafb6b66e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/EstimateTableSizesDetails.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details required to estimate table sizes for a target database using a subsetting policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EstimateTableSizesDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EstimateTableSizesDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"targetId", "targetCredentials"}) + public EstimateTableSizesDetails(String targetId, Credentials targetCredentials) { + super(); + this.targetId = targetId; + this.targetCredentials = targetCredentials; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the target database to use for estimating table sizes. If it's not provided, + * the value of the targetId attribute in the SubsettingPolicy resource is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database to use for estimating table sizes. If it's not provided, + * the value of the targetId attribute in the SubsettingPolicy resource is used. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetCredentials") + private Credentials targetCredentials; + + public Builder targetCredentials(Credentials targetCredentials) { + this.targetCredentials = targetCredentials; + this.__explicitlySet__.add("targetCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EstimateTableSizesDetails build() { + EstimateTableSizesDetails model = + new EstimateTableSizesDetails(this.targetId, this.targetCredentials); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EstimateTableSizesDetails model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("targetCredentials")) { + this.targetCredentials(model.getTargetCredentials()); + } + 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 to use for estimating table sizes. If it's not provided, the + * value of the targetId attribute in the SubsettingPolicy resource is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database to use for estimating table sizes. If it's not provided, the + * value of the targetId attribute in the SubsettingPolicy resource is used. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetCredentials") + private final Credentials targetCredentials; + + public Credentials getTargetCredentials() { + return targetCredentials; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EstimateTableSizesDetails("); + sb.append("super=").append(super.toString()); + sb.append("targetId=").append(String.valueOf(this.targetId)); + sb.append(", targetCredentials=").append(String.valueOf(this.targetCredentials)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EstimateTableSizesDetails)) { + return false; + } + + EstimateTableSizesDetails other = (EstimateTableSizesDetails) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetCredentials, other.targetCredentials) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.targetCredentials == null ? 43 : this.targetCredentials.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingHealthReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingHealthReportDetails.java new file mode 100644 index 00000000000..cc1dcb48728 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingHealthReportDetails.java @@ -0,0 +1,456 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details to use when performing health check on a subsetting policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateSubsettingHealthReportDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateSubsettingHealthReportDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "checkType", + "targetId", + "compartmentId", + "tablespace", + "freeformTags", + "definedTags", + "targetCredentials" + }) + public GenerateSubsettingHealthReportDetails( + CheckType checkType, + String targetId, + String compartmentId, + String tablespace, + java.util.Map freeformTags, + java.util.Map> definedTags, + Credentials targetCredentials) { + super(); + this.checkType = checkType; + this.targetId = targetId; + this.compartmentId = compartmentId; + this.tablespace = tablespace; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.targetCredentials = targetCredentials; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The type of health check. The default behaviour is to perform all health checks. + * TABLESPACE_CHECK performs only the tablespace health check. + */ + @com.fasterxml.jackson.annotation.JsonProperty("checkType") + private CheckType checkType; + + /** + * The type of health check. The default behaviour is to perform all health checks. + * TABLESPACE_CHECK performs only the tablespace health check. + * + * @param checkType the value to set + * @return this builder + */ + public Builder checkType(CheckType checkType) { + this.checkType = checkType; + this.__explicitlySet__.add("checkType"); + return this; + } + /** + * The OCID of the target database to use for the subsetting policy health check. The + * targetId associated with the subsetting policy is used if this is not passed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database to use for the subsetting policy health check. The + * targetId associated with the subsetting policy is used if this is not passed. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The OCID of the compartment where the health report resource should be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment where the health report resource should be created. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The tablespace that should be used to estimate space. If no tablespace is provided, the + * DEFAULT tablespace is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tablespace") + private String tablespace; + + /** + * The tablespace that should be used to estimate space. If no tablespace is provided, the + * DEFAULT tablespace is used. + * + * @param tablespace the value to set + * @return this builder + */ + public Builder tablespace(String tablespace) { + this.tablespace = tablespace; + this.__explicitlySet__.add("tablespace"); + 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.JsonProperty("targetCredentials") + private Credentials targetCredentials; + + public Builder targetCredentials(Credentials targetCredentials) { + this.targetCredentials = targetCredentials; + this.__explicitlySet__.add("targetCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateSubsettingHealthReportDetails build() { + GenerateSubsettingHealthReportDetails model = + new GenerateSubsettingHealthReportDetails( + this.checkType, + this.targetId, + this.compartmentId, + this.tablespace, + this.freeformTags, + this.definedTags, + this.targetCredentials); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateSubsettingHealthReportDetails model) { + if (model.wasPropertyExplicitlySet("checkType")) { + this.checkType(model.getCheckType()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("tablespace")) { + this.tablespace(model.getTablespace()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("targetCredentials")) { + this.targetCredentials(model.getTargetCredentials()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The type of health check. The default behaviour is to perform all health checks. + * TABLESPACE_CHECK performs only the tablespace health check. + */ + public enum CheckType implements com.oracle.bmc.http.internal.BmcEnum { + All("ALL"), + TablespaceCheck("TABLESPACE_CHECK"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CheckType v : CheckType.values()) { + map.put(v.getValue(), v); + } + } + + CheckType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CheckType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CheckType: " + key); + } + }; + /** + * The type of health check. The default behaviour is to perform all health checks. + * TABLESPACE_CHECK performs only the tablespace health check. + */ + @com.fasterxml.jackson.annotation.JsonProperty("checkType") + private final CheckType checkType; + + /** + * The type of health check. The default behaviour is to perform all health checks. + * TABLESPACE_CHECK performs only the tablespace health check. + * + * @return the value + */ + public CheckType getCheckType() { + return checkType; + } + + /** + * The OCID of the target database to use for the subsetting policy health check. The targetId + * associated with the subsetting policy is used if this is not passed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database to use for the subsetting policy health check. The targetId + * associated with the subsetting policy is used if this is not passed. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The OCID of the compartment where the health report resource should be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment where the health report resource should be created. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The tablespace that should be used to estimate space. If no tablespace is provided, the + * DEFAULT tablespace is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tablespace") + private final String tablespace; + + /** + * The tablespace that should be used to estimate space. If no tablespace is provided, the + * DEFAULT tablespace is used. + * + * @return the value + */ + public String getTablespace() { + return tablespace; + } + + /** + * 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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetCredentials") + private final Credentials targetCredentials; + + public Credentials getTargetCredentials() { + return targetCredentials; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateSubsettingHealthReportDetails("); + sb.append("super=").append(super.toString()); + sb.append("checkType=").append(String.valueOf(this.checkType)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", tablespace=").append(String.valueOf(this.tablespace)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", targetCredentials=").append(String.valueOf(this.targetCredentials)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateSubsettingHealthReportDetails)) { + return false; + } + + GenerateSubsettingHealthReportDetails other = (GenerateSubsettingHealthReportDetails) o; + return java.util.Objects.equals(this.checkType, other.checkType) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.tablespace, other.tablespace) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.targetCredentials, other.targetCredentials) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.checkType == null ? 43 : this.checkType.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.tablespace == null ? 43 : this.tablespace.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.targetCredentials == null ? 43 : this.targetCredentials.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingPolicyForDownloadDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingPolicyForDownloadDetails.java new file mode 100644 index 00000000000..474d7cce2ea --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingPolicyForDownloadDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details to generate a downloadable subsetting policy
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateSubsettingPolicyForDownloadDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateSubsettingPolicyForDownloadDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"policyFormat"}) + public GenerateSubsettingPolicyForDownloadDetails(SubsettingPolicyFormat policyFormat) { + super(); + this.policyFormat = policyFormat; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The format of the subsetting policy file. */ + @com.fasterxml.jackson.annotation.JsonProperty("policyFormat") + private SubsettingPolicyFormat policyFormat; + + /** + * The format of the subsetting policy file. + * + * @param policyFormat the value to set + * @return this builder + */ + public Builder policyFormat(SubsettingPolicyFormat policyFormat) { + this.policyFormat = policyFormat; + this.__explicitlySet__.add("policyFormat"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateSubsettingPolicyForDownloadDetails build() { + GenerateSubsettingPolicyForDownloadDetails model = + new GenerateSubsettingPolicyForDownloadDetails(this.policyFormat); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateSubsettingPolicyForDownloadDetails model) { + if (model.wasPropertyExplicitlySet("policyFormat")) { + this.policyFormat(model.getPolicyFormat()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The format of the subsetting policy file. */ + @com.fasterxml.jackson.annotation.JsonProperty("policyFormat") + private final SubsettingPolicyFormat policyFormat; + + /** + * The format of the subsetting policy file. + * + * @return the value + */ + public SubsettingPolicyFormat getPolicyFormat() { + return policyFormat; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateSubsettingPolicyForDownloadDetails("); + sb.append("super=").append(super.toString()); + sb.append("policyFormat=").append(String.valueOf(this.policyFormat)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateSubsettingPolicyForDownloadDetails)) { + return false; + } + + GenerateSubsettingPolicyForDownloadDetails other = + (GenerateSubsettingPolicyForDownloadDetails) o; + return java.util.Objects.equals(this.policyFormat, other.policyFormat) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.policyFormat == null ? 43 : this.policyFormat.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingReportForDownloadDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingReportForDownloadDetails.java new file mode 100644 index 00000000000..330942249ba --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSubsettingReportForDownloadDetails.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details to generate a downloadable subsetting report
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = GenerateSubsettingReportForDownloadDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateSubsettingReportForDownloadDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"reportId", "reportFormat"}) + public GenerateSubsettingReportForDownloadDetails(String reportId, ReportFormat reportFormat) { + super(); + this.reportId = reportId; + this.reportFormat = reportFormat; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the subsetting report for which a downloadable file is to be generated */ + @com.fasterxml.jackson.annotation.JsonProperty("reportId") + private String reportId; + + /** + * The OCID of the subsetting report for which a downloadable file is to be generated + * + * @param reportId the value to set + * @return this builder + */ + public Builder reportId(String reportId) { + this.reportId = reportId; + this.__explicitlySet__.add("reportId"); + return this; + } + /** Format of the report. */ + @com.fasterxml.jackson.annotation.JsonProperty("reportFormat") + private ReportFormat reportFormat; + + /** + * Format of the report. + * + * @param reportFormat the value to set + * @return this builder + */ + public Builder reportFormat(ReportFormat reportFormat) { + this.reportFormat = reportFormat; + this.__explicitlySet__.add("reportFormat"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateSubsettingReportForDownloadDetails build() { + GenerateSubsettingReportForDownloadDetails model = + new GenerateSubsettingReportForDownloadDetails( + this.reportId, this.reportFormat); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateSubsettingReportForDownloadDetails model) { + if (model.wasPropertyExplicitlySet("reportId")) { + this.reportId(model.getReportId()); + } + if (model.wasPropertyExplicitlySet("reportFormat")) { + this.reportFormat(model.getReportFormat()); + } + 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 subsetting report for which a downloadable file is to be generated */ + @com.fasterxml.jackson.annotation.JsonProperty("reportId") + private final String reportId; + + /** + * The OCID of the subsetting report for which a downloadable file is to be generated + * + * @return the value + */ + public String getReportId() { + return reportId; + } + + /** Format of the report. */ + public enum ReportFormat implements com.oracle.bmc.http.internal.BmcEnum { + Pdf("PDF"), + Xls("XLS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReportFormat v : ReportFormat.values()) { + map.put(v.getValue(), v); + } + } + + ReportFormat(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReportFormat create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ReportFormat: " + key); + } + }; + /** Format of the report. */ + @com.fasterxml.jackson.annotation.JsonProperty("reportFormat") + private final ReportFormat reportFormat; + + /** + * Format of the report. + * + * @return the value + */ + public ReportFormat getReportFormat() { + return reportFormat; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateSubsettingReportForDownloadDetails("); + sb.append("super=").append(super.toString()); + sb.append("reportId=").append(String.valueOf(this.reportId)); + sb.append(", reportFormat=").append(String.valueOf(this.reportFormat)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateSubsettingReportForDownloadDetails)) { + return false; + } + + GenerateSubsettingReportForDownloadDetails other = + (GenerateSubsettingReportForDownloadDetails) o; + return java.util.Objects.equals(this.reportId, other.reportId) + && java.util.Objects.equals(this.reportFormat, other.reportFormat) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.reportId == null ? 43 : this.reportId.hashCode()); + result = (result * PRIME) + (this.reportFormat == null ? 43 : this.reportFormat.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 f155e3093da..c601cfaf207 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,9 @@ /** * Criteria to determine whether a target database should be included 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.
+ * If the database satisfies any of compartments, targetDatabaseIds, freeformTags, definedTags, + * freeformTagsIn 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 @@ -27,18 +28,24 @@ public final class Include extends com.oracle.bmc.http.client.internal.Explicitl "compartments", "targetDatabaseIds", "freeformTags", - "definedTags" + "definedTags", + "freeformTagsIn", + "systemTags" }) public Include( java.util.List compartments, java.util.List targetDatabaseIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map freeformTagsIn, + java.util.Map> systemTags) { super(); this.compartments = compartments; this.targetDatabaseIds = targetDatabaseIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.freeformTagsIn = freeformTagsIn; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -128,6 +135,44 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Map of freeform tag filters. Each key maps to an array of strings. Target database + * matches the key if it's tag value equals any of the values in the array. + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTagsIn") + private java.util.Map freeformTagsIn; + + /** + * Map of freeform tag filters. Each key maps to an array of strings. Target database + * matches the key if it's tag value equals any of the values in the array. + * + * @param freeformTagsIn the value to set + * @return this builder + */ + public Builder freeformTagsIn(java.util.Map freeformTagsIn) { + this.freeformTagsIn = freeformTagsIn; + this.__explicitlySet__.add("freeformTagsIn"); + return this; + } + /** + * Map of system tag filters. Target database matches when for each specified namespace.key + * and the tag value equals any of the values in the array. + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Map of system tag filters. Target database matches when for each specified namespace.key + * and the tag value equals any of the values in the array. + * + * @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(); @@ -138,7 +183,9 @@ public Include build() { this.compartments, this.targetDatabaseIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.freeformTagsIn, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -159,6 +206,12 @@ public Builder copy(Include model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("freeformTagsIn")) { + this.freeformTagsIn(model.getFreeformTagsIn()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -248,6 +301,40 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Map of freeform tag filters. Each key maps to an array of strings. Target database matches + * the key if it's tag value equals any of the values in the array. + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTagsIn") + private final java.util.Map freeformTagsIn; + + /** + * Map of freeform tag filters. Each key maps to an array of strings. Target database matches + * the key if it's tag value equals any of the values in the array. + * + * @return the value + */ + public java.util.Map getFreeformTagsIn() { + return freeformTagsIn; + } + + /** + * Map of system tag filters. Target database matches when for each specified namespace.key and + * the tag value equals any of the values in the array. + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Map of system tag filters. Target database matches when for each specified namespace.key and + * the tag value equals any of the values in the array. + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -267,6 +354,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", targetDatabaseIds=").append(String.valueOf(this.targetDatabaseIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTagsIn=").append(String.valueOf(this.freeformTagsIn)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -285,6 +374,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.targetDatabaseIds, other.targetDatabaseIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTagsIn, other.freeformTagsIn) + && java.util.Objects.equals(this.systemTags, other.systemTags) && super.equals(other); } @@ -298,6 +389,10 @@ public int hashCode() { + (this.targetDatabaseIds == null ? 43 : this.targetDatabaseIds.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.freeformTagsIn == null ? 43 : this.freeformTagsIn.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/ManagePrivilegesDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ManagePrivilegesDetails.java new file mode 100644 index 00000000000..b3fef3ceebb --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ManagePrivilegesDetails.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * The details used to manage the features of a Data Safe target database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagePrivilegesDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ManagePrivilegesDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"features"}) + public ManagePrivilegesDetails(java.util.List features) { + super(); + this.features = features; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Data Safe features granted to the databases registering under the registration + * policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * The Data Safe features granted to the databases registering under the registration + * policy. + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagePrivilegesDetails build() { + ManagePrivilegesDetails model = new ManagePrivilegesDetails(this.features); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagePrivilegesDetails model) { + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** */ + public enum Features implements com.oracle.bmc.http.internal.BmcEnum { + Assessment("ASSESSMENT"), + AuditCollection("AUDIT_COLLECTION"), + AuditSetting("AUDIT_SETTING"), + DataDiscovery("DATA_DISCOVERY"), + Masking("MASKING"), + SqlFirewall("SQL_FIREWALL"), + All("ALL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Features v : Features.values()) { + map.put(v.getValue(), v); + } + } + + Features(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Features create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Features: " + key); + } + }; + /** + * The Data Safe features granted to the databases registering under the registration policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * The Data Safe features granted to the databases registering under the registration policy. + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagePrivilegesDetails("); + sb.append("super=").append(super.toString()); + sb.append("features=").append(String.valueOf(this.features)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagePrivilegesDetails)) { + return false; + } + + ManagePrivilegesDetails other = (ManagePrivilegesDetails) o; + return java.util.Objects.equals(this.features, other.features) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingReport.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingReport.java index f31c3aaee5e..13dbb75c180 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingReport.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingReport.java @@ -28,6 +28,7 @@ public final class MaskingReport extends com.oracle.bmc.http.client.internal.Exp "compartmentId", "maskingWorkRequestId", "maskingPolicyId", + "subsettingReportId", "targetId", "totalMaskedSensitiveTypes", "totalMaskedSchemas", @@ -52,6 +53,7 @@ public MaskingReport( String compartmentId, String maskingWorkRequestId, String maskingPolicyId, + String subsettingReportId, String targetId, Long totalMaskedSensitiveTypes, Long totalMaskedSchemas, @@ -75,6 +77,7 @@ public MaskingReport( this.compartmentId = compartmentId; this.maskingWorkRequestId = maskingWorkRequestId; this.maskingPolicyId = maskingPolicyId; + this.subsettingReportId = subsettingReportId; this.targetId = targetId; this.totalMaskedSensitiveTypes = totalMaskedSensitiveTypes; this.totalMaskedSchemas = totalMaskedSchemas; @@ -157,6 +160,21 @@ public Builder maskingPolicyId(String maskingPolicyId) { this.__explicitlySet__.add("maskingPolicyId"); return this; } + /** The OCID of the subsetting report associated with this masking report */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingReportId") + private String subsettingReportId; + + /** + * The OCID of the subsetting report associated with this masking report + * + * @param subsettingReportId the value to set + * @return this builder + */ + public Builder subsettingReportId(String subsettingReportId) { + this.subsettingReportId = subsettingReportId; + this.__explicitlySet__.add("subsettingReportId"); + return this; + } /** The OCID of the target database masked. */ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private String targetId; @@ -458,6 +476,7 @@ public MaskingReport build() { this.compartmentId, this.maskingWorkRequestId, this.maskingPolicyId, + this.subsettingReportId, this.targetId, this.totalMaskedSensitiveTypes, this.totalMaskedSchemas, @@ -496,6 +515,9 @@ public Builder copy(MaskingReport model) { if (model.wasPropertyExplicitlySet("maskingPolicyId")) { this.maskingPolicyId(model.getMaskingPolicyId()); } + if (model.wasPropertyExplicitlySet("subsettingReportId")) { + this.subsettingReportId(model.getSubsettingReportId()); + } if (model.wasPropertyExplicitlySet("targetId")) { this.targetId(model.getTargetId()); } @@ -615,6 +637,19 @@ public String getMaskingPolicyId() { return maskingPolicyId; } + /** The OCID of the subsetting report associated with this masking report */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingReportId") + private final String subsettingReportId; + + /** + * The OCID of the subsetting report associated with this masking report + * + * @return the value + */ + public String getSubsettingReportId() { + return subsettingReportId; + } + /** The OCID of the target database masked. */ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private final String targetId; @@ -934,6 +969,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", maskingWorkRequestId=").append(String.valueOf(this.maskingWorkRequestId)); sb.append(", maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + sb.append(", subsettingReportId=").append(String.valueOf(this.subsettingReportId)); sb.append(", targetId=").append(String.valueOf(this.targetId)); sb.append(", totalMaskedSensitiveTypes=") .append(String.valueOf(this.totalMaskedSensitiveTypes)); @@ -974,6 +1010,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.maskingWorkRequestId, other.maskingWorkRequestId) && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals(this.subsettingReportId, other.subsettingReportId) && java.util.Objects.equals(this.targetId, other.targetId) && java.util.Objects.equals( this.totalMaskedSensitiveTypes, other.totalMaskedSensitiveTypes) @@ -1015,6 +1052,11 @@ public int hashCode() { result = (result * PRIME) + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.subsettingReportId == null + ? 43 + : this.subsettingReportId.hashCode()); result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); result = (result * PRIME) diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingReportSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingReportSummary.java index 79af1e92806..95db683b640 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingReportSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingReportSummary.java @@ -28,6 +28,7 @@ public final class MaskingReportSummary "compartmentId", "maskingWorkRequestId", "maskingPolicyId", + "subsettingReportId", "targetId", "totalMaskedSensitiveTypes", "totalMaskedSchemas", @@ -52,6 +53,7 @@ public MaskingReportSummary( String compartmentId, String maskingWorkRequestId, String maskingPolicyId, + String subsettingReportId, String targetId, Long totalMaskedSensitiveTypes, Long totalMaskedSchemas, @@ -75,6 +77,7 @@ public MaskingReportSummary( this.compartmentId = compartmentId; this.maskingWorkRequestId = maskingWorkRequestId; this.maskingPolicyId = maskingPolicyId; + this.subsettingReportId = subsettingReportId; this.targetId = targetId; this.totalMaskedSensitiveTypes = totalMaskedSensitiveTypes; this.totalMaskedSchemas = totalMaskedSchemas; @@ -157,6 +160,21 @@ public Builder maskingPolicyId(String maskingPolicyId) { this.__explicitlySet__.add("maskingPolicyId"); return this; } + /** The OCID of the subsetting report associated with this masking report */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingReportId") + private String subsettingReportId; + + /** + * The OCID of the subsetting report associated with this masking report + * + * @param subsettingReportId the value to set + * @return this builder + */ + public Builder subsettingReportId(String subsettingReportId) { + this.subsettingReportId = subsettingReportId; + this.__explicitlySet__.add("subsettingReportId"); + return this; + } /** The OCID of the target database masked. */ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private String targetId; @@ -458,6 +476,7 @@ public MaskingReportSummary build() { this.compartmentId, this.maskingWorkRequestId, this.maskingPolicyId, + this.subsettingReportId, this.targetId, this.totalMaskedSensitiveTypes, this.totalMaskedSchemas, @@ -496,6 +515,9 @@ public Builder copy(MaskingReportSummary model) { if (model.wasPropertyExplicitlySet("maskingPolicyId")) { this.maskingPolicyId(model.getMaskingPolicyId()); } + if (model.wasPropertyExplicitlySet("subsettingReportId")) { + this.subsettingReportId(model.getSubsettingReportId()); + } if (model.wasPropertyExplicitlySet("targetId")) { this.targetId(model.getTargetId()); } @@ -615,6 +637,19 @@ public String getMaskingPolicyId() { return maskingPolicyId; } + /** The OCID of the subsetting report associated with this masking report */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingReportId") + private final String subsettingReportId; + + /** + * The OCID of the subsetting report associated with this masking report + * + * @return the value + */ + public String getSubsettingReportId() { + return subsettingReportId; + } + /** The OCID of the target database masked. */ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private final String targetId; @@ -934,6 +969,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", maskingWorkRequestId=").append(String.valueOf(this.maskingWorkRequestId)); sb.append(", maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + sb.append(", subsettingReportId=").append(String.valueOf(this.subsettingReportId)); sb.append(", targetId=").append(String.valueOf(this.targetId)); sb.append(", totalMaskedSensitiveTypes=") .append(String.valueOf(this.totalMaskedSensitiveTypes)); @@ -974,6 +1010,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.maskingWorkRequestId, other.maskingWorkRequestId) && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals(this.subsettingReportId, other.subsettingReportId) && java.util.Objects.equals(this.targetId, other.targetId) && java.util.Objects.equals( this.totalMaskedSensitiveTypes, other.totalMaskedSensitiveTypes) @@ -1015,6 +1052,11 @@ public int hashCode() { result = (result * PRIME) + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.subsettingReportId == null + ? 43 + : this.subsettingReportId.hashCode()); result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); result = (result * PRIME) diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PartitionSubsetRuleEntry.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PartitionSubsetRuleEntry.java new file mode 100644 index 00000000000..ef4d9fb10fc --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PartitionSubsetRuleEntry.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Defines a subsetting rule based on partitions and sub-partitions to filter rows
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = PartitionSubsetRuleEntry.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ruleType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PartitionSubsetRuleEntry extends SubsetRuleEntry { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of partition names which are to be part of the subset data */ + @com.fasterxml.jackson.annotation.JsonProperty("partitionsList") + private java.util.List partitionsList; + + /** + * A list of partition names which are to be part of the subset data + * + * @param partitionsList the value to set + * @return this builder + */ + public Builder partitionsList(java.util.List partitionsList) { + this.partitionsList = partitionsList; + this.__explicitlySet__.add("partitionsList"); + return this; + } + /** + * A list of sub-partition names which are to be part of the subset data. The sub-partition + * names should have the partition name also, separated by a dot + */ + @com.fasterxml.jackson.annotation.JsonProperty("subPartitionsList") + private java.util.List subPartitionsList; + + /** + * A list of sub-partition names which are to be part of the subset data. The sub-partition + * names should have the partition name also, separated by a dot + * + * @param subPartitionsList the value to set + * @return this builder + */ + public Builder subPartitionsList(java.util.List subPartitionsList) { + this.subPartitionsList = subPartitionsList; + this.__explicitlySet__.add("subPartitionsList"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PartitionSubsetRuleEntry build() { + PartitionSubsetRuleEntry model = + new PartitionSubsetRuleEntry(this.partitionsList, this.subPartitionsList); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PartitionSubsetRuleEntry model) { + if (model.wasPropertyExplicitlySet("partitionsList")) { + this.partitionsList(model.getPartitionsList()); + } + if (model.wasPropertyExplicitlySet("subPartitionsList")) { + this.subPartitionsList(model.getSubPartitionsList()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PartitionSubsetRuleEntry( + java.util.List partitionsList, java.util.List subPartitionsList) { + super(); + this.partitionsList = partitionsList; + this.subPartitionsList = subPartitionsList; + } + + /** A list of partition names which are to be part of the subset data */ + @com.fasterxml.jackson.annotation.JsonProperty("partitionsList") + private final java.util.List partitionsList; + + /** + * A list of partition names which are to be part of the subset data + * + * @return the value + */ + public java.util.List getPartitionsList() { + return partitionsList; + } + + /** + * A list of sub-partition names which are to be part of the subset data. The sub-partition + * names should have the partition name also, separated by a dot + */ + @com.fasterxml.jackson.annotation.JsonProperty("subPartitionsList") + private final java.util.List subPartitionsList; + + /** + * A list of sub-partition names which are to be part of the subset data. The sub-partition + * names should have the partition name also, separated by a dot + * + * @return the value + */ + public java.util.List getSubPartitionsList() { + return subPartitionsList; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PartitionSubsetRuleEntry("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", partitionsList=").append(String.valueOf(this.partitionsList)); + sb.append(", subPartitionsList=").append(String.valueOf(this.subPartitionsList)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PartitionSubsetRuleEntry)) { + return false; + } + + PartitionSubsetRuleEntry other = (PartitionSubsetRuleEntry) o; + return java.util.Objects.equals(this.partitionsList, other.partitionsList) + && java.util.Objects.equals(this.subPartitionsList, other.subPartitionsList) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.partitionsList == null ? 43 : this.partitionsList.hashCode()); + result = + (result * PRIME) + + (this.subPartitionsList == null ? 43 : this.subPartitionsList.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PatchSubsettingRulesDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PatchSubsettingRulesDetails.java new file mode 100644 index 00000000000..d3eaa964b6f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PatchSubsettingRulesDetails.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.datasafe.model; + +/** + * Details to patch subsetting rules in a subsetting policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchSubsettingRulesDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchSubsettingRulesDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PatchSubsettingRulesDetails(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of patch instructions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of patch instructions. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchSubsettingRulesDetails build() { + PatchSubsettingRulesDetails model = new PatchSubsettingRulesDetails(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchSubsettingRulesDetails model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of patch instructions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of patch instructions. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchSubsettingRulesDetails("); + 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 PatchSubsettingRulesDetails)) { + return false; + } + + PatchSubsettingRulesDetails other = (PatchSubsettingRulesDetails) 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/PercentSubsetRuleEntry.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PercentSubsetRuleEntry.java new file mode 100644 index 00000000000..5a02738b95b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PercentSubsetRuleEntry.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.datasafe.model; + +/** + * Defines a subsetting rule based on a percentage of the data to retain
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = PercentSubsetRuleEntry.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ruleType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PercentSubsetRuleEntry extends SubsetRuleEntry { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The percentage of rows to retain in the subset (between 0 and 100) */ + @com.fasterxml.jackson.annotation.JsonProperty("percent") + private Integer percent; + + /** + * The percentage of rows to retain in the subset (between 0 and 100) + * + * @param percent the value to set + * @return this builder + */ + public Builder percent(Integer percent) { + this.percent = percent; + this.__explicitlySet__.add("percent"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PercentSubsetRuleEntry build() { + PercentSubsetRuleEntry model = new PercentSubsetRuleEntry(this.percent); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PercentSubsetRuleEntry model) { + if (model.wasPropertyExplicitlySet("percent")) { + this.percent(model.getPercent()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PercentSubsetRuleEntry(Integer percent) { + super(); + this.percent = percent; + } + + /** The percentage of rows to retain in the subset (between 0 and 100) */ + @com.fasterxml.jackson.annotation.JsonProperty("percent") + private final Integer percent; + + /** + * The percentage of rows to retain in the subset (between 0 and 100) + * + * @return the value + */ + public Integer getPercent() { + return percent; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PercentSubsetRuleEntry("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", percent=").append(String.valueOf(this.percent)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PercentSubsetRuleEntry)) { + return false; + } + + PercentSubsetRuleEntry other = (PercentSubsetRuleEntry) o; + return java.util.Objects.equals(this.percent, other.percent) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.percent == null ? 43 : this.percent.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PolicyConnectionOption.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PolicyConnectionOption.java new file mode 100644 index 00000000000..745094dadc3 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/PolicyConnectionOption.java @@ -0,0 +1,247 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Types of connection supported by Data Safe.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = PolicyConnectionOption.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PolicyConnectionOption + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"connectionType", "identifiers"}) + public PolicyConnectionOption( + ConnectionType connectionType, java.util.List identifiers) { + super(); + this.connectionType = connectionType; + this.identifiers = identifiers; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The connection type used to connect to the database. Allowed values: - PRIVATE_ENDPOINT - + * Represents connection through private endpoint in Data Safe. - ONPREM_CONNECTOR - + * Represents connection through on-premises connector in Data Safe. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionType") + private ConnectionType connectionType; + + /** + * The connection type used to connect to the database. Allowed values: - PRIVATE_ENDPOINT - + * Represents connection through private endpoint in Data Safe. - ONPREM_CONNECTOR - + * Represents connection through on-premises connector in Data Safe. + * + * @param connectionType the value to set + * @return this builder + */ + public Builder connectionType(ConnectionType connectionType) { + this.connectionType = connectionType; + this.__explicitlySet__.add("connectionType"); + return this; + } + /** + * List of OCIDs required to establish the connection. - For {@code PRIVATE_ENDPOINT}, + * provide the OCID(s) of Data Safe private endpoint(s). - For {@code ONPREM_CONNECTOR}, + * provide the OCID(s) of on-premises connector(s). + */ + @com.fasterxml.jackson.annotation.JsonProperty("identifiers") + private java.util.List identifiers; + + /** + * List of OCIDs required to establish the connection. - For {@code PRIVATE_ENDPOINT}, + * provide the OCID(s) of Data Safe private endpoint(s). - For {@code ONPREM_CONNECTOR}, + * provide the OCID(s) of on-premises connector(s). + * + * @param identifiers the value to set + * @return this builder + */ + public Builder identifiers(java.util.List identifiers) { + this.identifiers = identifiers; + this.__explicitlySet__.add("identifiers"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PolicyConnectionOption build() { + PolicyConnectionOption model = + new PolicyConnectionOption(this.connectionType, this.identifiers); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PolicyConnectionOption model) { + if (model.wasPropertyExplicitlySet("connectionType")) { + this.connectionType(model.getConnectionType()); + } + if (model.wasPropertyExplicitlySet("identifiers")) { + this.identifiers(model.getIdentifiers()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The connection type used to connect to the database. Allowed values: - PRIVATE_ENDPOINT - + * Represents connection through private endpoint in Data Safe. - ONPREM_CONNECTOR - Represents + * connection through on-premises connector in Data Safe. + */ + public enum ConnectionType implements com.oracle.bmc.http.internal.BmcEnum { + PrivateEndpoint("PRIVATE_ENDPOINT"), + OnpremConnector("ONPREM_CONNECTOR"), + + /** + * 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(ConnectionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ConnectionType v : ConnectionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ConnectionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ConnectionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ConnectionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The connection type used to connect to the database. Allowed values: - PRIVATE_ENDPOINT - + * Represents connection through private endpoint in Data Safe. - ONPREM_CONNECTOR - Represents + * connection through on-premises connector in Data Safe. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionType") + private final ConnectionType connectionType; + + /** + * The connection type used to connect to the database. Allowed values: - PRIVATE_ENDPOINT - + * Represents connection through private endpoint in Data Safe. - ONPREM_CONNECTOR - Represents + * connection through on-premises connector in Data Safe. + * + * @return the value + */ + public ConnectionType getConnectionType() { + return connectionType; + } + + /** + * List of OCIDs required to establish the connection. - For {@code PRIVATE_ENDPOINT}, provide + * the OCID(s) of Data Safe private endpoint(s). - For {@code ONPREM_CONNECTOR}, provide the + * OCID(s) of on-premises connector(s). + */ + @com.fasterxml.jackson.annotation.JsonProperty("identifiers") + private final java.util.List identifiers; + + /** + * List of OCIDs required to establish the connection. - For {@code PRIVATE_ENDPOINT}, provide + * the OCID(s) of Data Safe private endpoint(s). - For {@code ONPREM_CONNECTOR}, provide the + * OCID(s) of on-premises connector(s). + * + * @return the value + */ + public java.util.List getIdentifiers() { + return identifiers; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PolicyConnectionOption("); + sb.append("super=").append(super.toString()); + sb.append("connectionType=").append(String.valueOf(this.connectionType)); + sb.append(", identifiers=").append(String.valueOf(this.identifiers)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PolicyConnectionOption)) { + return false; + } + + PolicyConnectionOption other = (PolicyConnectionOption) o; + return java.util.Objects.equals(this.connectionType, other.connectionType) + && java.util.Objects.equals(this.identifiers, other.identifiers) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.connectionType == null ? 43 : this.connectionType.hashCode()); + result = (result * PRIME) + (this.identifiers == null ? 43 : this.identifiers.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicy.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicy.java new file mode 100644 index 00000000000..0e0019acefb --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicy.java @@ -0,0 +1,901 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * A registration policy. This object contains detailed information about a registration policy, + * including its ID, compartment ID, display name, and features.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = RegistrationPolicy.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RegistrationPolicy + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "id", + "displayName", + "description", + "enablementLevel", + "resourceId", + "features", + "canOverrideFeatures", + "lifecycleState", + "lifecycleStateDetails", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags", + "connectionOption" + }) + public RegistrationPolicy( + String compartmentId, + String id, + String displayName, + String description, + EnablementLevel enablementLevel, + String resourceId, + java.util.List features, + Boolean canOverrideFeatures, + LifecycleState lifecycleState, + String lifecycleStateDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + PolicyConnectionOption connectionOption) { + super(); + this.compartmentId = compartmentId; + this.id = id; + this.displayName = displayName; + this.description = description; + this.enablementLevel = enablementLevel; + this.resourceId = resourceId; + this.features = features; + this.canOverrideFeatures = canOverrideFeatures; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.connectionOption = connectionOption; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID for the compartment containing the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID for the compartment containing the registration policy. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The OCID of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the registration policy. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The display name of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the registration policy. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** A description of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of the registration policy. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The resource type which has been opted in for the registration policy. - DATABASE - The + * registration policy will be opted in at the Container Database level. + */ + @com.fasterxml.jackson.annotation.JsonProperty("enablementLevel") + private EnablementLevel enablementLevel; + + /** + * The resource type which has been opted in for the registration policy. - DATABASE - The + * registration policy will be opted in at the Container Database level. + * + * @param enablementLevel the value to set + * @return this builder + */ + public Builder enablementLevel(EnablementLevel enablementLevel) { + this.enablementLevel = enablementLevel; + this.__explicitlySet__.add("enablementLevel"); + return this; + } + /** The OCID of the resource used in the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID of the resource used in the registration policy. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** + * The Data Safe features granted to the databases registering under the registration + * policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * The Data Safe features granted to the databases registering under the registration + * policy. + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } + /** Indicates whether features will be overridden. */ + @com.fasterxml.jackson.annotation.JsonProperty("canOverrideFeatures") + private Boolean canOverrideFeatures; + + /** + * Indicates whether features will be overridden. + * + * @param canOverrideFeatures the value to set + * @return this builder + */ + public Builder canOverrideFeatures(Boolean canOverrideFeatures) { + this.canOverrideFeatures = canOverrideFeatures; + this.__explicitlySet__.add("canOverrideFeatures"); + return this; + } + /** + * The lifecycle state of the registration policy. - CREATING - The registration policy is + * getting created. - ACTIVE - The registration policy has been successfully created. - + * UPDATING - The registration policy is getting updated. - NEEDS_ATTENTION - The + * registration policy needs attention. - FAILED - The registration policy creation or + * update has failed. - DELETING - The registration policy is getting deleted. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The lifecycle state of the registration policy. - CREATING - The registration policy is + * getting created. - ACTIVE - The registration policy has been successfully created. - + * UPDATING - The registration policy is getting updated. - NEEDS_ATTENTION - The + * registration policy needs attention. - FAILED - The registration policy creation or + * update has failed. - DELETING - The registration policy is getting deleted. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Details about the lifecycle state of the registration policy */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Details about the lifecycle state of the registration policy + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** The date and time when the registration policy was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time when the registration policy was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The date and time when the registration policy was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time when the registration policy was last updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * 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.JsonProperty("connectionOption") + private PolicyConnectionOption connectionOption; + + public Builder connectionOption(PolicyConnectionOption connectionOption) { + this.connectionOption = connectionOption; + this.__explicitlySet__.add("connectionOption"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RegistrationPolicy build() { + RegistrationPolicy model = + new RegistrationPolicy( + this.compartmentId, + this.id, + this.displayName, + this.description, + this.enablementLevel, + this.resourceId, + this.features, + this.canOverrideFeatures, + this.lifecycleState, + this.lifecycleStateDetails, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.connectionOption); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RegistrationPolicy model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + 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("enablementLevel")) { + this.enablementLevel(model.getEnablementLevel()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } + if (model.wasPropertyExplicitlySet("canOverrideFeatures")) { + this.canOverrideFeatures(model.getCanOverrideFeatures()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("connectionOption")) { + this.connectionOption(model.getConnectionOption()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID for the compartment containing the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID for the compartment containing the registration policy. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the registration policy. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The display name of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the registration policy. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** A description of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the registration policy. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The resource type which has been opted in for the registration policy. - DATABASE - The + * registration policy will be opted in at the Container Database level. + */ + public enum EnablementLevel implements com.oracle.bmc.http.internal.BmcEnum { + Database("DATABASE"), + + /** + * 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(EnablementLevel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (EnablementLevel v : EnablementLevel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + EnablementLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static EnablementLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'EnablementLevel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The resource type which has been opted in for the registration policy. - DATABASE - The + * registration policy will be opted in at the Container Database level. + */ + @com.fasterxml.jackson.annotation.JsonProperty("enablementLevel") + private final EnablementLevel enablementLevel; + + /** + * The resource type which has been opted in for the registration policy. - DATABASE - The + * registration policy will be opted in at the Container Database level. + * + * @return the value + */ + public EnablementLevel getEnablementLevel() { + return enablementLevel; + } + + /** The OCID of the resource used in the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID of the resource used in the registration policy. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** + * The Data Safe features granted to the databases registering under the registration policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * The Data Safe features granted to the databases registering under the registration policy. + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + + /** Indicates whether features will be overridden. */ + @com.fasterxml.jackson.annotation.JsonProperty("canOverrideFeatures") + private final Boolean canOverrideFeatures; + + /** + * Indicates whether features will be overridden. + * + * @return the value + */ + public Boolean getCanOverrideFeatures() { + return canOverrideFeatures; + } + + /** + * The lifecycle state of the registration policy. - CREATING - The registration policy is + * getting created. - ACTIVE - The registration policy has been successfully created. - UPDATING + * - The registration policy is getting updated. - NEEDS_ATTENTION - The registration policy + * needs attention. - FAILED - The registration policy creation or update has failed. - DELETING + * - The registration policy is getting deleted. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + NeedsAttention("NEEDS_ATTENTION"), + Failed("FAILED"), + Deleting("DELETING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The lifecycle state of the registration policy. - CREATING - The registration policy is + * getting created. - ACTIVE - The registration policy has been successfully created. - UPDATING + * - The registration policy is getting updated. - NEEDS_ATTENTION - The registration policy + * needs attention. - FAILED - The registration policy creation or update has failed. - DELETING + * - The registration policy is getting deleted. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The lifecycle state of the registration policy. - CREATING - The registration policy is + * getting created. - ACTIVE - The registration policy has been successfully created. - UPDATING + * - The registration policy is getting updated. - NEEDS_ATTENTION - The registration policy + * needs attention. - FAILED - The registration policy creation or update has failed. - DELETING + * - The registration policy is getting deleted. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Details about the lifecycle state of the registration policy */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Details about the lifecycle state of the registration policy + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** The date and time when the registration policy was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time when the registration policy was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time when the registration policy was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time when the registration policy was last updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionOption") + private final PolicyConnectionOption connectionOption; + + public PolicyConnectionOption getConnectionOption() { + return connectionOption; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RegistrationPolicy("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + 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(", enablementLevel=").append(String.valueOf(this.enablementLevel)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", features=").append(String.valueOf(this.features)); + sb.append(", canOverrideFeatures=").append(String.valueOf(this.canOverrideFeatures)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", connectionOption=").append(String.valueOf(this.connectionOption)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RegistrationPolicy)) { + return false; + } + + RegistrationPolicy other = (RegistrationPolicy) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && 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.enablementLevel, other.enablementLevel) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.features, other.features) + && java.util.Objects.equals(this.canOverrideFeatures, other.canOverrideFeatures) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.connectionOption, other.connectionOption) + && 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.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.enablementLevel == null ? 43 : this.enablementLevel.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); + result = + (result * PRIME) + + (this.canOverrideFeatures == null + ? 43 + : this.canOverrideFeatures.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.connectionOption == null ? 43 : this.connectionOption.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyCollection.java new file mode 100644 index 00000000000..87aa21b3a7d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyCollection.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.datasafe.model; + +/** + * A collection of registration policy summaries. This object contains an array of registration + * policy summary items.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RegistrationPolicyCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RegistrationPolicyCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public RegistrationPolicyCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of registration policy summary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of registration policy summary items. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RegistrationPolicyCollection build() { + RegistrationPolicyCollection model = new RegistrationPolicyCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RegistrationPolicyCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of registration policy summary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of registration policy summary items. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RegistrationPolicyCollection("); + 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 RegistrationPolicyCollection)) { + return false; + } + + RegistrationPolicyCollection other = (RegistrationPolicyCollection) 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/RegistrationPolicyFeatures.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyFeatures.java new file mode 100644 index 00000000000..44d7c06873a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyFeatures.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.datasafe.model; + +/** + * The datasafe features that are going to grant the privilages in the database that is registering + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum RegistrationPolicyFeatures implements com.oracle.bmc.http.internal.BmcEnum { + Assessment("ASSESSMENT"), + AuditCollection("AUDIT_COLLECTION"), + AuditSetting("AUDIT_SETTING"), + DataDiscovery("DATA_DISCOVERY"), + Masking("MASKING"), + SqlFirewall("SQL_FIREWALL"), + All("ALL"), + + /** + * 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(RegistrationPolicyFeatures.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RegistrationPolicyFeatures v : RegistrationPolicyFeatures.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RegistrationPolicyFeatures(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RegistrationPolicyFeatures create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RegistrationPolicyFeatures', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicySummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicySummary.java new file mode 100644 index 00000000000..868e8d5e636 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicySummary.java @@ -0,0 +1,683 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * A summary of a registration policy. This object contains key information about a registration + * policy, including its ID, compartment ID, display name, and lifecycle state.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RegistrationPolicySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RegistrationPolicySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "id", + "displayName", + "description", + "enablementLevel", + "resourceId", + "lifecycleState", + "lifecycleStateDetails", + "timeCreated", + "timeUpdated", + "connectionOption", + "freeformTags", + "definedTags", + "systemTags" + }) + public RegistrationPolicySummary( + String compartmentId, + String id, + String displayName, + String description, + RegistrationPolicy.EnablementLevel enablementLevel, + String resourceId, + RegistrationPolicy.LifecycleState lifecycleState, + String lifecycleStateDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + PolicyConnectionOption connectionOption, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.compartmentId = compartmentId; + this.id = id; + this.displayName = displayName; + this.description = description; + this.enablementLevel = enablementLevel; + this.resourceId = resourceId; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.connectionOption = connectionOption; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID for the compartment containing the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID for the compartment containing the registration policy. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The OCID of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the registration policy. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The display name of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the registration policy. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** A description of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of the registration policy. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The type of resource that is opted-in for the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("enablementLevel") + private RegistrationPolicy.EnablementLevel enablementLevel; + + /** + * The type of resource that is opted-in for the registration policy. + * + * @param enablementLevel the value to set + * @return this builder + */ + public Builder enablementLevel(RegistrationPolicy.EnablementLevel enablementLevel) { + this.enablementLevel = enablementLevel; + this.__explicitlySet__.add("enablementLevel"); + return this; + } + /** The OCID of the resource used in the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID of the resource used in the registration policy. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** The current lifecycle state of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private RegistrationPolicy.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the registration policy. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(RegistrationPolicy.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Details about the lifecycle state of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Details about the lifecycle state of the registration policy. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** The date and time when the registration policy was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time when the registration policy was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The date and time when the registration policy was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time when the registration policy was last updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionOption") + private PolicyConnectionOption connectionOption; + + public Builder connectionOption(PolicyConnectionOption connectionOption) { + this.connectionOption = connectionOption; + this.__explicitlySet__.add("connectionOption"); + 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 RegistrationPolicySummary build() { + RegistrationPolicySummary model = + new RegistrationPolicySummary( + this.compartmentId, + this.id, + this.displayName, + this.description, + this.enablementLevel, + this.resourceId, + this.lifecycleState, + this.lifecycleStateDetails, + this.timeCreated, + this.timeUpdated, + this.connectionOption, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RegistrationPolicySummary model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + 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("enablementLevel")) { + this.enablementLevel(model.getEnablementLevel()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("connectionOption")) { + this.connectionOption(model.getConnectionOption()); + } + 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 for the compartment containing the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID for the compartment containing the registration policy. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the registration policy. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The display name of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the registration policy. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** A description of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the registration policy. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The type of resource that is opted-in for the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("enablementLevel") + private final RegistrationPolicy.EnablementLevel enablementLevel; + + /** + * The type of resource that is opted-in for the registration policy. + * + * @return the value + */ + public RegistrationPolicy.EnablementLevel getEnablementLevel() { + return enablementLevel; + } + + /** The OCID of the resource used in the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID of the resource used in the registration policy. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** The current lifecycle state of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final RegistrationPolicy.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the registration policy. + * + * @return the value + */ + public RegistrationPolicy.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Details about the lifecycle state of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Details about the lifecycle state of the registration policy. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** The date and time when the registration policy was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time when the registration policy was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time when the registration policy was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time when the registration policy was last updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionOption") + private final PolicyConnectionOption connectionOption; + + public PolicyConnectionOption getConnectionOption() { + return connectionOption; + } + + /** + * 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("RegistrationPolicySummary("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + 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(", enablementLevel=").append(String.valueOf(this.enablementLevel)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", connectionOption=").append(String.valueOf(this.connectionOption)); + 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 RegistrationPolicySummary)) { + return false; + } + + RegistrationPolicySummary other = (RegistrationPolicySummary) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && 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.enablementLevel, other.enablementLevel) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.connectionOption, other.connectionOption) + && 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.compartmentId == null ? 43 : this.compartmentId.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()); + result = + (result * PRIME) + + (this.enablementLevel == null ? 43 : this.enablementLevel.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.connectionOption == null ? 43 : this.connectionOption.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/RegistrationPolicyTargetDatabaseSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyTargetDatabaseSummary.java new file mode 100644 index 00000000000..f622bf70fcf --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyTargetDatabaseSummary.java @@ -0,0 +1,331 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a discovered database resource and its Data Safe target registered via a registration + * policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RegistrationPolicyTargetDatabaseSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RegistrationPolicyTargetDatabaseSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "discoveredResourceId", + "discoveredResourceType", + "targetDatabaseId", + "systemTags" + }) + public RegistrationPolicyTargetDatabaseSummary( + String discoveredResourceId, + DiscoveredResourceType discoveredResourceType, + String targetDatabaseId, + java.util.Map> systemTags) { + super(); + this.discoveredResourceId = discoveredResourceId; + this.discoveredResourceType = discoveredResourceType; + this.targetDatabaseId = targetDatabaseId; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The ID of the discovered database resource (for example, a Database or Pluggable + * Database) that is part of discovery. + */ + @com.fasterxml.jackson.annotation.JsonProperty("discoveredResourceId") + private String discoveredResourceId; + + /** + * The ID of the discovered database resource (for example, a Database or Pluggable + * Database) that is part of discovery. + * + * @param discoveredResourceId the value to set + * @return this builder + */ + public Builder discoveredResourceId(String discoveredResourceId) { + this.discoveredResourceId = discoveredResourceId; + this.__explicitlySet__.add("discoveredResourceId"); + return this; + } + /** The type of the discovered database resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("discoveredResourceType") + private DiscoveredResourceType discoveredResourceType; + + /** + * The type of the discovered database resource. + * + * @param discoveredResourceType the value to set + * @return this builder + */ + public Builder discoveredResourceType(DiscoveredResourceType discoveredResourceType) { + this.discoveredResourceType = discoveredResourceType; + this.__explicitlySet__.add("discoveredResourceType"); + return this; + } + /** The ID of the Data Safe Target Database associated with the discovered resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseId") + private String targetDatabaseId; + + /** + * The ID of the Data Safe Target Database associated with the discovered resource. + * + * @param targetDatabaseId the value to set + * @return this builder + */ + public Builder targetDatabaseId(String targetDatabaseId) { + this.targetDatabaseId = targetDatabaseId; + this.__explicitlySet__.add("targetDatabaseId"); + 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 RegistrationPolicyTargetDatabaseSummary build() { + RegistrationPolicyTargetDatabaseSummary model = + new RegistrationPolicyTargetDatabaseSummary( + this.discoveredResourceId, + this.discoveredResourceType, + this.targetDatabaseId, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RegistrationPolicyTargetDatabaseSummary model) { + if (model.wasPropertyExplicitlySet("discoveredResourceId")) { + this.discoveredResourceId(model.getDiscoveredResourceId()); + } + if (model.wasPropertyExplicitlySet("discoveredResourceType")) { + this.discoveredResourceType(model.getDiscoveredResourceType()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseId")) { + this.targetDatabaseId(model.getTargetDatabaseId()); + } + 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 ID of the discovered database resource (for example, a Database or Pluggable Database) + * that is part of discovery. + */ + @com.fasterxml.jackson.annotation.JsonProperty("discoveredResourceId") + private final String discoveredResourceId; + + /** + * The ID of the discovered database resource (for example, a Database or Pluggable Database) + * that is part of discovery. + * + * @return the value + */ + public String getDiscoveredResourceId() { + return discoveredResourceId; + } + + /** The type of the discovered database resource. */ + public enum DiscoveredResourceType implements com.oracle.bmc.http.internal.BmcEnum { + Database("DATABASE"), + PluggableDatabase("PLUGGABLE_DATABASE"), + + /** + * 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(DiscoveredResourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DiscoveredResourceType v : DiscoveredResourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DiscoveredResourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DiscoveredResourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DiscoveredResourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The type of the discovered database resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("discoveredResourceType") + private final DiscoveredResourceType discoveredResourceType; + + /** + * The type of the discovered database resource. + * + * @return the value + */ + public DiscoveredResourceType getDiscoveredResourceType() { + return discoveredResourceType; + } + + /** The ID of the Data Safe Target Database associated with the discovered resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseId") + private final String targetDatabaseId; + + /** + * The ID of the Data Safe Target Database associated with the discovered resource. + * + * @return the value + */ + public String getTargetDatabaseId() { + return targetDatabaseId; + } + + /** + * 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("RegistrationPolicyTargetDatabaseSummary("); + sb.append("super=").append(super.toString()); + sb.append("discoveredResourceId=").append(String.valueOf(this.discoveredResourceId)); + sb.append(", discoveredResourceType=").append(String.valueOf(this.discoveredResourceType)); + sb.append(", targetDatabaseId=").append(String.valueOf(this.targetDatabaseId)); + 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 RegistrationPolicyTargetDatabaseSummary)) { + return false; + } + + RegistrationPolicyTargetDatabaseSummary other = (RegistrationPolicyTargetDatabaseSummary) o; + return java.util.Objects.equals(this.discoveredResourceId, other.discoveredResourceId) + && java.util.Objects.equals( + this.discoveredResourceType, other.discoveredResourceType) + && java.util.Objects.equals(this.targetDatabaseId, other.targetDatabaseId) + && 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.discoveredResourceId == null + ? 43 + : this.discoveredResourceId.hashCode()); + result = + (result * PRIME) + + (this.discoveredResourceType == null + ? 43 + : this.discoveredResourceType.hashCode()); + result = + (result * PRIME) + + (this.targetDatabaseId == null ? 43 : this.targetDatabaseId.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/RegistrationPolicyTargetDatabaseSummaryCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyTargetDatabaseSummaryCollection.java new file mode 100644 index 00000000000..8220efb00fb --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RegistrationPolicyTargetDatabaseSummaryCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * A collection of RegistrationPolicyTargetDatabaseSummary items.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RegistrationPolicyTargetDatabaseSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RegistrationPolicyTargetDatabaseSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public RegistrationPolicyTargetDatabaseSummaryCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Array of RegistrationPolicyTargetDatabaseSummary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of RegistrationPolicyTargetDatabaseSummary items. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RegistrationPolicyTargetDatabaseSummaryCollection build() { + RegistrationPolicyTargetDatabaseSummaryCollection model = + new RegistrationPolicyTargetDatabaseSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RegistrationPolicyTargetDatabaseSummaryCollection 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 RegistrationPolicyTargetDatabaseSummary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of RegistrationPolicyTargetDatabaseSummary items. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RegistrationPolicyTargetDatabaseSummaryCollection("); + 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 RegistrationPolicyTargetDatabaseSummaryCollection)) { + return false; + } + + RegistrationPolicyTargetDatabaseSummaryCollection other = + (RegistrationPolicyTargetDatabaseSummaryCollection) 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/SchemaSourceDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceDetails.java new file mode 100644 index 00000000000..2c9971151f7 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceDetails.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * The source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource", + defaultImpl = SchemaSourceDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SchemaSourceFromTargetDetails.class, + name = "TARGET"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SchemaSourceFromSdmDetails.class, + name = "SENSITIVE_DATA_MODEL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class SchemaSourceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"schemasForSubsetting", "derivedSchemas"}) + protected SchemaSourceDetails( + java.util.List schemasForSubsetting, java.util.List derivedSchemas) { + super(); + this.schemasForSubsetting = schemasForSubsetting; + this.derivedSchemas = derivedSchemas; + } + + /** The schemas to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("schemasForSubsetting") + private final java.util.List schemasForSubsetting; + + /** + * The schemas to be subsetted + * + * @return the value + */ + public java.util.List getSchemasForSubsetting() { + return schemasForSubsetting; + } + + /** + * The schemas which are related to the input list of schemas in 'schemasForSubsetting'. These + * schemas can also be impacted from the subsetting process due to their relations with the + * schemas in 'schemasForSubsetting' + */ + @com.fasterxml.jackson.annotation.JsonProperty("derivedSchemas") + private final java.util.List derivedSchemas; + + /** + * The schemas which are related to the input list of schemas in 'schemasForSubsetting'. These + * schemas can also be impacted from the subsetting process due to their relations with the + * schemas in 'schemasForSubsetting' + * + * @return the value + */ + public java.util.List getDerivedSchemas() { + return derivedSchemas; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchemaSourceDetails("); + sb.append("super=").append(super.toString()); + sb.append("schemasForSubsetting=").append(String.valueOf(this.schemasForSubsetting)); + sb.append(", derivedSchemas=").append(String.valueOf(this.derivedSchemas)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchemaSourceDetails)) { + return false; + } + + SchemaSourceDetails other = (SchemaSourceDetails) o; + return java.util.Objects.equals(this.schemasForSubsetting, other.schemasForSubsetting) + && java.util.Objects.equals(this.derivedSchemas, other.derivedSchemas) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.schemasForSubsetting == null + ? 43 + : this.schemasForSubsetting.hashCode()); + result = + (result * PRIME) + + (this.derivedSchemas == null ? 43 : this.derivedSchemas.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** The source of subsetting schemas */ + public enum SchemaSource implements com.oracle.bmc.http.internal.BmcEnum { + Target("TARGET"), + SensitiveDataModel("SENSITIVE_DATA_MODEL"), + + /** + * 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(SchemaSource.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SchemaSource v : SchemaSource.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SchemaSource(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SchemaSource create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SchemaSource', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceForSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceForSummary.java new file mode 100644 index 00000000000..6c269322cfd --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceForSummary.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.datasafe.model; + +/** + * The source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource", + defaultImpl = SchemaSourceForSummary.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SchemaSourceFromTargetForSummary.class, + name = "TARGET"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SchemaSourceFromSdmForSummary.class, + name = "SENSITIVE_DATA_MODEL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class SchemaSourceForSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected SchemaSourceForSummary() { + 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("SchemaSourceForSummary("); + 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 SchemaSourceForSummary)) { + return false; + } + + SchemaSourceForSummary other = (SchemaSourceForSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** The source of subsetting schemas */ + public enum SchemaSource implements com.oracle.bmc.http.internal.BmcEnum { + Target("TARGET"), + SensitiveDataModel("SENSITIVE_DATA_MODEL"), + + /** + * 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(SchemaSource.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SchemaSource v : SchemaSource.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SchemaSource(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SchemaSource create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SchemaSource', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromSdmDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromSdmDetails.java new file mode 100644 index 00000000000..50d5d539c8e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromSdmDetails.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.datasafe.model; + +/** + * Details of the sensitive data model that's used as the source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SchemaSourceFromSdmDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchemaSourceFromSdmDetails extends SchemaSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("schemasForSubsetting") + private java.util.List schemasForSubsetting; + + public Builder schemasForSubsetting(java.util.List schemasForSubsetting) { + this.schemasForSubsetting = schemasForSubsetting; + this.__explicitlySet__.add("schemasForSubsetting"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("derivedSchemas") + private java.util.List derivedSchemas; + + public Builder derivedSchemas(java.util.List derivedSchemas) { + this.derivedSchemas = derivedSchemas; + this.__explicitlySet__.add("derivedSchemas"); + return this; + } + /** The OCID of the sensitive data model that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("sensitiveDataModelId") + private String sensitiveDataModelId; + + /** + * The OCID of the sensitive data model that's used as the source of subsetting schemas + * + * @param sensitiveDataModelId the value to set + * @return this builder + */ + public Builder sensitiveDataModelId(String sensitiveDataModelId) { + this.sensitiveDataModelId = sensitiveDataModelId; + this.__explicitlySet__.add("sensitiveDataModelId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchemaSourceFromSdmDetails build() { + SchemaSourceFromSdmDetails model = + new SchemaSourceFromSdmDetails( + this.schemasForSubsetting, + this.derivedSchemas, + this.sensitiveDataModelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchemaSourceFromSdmDetails model) { + if (model.wasPropertyExplicitlySet("schemasForSubsetting")) { + this.schemasForSubsetting(model.getSchemasForSubsetting()); + } + if (model.wasPropertyExplicitlySet("derivedSchemas")) { + this.derivedSchemas(model.getDerivedSchemas()); + } + if (model.wasPropertyExplicitlySet("sensitiveDataModelId")) { + this.sensitiveDataModelId(model.getSensitiveDataModelId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public SchemaSourceFromSdmDetails( + java.util.List schemasForSubsetting, + java.util.List derivedSchemas, + String sensitiveDataModelId) { + super(schemasForSubsetting, derivedSchemas); + this.sensitiveDataModelId = sensitiveDataModelId; + } + + /** The OCID of the sensitive data model that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("sensitiveDataModelId") + private final String sensitiveDataModelId; + + /** + * The OCID of the sensitive data model that's used as the source of subsetting schemas + * + * @return the value + */ + public String getSensitiveDataModelId() { + return sensitiveDataModelId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchemaSourceFromSdmDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sensitiveDataModelId=").append(String.valueOf(this.sensitiveDataModelId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchemaSourceFromSdmDetails)) { + return false; + } + + SchemaSourceFromSdmDetails other = (SchemaSourceFromSdmDetails) o; + return java.util.Objects.equals(this.sensitiveDataModelId, other.sensitiveDataModelId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sensitiveDataModelId == null + ? 43 + : this.sensitiveDataModelId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromSdmForSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromSdmForSummary.java new file mode 100644 index 00000000000..e8c38b75047 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromSdmForSummary.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.datasafe.model; + +/** + * Details of the sensitive data model that's used as the source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SchemaSourceFromSdmForSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchemaSourceFromSdmForSummary extends SchemaSourceForSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the sensitive data model that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("sensitiveDataModelId") + private String sensitiveDataModelId; + + /** + * The OCID of the sensitive data model that's used as the source of subsetting schemas + * + * @param sensitiveDataModelId the value to set + * @return this builder + */ + public Builder sensitiveDataModelId(String sensitiveDataModelId) { + this.sensitiveDataModelId = sensitiveDataModelId; + this.__explicitlySet__.add("sensitiveDataModelId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchemaSourceFromSdmForSummary build() { + SchemaSourceFromSdmForSummary model = + new SchemaSourceFromSdmForSummary(this.sensitiveDataModelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchemaSourceFromSdmForSummary model) { + if (model.wasPropertyExplicitlySet("sensitiveDataModelId")) { + this.sensitiveDataModelId(model.getSensitiveDataModelId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public SchemaSourceFromSdmForSummary(String sensitiveDataModelId) { + super(); + this.sensitiveDataModelId = sensitiveDataModelId; + } + + /** The OCID of the sensitive data model that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("sensitiveDataModelId") + private final String sensitiveDataModelId; + + /** + * The OCID of the sensitive data model that's used as the source of subsetting schemas + * + * @return the value + */ + public String getSensitiveDataModelId() { + return sensitiveDataModelId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchemaSourceFromSdmForSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sensitiveDataModelId=").append(String.valueOf(this.sensitiveDataModelId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchemaSourceFromSdmForSummary)) { + return false; + } + + SchemaSourceFromSdmForSummary other = (SchemaSourceFromSdmForSummary) o; + return java.util.Objects.equals(this.sensitiveDataModelId, other.sensitiveDataModelId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sensitiveDataModelId == null + ? 43 + : this.sensitiveDataModelId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromTargetDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromTargetDetails.java new file mode 100644 index 00000000000..d800d9681ce --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromTargetDetails.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Details of the target database that's used as the source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SchemaSourceFromTargetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchemaSourceFromTargetDetails extends SchemaSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("schemasForSubsetting") + private java.util.List schemasForSubsetting; + + public Builder schemasForSubsetting(java.util.List schemasForSubsetting) { + this.schemasForSubsetting = schemasForSubsetting; + this.__explicitlySet__.add("schemasForSubsetting"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("derivedSchemas") + private java.util.List derivedSchemas; + + public Builder derivedSchemas(java.util.List derivedSchemas) { + this.derivedSchemas = derivedSchemas; + this.__explicitlySet__.add("derivedSchemas"); + return this; + } + /** The OCID of the target database that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database that's used as the source of subsetting schemas + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchemaSourceFromTargetDetails build() { + SchemaSourceFromTargetDetails model = + new SchemaSourceFromTargetDetails( + this.schemasForSubsetting, this.derivedSchemas, this.targetId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchemaSourceFromTargetDetails model) { + if (model.wasPropertyExplicitlySet("schemasForSubsetting")) { + this.schemasForSubsetting(model.getSchemasForSubsetting()); + } + if (model.wasPropertyExplicitlySet("derivedSchemas")) { + this.derivedSchemas(model.getDerivedSchemas()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public SchemaSourceFromTargetDetails( + java.util.List schemasForSubsetting, + java.util.List derivedSchemas, + String targetId) { + super(schemasForSubsetting, derivedSchemas); + this.targetId = targetId; + } + + /** The OCID of the target database that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database that's used as the source of subsetting schemas + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchemaSourceFromTargetDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchemaSourceFromTargetDetails)) { + return false; + } + + SchemaSourceFromTargetDetails other = (SchemaSourceFromTargetDetails) o; + return java.util.Objects.equals(this.targetId, other.targetId) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromTargetForSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromTargetForSummary.java new file mode 100644 index 00000000000..d2a4fed5dc0 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SchemaSourceFromTargetForSummary.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; + +/** + * Details of the target database that's used as the source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SchemaSourceFromTargetForSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchemaSourceFromTargetForSummary extends SchemaSourceForSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the target database that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database that's used as the source of subsetting schemas + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchemaSourceFromTargetForSummary build() { + SchemaSourceFromTargetForSummary model = + new SchemaSourceFromTargetForSummary(this.targetId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchemaSourceFromTargetForSummary model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public SchemaSourceFromTargetForSummary(String targetId) { + super(); + this.targetId = targetId; + } + + /** The OCID of the target database that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database that's used as the source of subsetting schemas + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchemaSourceFromTargetForSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchemaSourceFromTargetForSummary)) { + return false; + } + + SchemaSourceFromTargetForSummary other = (SchemaSourceFromTargetForSummary) o; + return java.util.Objects.equals(this.targetId, other.targetId) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetDataDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetDataDetails.java new file mode 100644 index 00000000000..55b59b0af55 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetDataDetails.java @@ -0,0 +1,693 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details required to perform data subsetting on a target database using a subsetting policy
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsetDataDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsetDataDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetId", + "masking", + "isRerun", + "reRunFromStep", + "tablespace", + "isRedoLoggingEnabled", + "isRefreshStatsEnabled", + "parallelDegree", + "recompile", + "targetCredentials" + }) + public SubsetDataDetails( + String targetId, + Masking masking, + Boolean isRerun, + ReRunFromStep reRunFromStep, + String tablespace, + Boolean isRedoLoggingEnabled, + Boolean isRefreshStatsEnabled, + String parallelDegree, + SubsettingPolicy.Recompile recompile, + Credentials targetCredentials) { + super(); + this.targetId = targetId; + this.masking = masking; + this.isRerun = isRerun; + this.reRunFromStep = reRunFromStep; + this.tablespace = tablespace; + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.parallelDegree = parallelDegree; + this.recompile = recompile; + this.targetCredentials = targetCredentials; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the target database to be subsetted. If it's not provided, the value of the + * targetId attribute in the SubsettingPolicy resource is used + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database to be subsetted. If it's not provided, the value of the + * targetId attribute in the SubsettingPolicy resource is used + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Indicates whether masking should be triggered after successful subsetting */ + @com.fasterxml.jackson.annotation.JsonProperty("masking") + private Masking masking; + + /** + * Indicates whether masking should be triggered after successful subsetting + * + * @param masking the value to set + * @return this builder + */ + public Builder masking(Masking masking) { + this.masking = masking; + this.__explicitlySet__.add("masking"); + return this; + } + /** Indicates if the request is to rerun the previously failed subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("isRerun") + private Boolean isRerun; + + /** + * Indicates if the request is to rerun the previously failed subsetting job + * + * @param isRerun the value to set + * @return this builder + */ + public Builder isRerun(Boolean isRerun) { + this.isRerun = isRerun; + this.__explicitlySet__.add("isRerun"); + return this; + } + /** + * Specifies the step from which subsetting needs to be rerun. This param will be used only + * when isRerun attribute is true. If PRE_SUBSETTING_SCRIPT is passed, it will rerun the + * pre-subsetting script, followed by subsetting, and then the post-subsetting script. If + * POST_SUBSETTING_SCRIPT is passed, it will rerun only the post-subsetting script. If this + * field is not set and isRerun is set to true, then it will default to the last failed + * step. + */ + @com.fasterxml.jackson.annotation.JsonProperty("reRunFromStep") + private ReRunFromStep reRunFromStep; + + /** + * Specifies the step from which subsetting needs to be rerun. This param will be used only + * when isRerun attribute is true. If PRE_SUBSETTING_SCRIPT is passed, it will rerun the + * pre-subsetting script, followed by subsetting, and then the post-subsetting script. If + * POST_SUBSETTING_SCRIPT is passed, it will rerun only the post-subsetting script. If this + * field is not set and isRerun is set to true, then it will default to the last failed + * step. + * + * @param reRunFromStep the value to set + * @return this builder + */ + public Builder reRunFromStep(ReRunFromStep reRunFromStep) { + this.reRunFromStep = reRunFromStep; + this.__explicitlySet__.add("reRunFromStep"); + return this; + } + /** + * The tablespace that should be used to create the temporary tables for data subsetting. If + * no tablespace is provided, the DEFAULT tablespace is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tablespace") + private String tablespace; + + /** + * The tablespace that should be used to create the temporary tables for data subsetting. If + * no tablespace is provided, the DEFAULT tablespace is used. + * + * @param tablespace the value to set + * @return this builder + */ + public Builder tablespace(String tablespace) { + this.tablespace = tablespace; + this.__explicitlySet__.add("tablespace"); + return this; + } + /** + * Indicates if redo logging is enabled during a subsetting operation. Set this attribute to + * true to enable redo logging. If set as false, subsetting disables redo logging and + * flashback logging to purge any original data from logs. However, in certain circumstances + * when you only want to test subsetting, rollback changes, and retry, you could enable + * logging and use a flashback database to retrieve the original data after it has been + * subsetted. If it's not provided, the value of the isRedoLoggingEnabled attribute in the + * SubsettingPolicy resource is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging is enabled during a subsetting operation. Set this attribute to + * true to enable redo logging. If set as false, subsetting disables redo logging and + * flashback logging to purge any original data from logs. However, in certain circumstances + * when you only want to test subsetting, rollback changes, and retry, you could enable + * logging and use a flashback database to retrieve the original data after it has been + * subsetted. If it's not provided, the value of the isRedoLoggingEnabled attribute in the + * SubsettingPolicy resource is used. + * + * @param isRedoLoggingEnabled the value to set + * @return this builder + */ + public Builder isRedoLoggingEnabled(Boolean isRedoLoggingEnabled) { + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.__explicitlySet__.add("isRedoLoggingEnabled"); + return this; + } + /** + * Indicates if statistics gathering is enabled. Set this attribute to false to disable + * statistics gathering. The subsetting process gathers statistics on subset database tables + * after subsetting completes. If it's not provided, the value of the isRefreshStatsEnabled + * attribute in the SubsettingPolicy resource is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering is enabled. Set this attribute to false to disable + * statistics gathering. The subsetting process gathers statistics on subset database tables + * after subsetting completes. If it's not provided, the value of the isRefreshStatsEnabled + * attribute in the SubsettingPolicy resource is used. + * + * @param isRefreshStatsEnabled the value to set + * @return this builder + */ + public Builder isRefreshStatsEnabled(Boolean isRefreshStatsEnabled) { + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.__explicitlySet__.add("isRefreshStatsEnabled"); + return this; + } + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed + * values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum + * degree of parallelism) or an integer value to be used as the degree of parallelism. + * Parallel execution helps effectively use multiple CPUs and improve subsetting + * performance. Refer to the Oracle Database parallel execution framework when choosing an + * explicit degree of parallelism. + * https://www.oracle.com/pls/topic/lookup?ctx=dblatest&en/database/oracle/oracle-database&id=VLDBG-GUID-3E2AE088-2505-465E-A8B2-AC38813EA355 + * If it's not provided, the value of the parallelDegree attribute in the SubsettingPolicy + * resource is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private String parallelDegree; + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed + * values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum + * degree of parallelism) or an integer value to be used as the degree of parallelism. + * Parallel execution helps effectively use multiple CPUs and improve subsetting + * performance. Refer to the Oracle Database parallel execution framework when choosing an + * explicit degree of parallelism. + * https://www.oracle.com/pls/topic/lookup?ctx=dblatest&en/database/oracle/oracle-database&id=VLDBG-GUID-3E2AE088-2505-465E-A8B2-AC38813EA355 + * If it's not provided, the value of the parallelDegree attribute in the SubsettingPolicy + * resource is used. + * + * @param parallelDegree the value to set + * @return this builder + */ + public Builder parallelDegree(String parallelDegree) { + this.parallelDegree = parallelDegree; + this.__explicitlySet__.add("parallelDegree"); + return this; + } + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are + * 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not + * recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use + * the built-in UTL_RECOMP package to recompile any remaining invalid objects after + * subsetting completes. If it's not provided, the value of the recompile attribute in the + * SubsettingPolicy resource is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private SubsettingPolicy.Recompile recompile; + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are + * 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not + * recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use + * the built-in UTL_RECOMP package to recompile any remaining invalid objects after + * subsetting completes. If it's not provided, the value of the recompile attribute in the + * SubsettingPolicy resource is used. + * + * @param recompile the value to set + * @return this builder + */ + public Builder recompile(SubsettingPolicy.Recompile recompile) { + this.recompile = recompile; + this.__explicitlySet__.add("recompile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetCredentials") + private Credentials targetCredentials; + + public Builder targetCredentials(Credentials targetCredentials) { + this.targetCredentials = targetCredentials; + this.__explicitlySet__.add("targetCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsetDataDetails build() { + SubsetDataDetails model = + new SubsetDataDetails( + this.targetId, + this.masking, + this.isRerun, + this.reRunFromStep, + this.tablespace, + this.isRedoLoggingEnabled, + this.isRefreshStatsEnabled, + this.parallelDegree, + this.recompile, + this.targetCredentials); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsetDataDetails model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("masking")) { + this.masking(model.getMasking()); + } + if (model.wasPropertyExplicitlySet("isRerun")) { + this.isRerun(model.getIsRerun()); + } + if (model.wasPropertyExplicitlySet("reRunFromStep")) { + this.reRunFromStep(model.getReRunFromStep()); + } + if (model.wasPropertyExplicitlySet("tablespace")) { + this.tablespace(model.getTablespace()); + } + if (model.wasPropertyExplicitlySet("isRedoLoggingEnabled")) { + this.isRedoLoggingEnabled(model.getIsRedoLoggingEnabled()); + } + if (model.wasPropertyExplicitlySet("isRefreshStatsEnabled")) { + this.isRefreshStatsEnabled(model.getIsRefreshStatsEnabled()); + } + if (model.wasPropertyExplicitlySet("parallelDegree")) { + this.parallelDegree(model.getParallelDegree()); + } + if (model.wasPropertyExplicitlySet("recompile")) { + this.recompile(model.getRecompile()); + } + if (model.wasPropertyExplicitlySet("targetCredentials")) { + this.targetCredentials(model.getTargetCredentials()); + } + 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 to be subsetted. If it's not provided, the value of the + * targetId attribute in the SubsettingPolicy resource is used + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database to be subsetted. If it's not provided, the value of the + * targetId attribute in the SubsettingPolicy resource is used + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Indicates whether masking should be triggered after successful subsetting */ + public enum Masking implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Masking v : Masking.values()) { + map.put(v.getValue(), v); + } + } + + Masking(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Masking create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Masking: " + key); + } + }; + /** Indicates whether masking should be triggered after successful subsetting */ + @com.fasterxml.jackson.annotation.JsonProperty("masking") + private final Masking masking; + + /** + * Indicates whether masking should be triggered after successful subsetting + * + * @return the value + */ + public Masking getMasking() { + return masking; + } + + /** Indicates if the request is to rerun the previously failed subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("isRerun") + private final Boolean isRerun; + + /** + * Indicates if the request is to rerun the previously failed subsetting job + * + * @return the value + */ + public Boolean getIsRerun() { + return isRerun; + } + + /** + * Specifies the step from which subsetting needs to be rerun. This param will be used only when + * isRerun attribute is true. If PRE_SUBSETTING_SCRIPT is passed, it will rerun the + * pre-subsetting script, followed by subsetting, and then the post-subsetting script. If + * POST_SUBSETTING_SCRIPT is passed, it will rerun only the post-subsetting script. If this + * field is not set and isRerun is set to true, then it will default to the last failed step. + */ + public enum ReRunFromStep implements com.oracle.bmc.http.internal.BmcEnum { + PreSubsettingScript("PRE_SUBSETTING_SCRIPT"), + PostSubsettingScript("POST_SUBSETTING_SCRIPT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReRunFromStep v : ReRunFromStep.values()) { + map.put(v.getValue(), v); + } + } + + ReRunFromStep(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReRunFromStep create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ReRunFromStep: " + key); + } + }; + /** + * Specifies the step from which subsetting needs to be rerun. This param will be used only when + * isRerun attribute is true. If PRE_SUBSETTING_SCRIPT is passed, it will rerun the + * pre-subsetting script, followed by subsetting, and then the post-subsetting script. If + * POST_SUBSETTING_SCRIPT is passed, it will rerun only the post-subsetting script. If this + * field is not set and isRerun is set to true, then it will default to the last failed step. + */ + @com.fasterxml.jackson.annotation.JsonProperty("reRunFromStep") + private final ReRunFromStep reRunFromStep; + + /** + * Specifies the step from which subsetting needs to be rerun. This param will be used only when + * isRerun attribute is true. If PRE_SUBSETTING_SCRIPT is passed, it will rerun the + * pre-subsetting script, followed by subsetting, and then the post-subsetting script. If + * POST_SUBSETTING_SCRIPT is passed, it will rerun only the post-subsetting script. If this + * field is not set and isRerun is set to true, then it will default to the last failed step. + * + * @return the value + */ + public ReRunFromStep getReRunFromStep() { + return reRunFromStep; + } + + /** + * The tablespace that should be used to create the temporary tables for data subsetting. If no + * tablespace is provided, the DEFAULT tablespace is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tablespace") + private final String tablespace; + + /** + * The tablespace that should be used to create the temporary tables for data subsetting. If no + * tablespace is provided, the DEFAULT tablespace is used. + * + * @return the value + */ + public String getTablespace() { + return tablespace; + } + + /** + * Indicates if redo logging is enabled during a subsetting operation. Set this attribute to + * true to enable redo logging. If set as false, subsetting disables redo logging and flashback + * logging to purge any original data from logs. However, in certain circumstances when you only + * want to test subsetting, rollback changes, and retry, you could enable logging and use a + * flashback database to retrieve the original data after it has been subsetted. If it's not + * provided, the value of the isRedoLoggingEnabled attribute in the SubsettingPolicy resource is + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private final Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging is enabled during a subsetting operation. Set this attribute to + * true to enable redo logging. If set as false, subsetting disables redo logging and flashback + * logging to purge any original data from logs. However, in certain circumstances when you only + * want to test subsetting, rollback changes, and retry, you could enable logging and use a + * flashback database to retrieve the original data after it has been subsetted. If it's not + * provided, the value of the isRedoLoggingEnabled attribute in the SubsettingPolicy resource is + * used. + * + * @return the value + */ + public Boolean getIsRedoLoggingEnabled() { + return isRedoLoggingEnabled; + } + + /** + * Indicates if statistics gathering is enabled. Set this attribute to false to disable + * statistics gathering. The subsetting process gathers statistics on subset database tables + * after subsetting completes. If it's not provided, the value of the isRefreshStatsEnabled + * attribute in the SubsettingPolicy resource is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private final Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering is enabled. Set this attribute to false to disable + * statistics gathering. The subsetting process gathers statistics on subset database tables + * after subsetting completes. If it's not provided, the value of the isRefreshStatsEnabled + * attribute in the SubsettingPolicy resource is used. + * + * @return the value + */ + public Boolean getIsRefreshStatsEnabled() { + return isRefreshStatsEnabled; + } + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed values + * are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of + * parallelism) or an integer value to be used as the degree of parallelism. Parallel execution + * helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle + * Database parallel execution framework when choosing an explicit degree of parallelism. + * https://www.oracle.com/pls/topic/lookup?ctx=dblatest&en/database/oracle/oracle-database&id=VLDBG-GUID-3E2AE088-2505-465E-A8B2-AC38813EA355 + * If it's not provided, the value of the parallelDegree attribute in the SubsettingPolicy + * resource is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private final String parallelDegree; + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed values + * are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of + * parallelism) or an integer value to be used as the degree of parallelism. Parallel execution + * helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle + * Database parallel execution framework when choosing an explicit degree of parallelism. + * https://www.oracle.com/pls/topic/lookup?ctx=dblatest&en/database/oracle/oracle-database&id=VLDBG-GUID-3E2AE088-2505-465E-A8B2-AC38813EA355 + * If it's not provided, the value of the parallelDegree attribute in the SubsettingPolicy + * resource is used. + * + * @return the value + */ + public String getParallelDegree() { + return parallelDegree; + } + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' + * (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's + * set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP + * package to recompile any remaining invalid objects after subsetting completes. If it's not + * provided, the value of the recompile attribute in the SubsettingPolicy resource is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private final SubsettingPolicy.Recompile recompile; + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' + * (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's + * set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP + * package to recompile any remaining invalid objects after subsetting completes. If it's not + * provided, the value of the recompile attribute in the SubsettingPolicy resource is used. + * + * @return the value + */ + public SubsettingPolicy.Recompile getRecompile() { + return recompile; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetCredentials") + private final Credentials targetCredentials; + + public Credentials getTargetCredentials() { + return targetCredentials; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsetDataDetails("); + sb.append("super=").append(super.toString()); + sb.append("targetId=").append(String.valueOf(this.targetId)); + sb.append(", masking=").append(String.valueOf(this.masking)); + sb.append(", isRerun=").append(String.valueOf(this.isRerun)); + sb.append(", reRunFromStep=").append(String.valueOf(this.reRunFromStep)); + sb.append(", tablespace=").append(String.valueOf(this.tablespace)); + sb.append(", isRedoLoggingEnabled=").append(String.valueOf(this.isRedoLoggingEnabled)); + sb.append(", isRefreshStatsEnabled=").append(String.valueOf(this.isRefreshStatsEnabled)); + sb.append(", parallelDegree=").append(String.valueOf(this.parallelDegree)); + sb.append(", recompile=").append(String.valueOf(this.recompile)); + sb.append(", targetCredentials=").append(String.valueOf(this.targetCredentials)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsetDataDetails)) { + return false; + } + + SubsetDataDetails other = (SubsetDataDetails) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.masking, other.masking) + && java.util.Objects.equals(this.isRerun, other.isRerun) + && java.util.Objects.equals(this.reRunFromStep, other.reRunFromStep) + && java.util.Objects.equals(this.tablespace, other.tablespace) + && java.util.Objects.equals(this.isRedoLoggingEnabled, other.isRedoLoggingEnabled) + && java.util.Objects.equals(this.isRefreshStatsEnabled, other.isRefreshStatsEnabled) + && java.util.Objects.equals(this.parallelDegree, other.parallelDegree) + && java.util.Objects.equals(this.recompile, other.recompile) + && java.util.Objects.equals(this.targetCredentials, other.targetCredentials) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.masking == null ? 43 : this.masking.hashCode()); + result = (result * PRIME) + (this.isRerun == null ? 43 : this.isRerun.hashCode()); + result = + (result * PRIME) + + (this.reRunFromStep == null ? 43 : this.reRunFromStep.hashCode()); + result = (result * PRIME) + (this.tablespace == null ? 43 : this.tablespace.hashCode()); + result = + (result * PRIME) + + (this.isRedoLoggingEnabled == null + ? 43 + : this.isRedoLoggingEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRefreshStatsEnabled == null + ? 43 + : this.isRefreshStatsEnabled.hashCode()); + result = + (result * PRIME) + + (this.parallelDegree == null ? 43 : this.parallelDegree.hashCode()); + result = (result * PRIME) + (this.recompile == null ? 43 : this.recompile.hashCode()); + result = + (result * PRIME) + + (this.targetCredentials == null ? 43 : this.targetCredentials.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetRuleEntry.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetRuleEntry.java new file mode 100644 index 00000000000..52b658a77db --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetRuleEntry.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * The details of the subset rule
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ruleType", + defaultImpl = SubsetRuleEntry.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PartitionSubsetRuleEntry.class, + name = "PARTITION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PercentSubsetRuleEntry.class, + name = "PERCENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ConditionSubsetRuleEntry.class, + name = "CONDITION") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class SubsetRuleEntry extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected SubsetRuleEntry() { + 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("SubsetRuleEntry("); + 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 SubsetRuleEntry)) { + return false; + } + + SubsetRuleEntry other = (SubsetRuleEntry) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** type of subset rule */ + public enum RuleType implements com.oracle.bmc.http.internal.BmcEnum { + Percent("PERCENT"), + Condition("CONDITION"), + Partition("PARTITION"), + + /** + * 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(RuleType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuleType v : RuleType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RuleType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuleType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RuleType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScope.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScope.java new file mode 100644 index 00000000000..928e57a417d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScope.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * The scope of the subset rule
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "scopeType", + defaultImpl = SubsetScope.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SubsetScopeForAllObjects.class, + name = "ALL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SubsetScopeForSpecificObjects.class, + name = "SPECIFIC") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class SubsetScope extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected SubsetScope() { + 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("SubsetScope("); + 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 SubsetScope)) { + return false; + } + + SubsetScope other = (SubsetScope) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Scope of a subsetting rule */ + public enum ScopeType implements com.oracle.bmc.http.internal.BmcEnum { + All("ALL"), + Specific("SPECIFIC"), + + /** + * 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(ScopeType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ScopeType v : ScopeType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ScopeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ScopeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ScopeType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScopeForAllObjects.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScopeForAllObjects.java new file mode 100644 index 00000000000..5f5ec47557d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScopeForAllObjects.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; + +/** + * Specifies that all objects within a particular schema should be included in the subsetting + * operation
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsetScopeForAllObjects.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "scopeType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsetScopeForAllObjects extends SubsetScope { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the schema containing the objects to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + /** + * The name of the schema containing the objects to be subsetted + * + * @param schemaName the value to set + * @return this builder + */ + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsetScopeForAllObjects build() { + SubsetScopeForAllObjects model = new SubsetScopeForAllObjects(this.schemaName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsetScopeForAllObjects model) { + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public SubsetScopeForAllObjects(String schemaName) { + super(); + this.schemaName = schemaName; + } + + /** The name of the schema containing the objects to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private final String schemaName; + + /** + * The name of the schema containing the objects to be subsetted + * + * @return the value + */ + public String getSchemaName() { + return schemaName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsetScopeForAllObjects("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", schemaName=").append(String.valueOf(this.schemaName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsetScopeForAllObjects)) { + return false; + } + + SubsetScopeForAllObjects other = (SubsetScopeForAllObjects) o; + return java.util.Objects.equals(this.schemaName, other.schemaName) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScopeForSpecificObjects.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScopeForSpecificObjects.java new file mode 100644 index 00000000000..5300528fd78 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsetScopeForSpecificObjects.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Specifies a particular object within a schema to be included in the scope of subsetting rule
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsetScopeForSpecificObjects.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "scopeType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsetScopeForSpecificObjects extends SubsetScope { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the schema containing the specific object to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + /** + * The name of the schema containing the specific object to be subsetted + * + * @param schemaName the value to set + * @return this builder + */ + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + /** The name of the specific object (e.g., table) to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * The name of the specific object (e.g., table) to be subsetted + * + * @param objectName the value to set + * @return this builder + */ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsetScopeForSpecificObjects build() { + SubsetScopeForSpecificObjects model = + new SubsetScopeForSpecificObjects(this.schemaName, this.objectName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsetScopeForSpecificObjects model) { + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public SubsetScopeForSpecificObjects(String schemaName, String objectName) { + super(); + this.schemaName = schemaName; + this.objectName = objectName; + } + + /** The name of the schema containing the specific object to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private final String schemaName; + + /** + * The name of the schema containing the specific object to be subsetted + * + * @return the value + */ + public String getSchemaName() { + return schemaName; + } + + /** The name of the specific object (e.g., table) to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * The name of the specific object (e.g., table) to be subsetted + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsetScopeForSpecificObjects("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", schemaName=").append(String.valueOf(this.schemaName)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsetScopeForSpecificObjects)) { + return false; + } + + SubsetScopeForSpecificObjects other = (SubsetScopeForSpecificObjects) o; + return java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.objectName, other.objectName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettedObjectCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettedObjectCollection.java new file mode 100644 index 00000000000..ab96b56985f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettedObjectCollection.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.datasafe.model; + +/** + * A collection of subsetted summary objects
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettedObjectCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettedObjectCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettedObjectCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetted summary objects */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetted summary objects + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettedObjectCollection build() { + SubsettedObjectCollection model = new SubsettedObjectCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettedObjectCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetted summary objects */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetted summary objects + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettedObjectCollection("); + 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 SubsettedObjectCollection)) { + return false; + } + + SubsettedObjectCollection other = (SubsettedObjectCollection) 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/SubsettedObjectSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettedObjectSummary.java new file mode 100644 index 00000000000..93546dd35e9 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettedObjectSummary.java @@ -0,0 +1,392 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a subsetted object. A subsetted object is a database table subsetted by a data + * subsetting 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettedObjectSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettedObjectSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "schemaName", + "objectName", + "objectType", + "rowCountBeforeSubsetting", + "rowCountAfterSubsetting", + "sizeBeforeSubsettingInKBs", + "sizeAfterSubsettingInKBs" + }) + public SubsettedObjectSummary( + String schemaName, + String objectName, + ObjectType objectType, + Long rowCountBeforeSubsetting, + Long rowCountAfterSubsetting, + String sizeBeforeSubsettingInKBs, + String sizeAfterSubsettingInKBs) { + super(); + this.schemaName = schemaName; + this.objectName = objectName; + this.objectType = objectType; + this.rowCountBeforeSubsetting = rowCountBeforeSubsetting; + this.rowCountAfterSubsetting = rowCountAfterSubsetting; + this.sizeBeforeSubsettingInKBs = sizeBeforeSubsettingInKBs; + this.sizeAfterSubsettingInKBs = sizeAfterSubsettingInKBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the schema that contains the subsetted object */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + /** + * The name of the schema that contains the subsetted object + * + * @param schemaName the value to set + * @return this builder + */ + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + /** The name of the object (table or editioning view) subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * The name of the object (table or editioning view) subsetted + * + * @param objectName the value to set + * @return this builder + */ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + /** The type of the object (table or editioning view) subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private ObjectType objectType; + + /** + * The type of the object (table or editioning view) subsetted + * + * @param objectType the value to set + * @return this builder + */ + public Builder objectType(ObjectType objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + /** The count of rows in the subsetted table before subsetting */ + @com.fasterxml.jackson.annotation.JsonProperty("rowCountBeforeSubsetting") + private Long rowCountBeforeSubsetting; + + /** + * The count of rows in the subsetted table before subsetting + * + * @param rowCountBeforeSubsetting the value to set + * @return this builder + */ + public Builder rowCountBeforeSubsetting(Long rowCountBeforeSubsetting) { + this.rowCountBeforeSubsetting = rowCountBeforeSubsetting; + this.__explicitlySet__.add("rowCountBeforeSubsetting"); + return this; + } + /** The count of rows in the subsetted table after subsetting */ + @com.fasterxml.jackson.annotation.JsonProperty("rowCountAfterSubsetting") + private Long rowCountAfterSubsetting; + + /** + * The count of rows in the subsetted table after subsetting + * + * @param rowCountAfterSubsetting the value to set + * @return this builder + */ + public Builder rowCountAfterSubsetting(Long rowCountAfterSubsetting) { + this.rowCountAfterSubsetting = rowCountAfterSubsetting; + this.__explicitlySet__.add("rowCountAfterSubsetting"); + return this; + } + /** The size of the subsetted table before subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeBeforeSubsettingInKBs") + private String sizeBeforeSubsettingInKBs; + + /** + * The size of the subsetted table before subsetting in KBs + * + * @param sizeBeforeSubsettingInKBs the value to set + * @return this builder + */ + public Builder sizeBeforeSubsettingInKBs(String sizeBeforeSubsettingInKBs) { + this.sizeBeforeSubsettingInKBs = sizeBeforeSubsettingInKBs; + this.__explicitlySet__.add("sizeBeforeSubsettingInKBs"); + return this; + } + /** The size of the subsetted table after subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeAfterSubsettingInKBs") + private String sizeAfterSubsettingInKBs; + + /** + * The size of the subsetted table after subsetting in KBs + * + * @param sizeAfterSubsettingInKBs the value to set + * @return this builder + */ + public Builder sizeAfterSubsettingInKBs(String sizeAfterSubsettingInKBs) { + this.sizeAfterSubsettingInKBs = sizeAfterSubsettingInKBs; + this.__explicitlySet__.add("sizeAfterSubsettingInKBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettedObjectSummary build() { + SubsettedObjectSummary model = + new SubsettedObjectSummary( + this.schemaName, + this.objectName, + this.objectType, + this.rowCountBeforeSubsetting, + this.rowCountAfterSubsetting, + this.sizeBeforeSubsettingInKBs, + this.sizeAfterSubsettingInKBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettedObjectSummary model) { + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + if (model.wasPropertyExplicitlySet("rowCountBeforeSubsetting")) { + this.rowCountBeforeSubsetting(model.getRowCountBeforeSubsetting()); + } + if (model.wasPropertyExplicitlySet("rowCountAfterSubsetting")) { + this.rowCountAfterSubsetting(model.getRowCountAfterSubsetting()); + } + if (model.wasPropertyExplicitlySet("sizeBeforeSubsettingInKBs")) { + this.sizeBeforeSubsettingInKBs(model.getSizeBeforeSubsettingInKBs()); + } + if (model.wasPropertyExplicitlySet("sizeAfterSubsettingInKBs")) { + this.sizeAfterSubsettingInKBs(model.getSizeAfterSubsettingInKBs()); + } + 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 schema that contains the subsetted object */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private final String schemaName; + + /** + * The name of the schema that contains the subsetted object + * + * @return the value + */ + public String getSchemaName() { + return schemaName; + } + + /** The name of the object (table or editioning view) subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * The name of the object (table or editioning view) subsetted + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + /** The type of the object (table or editioning view) subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final ObjectType objectType; + + /** + * The type of the object (table or editioning view) subsetted + * + * @return the value + */ + public ObjectType getObjectType() { + return objectType; + } + + /** The count of rows in the subsetted table before subsetting */ + @com.fasterxml.jackson.annotation.JsonProperty("rowCountBeforeSubsetting") + private final Long rowCountBeforeSubsetting; + + /** + * The count of rows in the subsetted table before subsetting + * + * @return the value + */ + public Long getRowCountBeforeSubsetting() { + return rowCountBeforeSubsetting; + } + + /** The count of rows in the subsetted table after subsetting */ + @com.fasterxml.jackson.annotation.JsonProperty("rowCountAfterSubsetting") + private final Long rowCountAfterSubsetting; + + /** + * The count of rows in the subsetted table after subsetting + * + * @return the value + */ + public Long getRowCountAfterSubsetting() { + return rowCountAfterSubsetting; + } + + /** The size of the subsetted table before subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeBeforeSubsettingInKBs") + private final String sizeBeforeSubsettingInKBs; + + /** + * The size of the subsetted table before subsetting in KBs + * + * @return the value + */ + public String getSizeBeforeSubsettingInKBs() { + return sizeBeforeSubsettingInKBs; + } + + /** The size of the subsetted table after subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeAfterSubsettingInKBs") + private final String sizeAfterSubsettingInKBs; + + /** + * The size of the subsetted table after subsetting in KBs + * + * @return the value + */ + public String getSizeAfterSubsettingInKBs() { + return sizeAfterSubsettingInKBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettedObjectSummary("); + sb.append("super=").append(super.toString()); + sb.append("schemaName=").append(String.valueOf(this.schemaName)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(", rowCountBeforeSubsetting=") + .append(String.valueOf(this.rowCountBeforeSubsetting)); + sb.append(", rowCountAfterSubsetting=") + .append(String.valueOf(this.rowCountAfterSubsetting)); + sb.append(", sizeBeforeSubsettingInKBs=") + .append(String.valueOf(this.sizeBeforeSubsettingInKBs)); + sb.append(", sizeAfterSubsettingInKBs=") + .append(String.valueOf(this.sizeAfterSubsettingInKBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettedObjectSummary)) { + return false; + } + + SubsettedObjectSummary other = (SubsettedObjectSummary) o; + return java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals( + this.rowCountBeforeSubsetting, other.rowCountBeforeSubsetting) + && java.util.Objects.equals( + this.rowCountAfterSubsetting, other.rowCountAfterSubsetting) + && java.util.Objects.equals( + this.sizeBeforeSubsettingInKBs, other.sizeBeforeSubsettingInKBs) + && java.util.Objects.equals( + this.sizeAfterSubsettingInKBs, other.sizeAfterSubsettingInKBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = + (result * PRIME) + + (this.rowCountBeforeSubsetting == null + ? 43 + : this.rowCountBeforeSubsetting.hashCode()); + result = + (result * PRIME) + + (this.rowCountAfterSubsetting == null + ? 43 + : this.rowCountAfterSubsetting.hashCode()); + result = + (result * PRIME) + + (this.sizeBeforeSubsettingInKBs == null + ? 43 + : this.sizeBeforeSubsettingInKBs.hashCode()); + result = + (result * PRIME) + + (this.sizeAfterSubsettingInKBs == null + ? 43 + : this.sizeAfterSubsettingInKBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsCollection.java new file mode 100644 index 00000000000..05190c88099 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsCollection.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.datasafe.model; + +/** + * A collection of subsetting analytics summary objects
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingAnalyticsCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingAnalyticsCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingAnalyticsCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting analytics summary objects */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting analytics summary objects + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingAnalyticsCollection build() { + SubsettingAnalyticsCollection model = new SubsettingAnalyticsCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingAnalyticsCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting analytics summary objects */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting analytics summary objects + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingAnalyticsCollection("); + 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 SubsettingAnalyticsCollection)) { + return false; + } + + SubsettingAnalyticsCollection other = (SubsettingAnalyticsCollection) 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/SubsettingAnalyticsDimensions.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsDimensions.java new file mode 100644 index 00000000000..9fd0ec2be8b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsDimensions.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * The scope of analytics data
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingAnalyticsDimensions.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingAnalyticsDimensions + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"targetId", "policyId"}) + public SubsettingAnalyticsDimensions(String targetId, String policyId) { + super(); + this.targetId = targetId; + this.policyId = policyId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the target database */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The OCID of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("policyId") + private String policyId; + + /** + * The OCID of the subsetting policy + * + * @param policyId the value to set + * @return this builder + */ + public Builder policyId(String policyId) { + this.policyId = policyId; + this.__explicitlySet__.add("policyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingAnalyticsDimensions build() { + SubsettingAnalyticsDimensions model = + new SubsettingAnalyticsDimensions(this.targetId, this.policyId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingAnalyticsDimensions model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("policyId")) { + this.policyId(model.getPolicyId()); + } + 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 */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The OCID of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("policyId") + private final String policyId; + + /** + * The OCID of the subsetting policy + * + * @return the value + */ + public String getPolicyId() { + return policyId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingAnalyticsDimensions("); + sb.append("super=").append(super.toString()); + sb.append("targetId=").append(String.valueOf(this.targetId)); + sb.append(", policyId=").append(String.valueOf(this.policyId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingAnalyticsDimensions)) { + return false; + } + + SubsettingAnalyticsDimensions other = (SubsettingAnalyticsDimensions) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.policyId, other.policyId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.policyId == null ? 43 : this.policyId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsSummary.java new file mode 100644 index 00000000000..1bc731fb698 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingAnalyticsSummary.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 subsetting analytics data
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingAnalyticsSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingAnalyticsSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"metricName", "dimensions", "count", "timeLastSubsetted"}) + public SubsettingAnalyticsSummary( + MetricName metricName, + SubsettingAnalyticsDimensions dimensions, + Long count, + java.util.Date timeLastSubsetted) { + super(); + this.metricName = metricName; + this.dimensions = dimensions; + this.count = count; + this.timeLastSubsetted = timeLastSubsetted; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the aggregation metric */ + @com.fasterxml.jackson.annotation.JsonProperty("metricName") + private MetricName metricName; + + /** + * The name of the aggregation metric + * + * @param metricName the value to set + * @return this builder + */ + public Builder metricName(MetricName metricName) { + this.metricName = metricName; + this.__explicitlySet__.add("metricName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private SubsettingAnalyticsDimensions dimensions; + + public Builder dimensions(SubsettingAnalyticsDimensions dimensions) { + this.dimensions = dimensions; + this.__explicitlySet__.add("dimensions"); + return this; + } + /** The total count for the aggregation metric */ + @com.fasterxml.jackson.annotation.JsonProperty("count") + private Long count; + + /** + * The total count for the aggregation metric + * + * @param count the value to set + * @return this builder + */ + public Builder count(Long count) { + this.count = count; + this.__explicitlySet__.add("count"); + return this; + } + /** + * The date and time the target database was last subsetted using a subsetting policy, in + * the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSubsetted") + private java.util.Date timeLastSubsetted; + + /** + * The date and time the target database was last subsetted using a subsetting policy, in + * the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @param timeLastSubsetted the value to set + * @return this builder + */ + public Builder timeLastSubsetted(java.util.Date timeLastSubsetted) { + this.timeLastSubsetted = timeLastSubsetted; + this.__explicitlySet__.add("timeLastSubsetted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingAnalyticsSummary build() { + SubsettingAnalyticsSummary model = + new SubsettingAnalyticsSummary( + this.metricName, this.dimensions, this.count, this.timeLastSubsetted); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingAnalyticsSummary model) { + if (model.wasPropertyExplicitlySet("metricName")) { + this.metricName(model.getMetricName()); + } + if (model.wasPropertyExplicitlySet("dimensions")) { + this.dimensions(model.getDimensions()); + } + if (model.wasPropertyExplicitlySet("count")) { + this.count(model.getCount()); + } + if (model.wasPropertyExplicitlySet("timeLastSubsetted")) { + this.timeLastSubsetted(model.getTimeLastSubsetted()); + } + 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 aggregation metric */ + public enum MetricName implements com.oracle.bmc.http.internal.BmcEnum { + SubsettingPolicy("SUBSETTING_POLICY"), + SubsettingDatabase("SUBSETTING_DATABASE"), + SubsettingWorkRequest("SUBSETTING_WORK_REQUEST"), + SubsettedSchema("SUBSETTED_SCHEMA"), + SubsettedTable("SUBSETTED_TABLE"), + ReducedRowCount("REDUCED_ROW_COUNT"), + ReducedSizeInBytes("REDUCED_SIZE_IN_BYTES"), + ReducedPercent("REDUCED_PERCENT"), + OriginalSizeInBytes("ORIGINAL_SIZE_IN_BYTES"), + SizeAfterSubsettingInBytes("SIZE_AFTER_SUBSETTING_IN_BYTES"), + + /** + * 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(MetricName.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MetricName v : MetricName.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MetricName(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MetricName create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MetricName', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The name of the aggregation metric */ + @com.fasterxml.jackson.annotation.JsonProperty("metricName") + private final MetricName metricName; + + /** + * The name of the aggregation metric + * + * @return the value + */ + public MetricName getMetricName() { + return metricName; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private final SubsettingAnalyticsDimensions dimensions; + + public SubsettingAnalyticsDimensions getDimensions() { + return dimensions; + } + + /** The total count for the aggregation metric */ + @com.fasterxml.jackson.annotation.JsonProperty("count") + private final Long count; + + /** + * The total count for the aggregation metric + * + * @return the value + */ + public Long getCount() { + return count; + } + + /** + * The date and time the target database was last subsetted using a subsetting policy, in the + * format defined by [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSubsetted") + private final java.util.Date timeLastSubsetted; + + /** + * The date and time the target database was last subsetted using a subsetting policy, in the + * format defined by [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeLastSubsetted() { + return timeLastSubsetted; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingAnalyticsSummary("); + sb.append("super=").append(super.toString()); + sb.append("metricName=").append(String.valueOf(this.metricName)); + sb.append(", dimensions=").append(String.valueOf(this.dimensions)); + sb.append(", count=").append(String.valueOf(this.count)); + sb.append(", timeLastSubsetted=").append(String.valueOf(this.timeLastSubsetted)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingAnalyticsSummary)) { + return false; + } + + SubsettingAnalyticsSummary other = (SubsettingAnalyticsSummary) o; + return java.util.Objects.equals(this.metricName, other.metricName) + && java.util.Objects.equals(this.dimensions, other.dimensions) + && java.util.Objects.equals(this.count, other.count) + && java.util.Objects.equals(this.timeLastSubsetted, other.timeLastSubsetted) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.metricName == null ? 43 : this.metricName.hashCode()); + result = (result * PRIME) + (this.dimensions == null ? 43 : this.dimensions.hashCode()); + result = (result * PRIME) + (this.count == null ? 43 : this.count.hashCode()); + result = + (result * PRIME) + + (this.timeLastSubsetted == null ? 43 : this.timeLastSubsetted.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingErrorCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingErrorCollection.java new file mode 100644 index 00000000000..571f718841e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingErrorCollection.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.datasafe.model; + +/** + * A collection of subsetting error objects.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingErrorCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingErrorCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingErrorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting error objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting error objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingErrorCollection build() { + SubsettingErrorCollection model = new SubsettingErrorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingErrorCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting error objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting error objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingErrorCollection("); + 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 SubsettingErrorCollection)) { + return false; + } + + SubsettingErrorCollection other = (SubsettingErrorCollection) 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/SubsettingErrorSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingErrorSummary.java new file mode 100644 index 00000000000..6e2ed27855f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingErrorSummary.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.datasafe.model; + +/** + * Summary of a subsetting error. A Subsetting error is an error seen during the subsetting 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingErrorSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingErrorSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"stepName", "error", "failedStatement", "timeCreated"}) + public SubsettingErrorSummary( + StepName stepName, String error, String failedStatement, java.util.Date timeCreated) { + super(); + this.stepName = stepName; + this.error = error; + this.failedStatement = failedStatement; + this.timeCreated = timeCreated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The stepName of the subsetting error. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private StepName stepName; + + /** + * The stepName of the subsetting error. + * + * @param stepName the value to set + * @return this builder + */ + public Builder stepName(StepName stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + return this; + } + /** The text of the subsetting error. */ + @com.fasterxml.jackson.annotation.JsonProperty("error") + private String error; + + /** + * The text of the subsetting error. + * + * @param error the value to set + * @return this builder + */ + public Builder error(String error) { + this.error = error; + this.__explicitlySet__.add("error"); + return this; + } + /** The statement resulting into the error. */ + @com.fasterxml.jackson.annotation.JsonProperty("failedStatement") + private String failedStatement; + + /** + * The statement resulting into the error. + * + * @param failedStatement the value to set + * @return this builder + */ + public Builder failedStatement(String failedStatement) { + this.failedStatement = failedStatement; + this.__explicitlySet__.add("failedStatement"); + return this; + } + /** + * The date and time the error entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the error entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingErrorSummary build() { + SubsettingErrorSummary model = + new SubsettingErrorSummary( + this.stepName, this.error, this.failedStatement, this.timeCreated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingErrorSummary model) { + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("error")) { + this.error(model.getError()); + } + if (model.wasPropertyExplicitlySet("failedStatement")) { + this.failedStatement(model.getFailedStatement()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The stepName of the subsetting error. */ + public enum StepName implements com.oracle.bmc.http.internal.BmcEnum { + Validate("VALIDATE"), + IdentifyRowsForSubset("IDENTIFY_ROWS_FOR_SUBSET"), + GenerateScript("GENERATE_SCRIPT"), + ExecuteSubsetting("EXECUTE_SUBSETTING"), + PreSubsetting("PRE_SUBSETTING"), + PostSubsetting("POST_SUBSETTING"), + + /** + * 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(StepName.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StepName v : StepName.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + StepName(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StepName create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'StepName', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The stepName of the subsetting error. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private final StepName stepName; + + /** + * The stepName of the subsetting error. + * + * @return the value + */ + public StepName getStepName() { + return stepName; + } + + /** The text of the subsetting error. */ + @com.fasterxml.jackson.annotation.JsonProperty("error") + private final String error; + + /** + * The text of the subsetting error. + * + * @return the value + */ + public String getError() { + return error; + } + + /** The statement resulting into the error. */ + @com.fasterxml.jackson.annotation.JsonProperty("failedStatement") + private final String failedStatement; + + /** + * The statement resulting into the error. + * + * @return the value + */ + public String getFailedStatement() { + return failedStatement; + } + + /** + * The date and time the error entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the error entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingErrorSummary("); + sb.append("super=").append(super.toString()); + sb.append("stepName=").append(String.valueOf(this.stepName)); + sb.append(", error=").append(String.valueOf(this.error)); + sb.append(", failedStatement=").append(String.valueOf(this.failedStatement)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingErrorSummary)) { + return false; + } + + SubsettingErrorSummary other = (SubsettingErrorSummary) o; + return java.util.Objects.equals(this.stepName, other.stepName) + && java.util.Objects.equals(this.error, other.error) + && java.util.Objects.equals(this.failedStatement, other.failedStatement) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.stepName == null ? 43 : this.stepName.hashCode()); + result = (result * PRIME) + (this.error == null ? 43 : this.error.hashCode()); + result = + (result * PRIME) + + (this.failedStatement == null ? 43 : this.failedStatement.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicy.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicy.java new file mode 100644 index 00000000000..9f47fbc8fce --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicy.java @@ -0,0 +1,1106 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * A subsetting policy defines the approach to subset data in a target database. It's basically a + * collection of rules applied on tables or schemas, to reduce rows in them. A subsetting policy can + * be used to subset multiple databases provided that they have the same schema design.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingPolicy.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingPolicy + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeCreated", + "lifecycleState", + "timeUpdated", + "description", + "isRedoLoggingEnabled", + "isRefreshStatsEnabled", + "parallelDegree", + "recompile", + "unrelatedTablesAction", + "preSubsettingScript", + "postSubsettingScript", + "schemaSource", + "maskingPolicyId", + "freeformTags", + "definedTags" + }) + public SubsettingPolicy( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + LifecycleState lifecycleState, + java.util.Date timeUpdated, + String description, + Boolean isRedoLoggingEnabled, + Boolean isRefreshStatsEnabled, + String parallelDegree, + Recompile recompile, + UnrelatedTablesAction unrelatedTablesAction, + String preSubsettingScript, + String postSubsettingScript, + SchemaSourceDetails schemaSource, + String maskingPolicyId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.lifecycleState = lifecycleState; + this.timeUpdated = timeUpdated; + this.description = description; + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.parallelDegree = parallelDegree; + this.recompile = recompile; + this.unrelatedTablesAction = unrelatedTablesAction; + this.preSubsettingScript = preSubsettingScript; + this.postSubsettingScript = postSubsettingScript; + this.schemaSource = schemaSource; + this.maskingPolicyId = maskingPolicyId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the subsetting policy + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the compartment that contains the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the subsetting policy + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the subsetting policy + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The date and time the subsetting policy was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the subsetting policy was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @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 current state of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the subsetting policy + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the subsetting policy was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the subsetting policy was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The description of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the subsetting policy + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by + * default. Set this attribute to true to enable redo logging. By default, subsetting + * disables redo logging and flashback logging to purge any original data from logs. + * However, in certain circumstances when you only want to test subsetting, rollback + * changes, and retry subsetting, you could enable logging and use a flashback database to + * retrieve the original data after it has been subsetted. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by + * default. Set this attribute to true to enable redo logging. By default, subsetting + * disables redo logging and flashback logging to purge any original data from logs. + * However, in certain circumstances when you only want to test subsetting, rollback + * changes, and retry subsetting, you could enable logging and use a flashback database to + * retrieve the original data after it has been subsetted. + * + * @param isRedoLoggingEnabled the value to set + * @return this builder + */ + public Builder isRedoLoggingEnabled(Boolean isRedoLoggingEnabled) { + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.__explicitlySet__.add("isRedoLoggingEnabled"); + return this; + } + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute + * to false to disable statistics gathering. The subsetting process gathers statistics on + * database tables after subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute + * to false to disable statistics gathering. The subsetting process gathers statistics on + * database tables after subsetting completes + * + * @param isRefreshStatsEnabled the value to set + * @return this builder + */ + public Builder isRefreshStatsEnabled(Boolean isRefreshStatsEnabled) { + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.__explicitlySet__.add("isRefreshStatsEnabled"); + return this; + } + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed + * values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum + * degree of parallelism) or an integer value to be used as the degree of parallelism. + * Parallel execution helps effectively use multiple CPUs and improve subsetting + * performance. Refer to the Oracle Database parallel execution framework when choosing an + * explicit degree of parallelism + */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private String parallelDegree; + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed + * values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum + * degree of parallelism) or an integer value to be used as the degree of parallelism. + * Parallel execution helps effectively use multiple CPUs and improve subsetting + * performance. Refer to the Oracle Database parallel execution framework when choosing an + * explicit degree of parallelism + * + * @param parallelDegree the value to set + * @return this builder + */ + public Builder parallelDegree(String parallelDegree) { + this.parallelDegree = parallelDegree; + this.__explicitlySet__.add("parallelDegree"); + return this; + } + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are + * 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not + * recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use + * the built-in UTL_RECOMP package to recompile any remaining invalid objects after + * subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private Recompile recompile; + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are + * 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not + * recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use + * the built-in UTL_RECOMP package to recompile any remaining invalid objects after + * subsetting completes + * + * @param recompile the value to set + * @return this builder + */ + public Builder recompile(Recompile recompile) { + this.recompile = recompile; + this.__explicitlySet__.add("recompile"); + return this; + } + /** + * Strategy to be applied for tables which are not impacted by any of the subsetting rules + */ + @com.fasterxml.jackson.annotation.JsonProperty("unrelatedTablesAction") + private UnrelatedTablesAction unrelatedTablesAction; + + /** + * Strategy to be applied for tables which are not impacted by any of the subsetting rules + * + * @param unrelatedTablesAction the value to set + * @return this builder + */ + public Builder unrelatedTablesAction(UnrelatedTablesAction unrelatedTablesAction) { + this.unrelatedTablesAction = unrelatedTablesAction; + this.__explicitlySet__.add("unrelatedTablesAction"); + return this; + } + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * before the core subsetting script generated using the subsetting policy. It's usually + * used to perform any preparation or prerequisite work before subsetting data + */ + @com.fasterxml.jackson.annotation.JsonProperty("preSubsettingScript") + private String preSubsettingScript; + + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * before the core subsetting script generated using the subsetting policy. It's usually + * used to perform any preparation or prerequisite work before subsetting data + * + * @param preSubsettingScript the value to set + * @return this builder + */ + public Builder preSubsettingScript(String preSubsettingScript) { + this.preSubsettingScript = preSubsettingScript; + this.__explicitlySet__.add("preSubsettingScript"); + return this; + } + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * after the core subsetting script generated using the subsetting policy. It's usually used + * to perform additional transformation or cleanup work after subsetting. + */ + @com.fasterxml.jackson.annotation.JsonProperty("postSubsettingScript") + private String postSubsettingScript; + + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * after the core subsetting script generated using the subsetting policy. It's usually used + * to perform additional transformation or cleanup work after subsetting. + * + * @param postSubsettingScript the value to set + * @return this builder + */ + public Builder postSubsettingScript(String postSubsettingScript) { + this.postSubsettingScript = postSubsettingScript; + this.__explicitlySet__.add("postSubsettingScript"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schemaSource") + private SchemaSourceDetails schemaSource; + + public Builder schemaSource(SchemaSourceDetails schemaSource) { + this.schemaSource = schemaSource; + this.__explicitlySet__.add("schemaSource"); + return this; + } + /** The OCID of the masking policy associated with this subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private String maskingPolicyId; + + /** + * The OCID of the masking policy associated with this subsetting policy + * + * @param maskingPolicyId the value to set + * @return this builder + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + this.__explicitlySet__.add("maskingPolicyId"); + 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 SubsettingPolicy build() { + SubsettingPolicy model = + new SubsettingPolicy( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.lifecycleState, + this.timeUpdated, + this.description, + this.isRedoLoggingEnabled, + this.isRefreshStatsEnabled, + this.parallelDegree, + this.recompile, + this.unrelatedTablesAction, + this.preSubsettingScript, + this.postSubsettingScript, + this.schemaSource, + this.maskingPolicyId, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingPolicy 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("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("isRedoLoggingEnabled")) { + this.isRedoLoggingEnabled(model.getIsRedoLoggingEnabled()); + } + if (model.wasPropertyExplicitlySet("isRefreshStatsEnabled")) { + this.isRefreshStatsEnabled(model.getIsRefreshStatsEnabled()); + } + if (model.wasPropertyExplicitlySet("parallelDegree")) { + this.parallelDegree(model.getParallelDegree()); + } + if (model.wasPropertyExplicitlySet("recompile")) { + this.recompile(model.getRecompile()); + } + if (model.wasPropertyExplicitlySet("unrelatedTablesAction")) { + this.unrelatedTablesAction(model.getUnrelatedTablesAction()); + } + if (model.wasPropertyExplicitlySet("preSubsettingScript")) { + this.preSubsettingScript(model.getPreSubsettingScript()); + } + if (model.wasPropertyExplicitlySet("postSubsettingScript")) { + this.postSubsettingScript(model.getPostSubsettingScript()); + } + if (model.wasPropertyExplicitlySet("schemaSource")) { + this.schemaSource(model.getSchemaSource()); + } + if (model.wasPropertyExplicitlySet("maskingPolicyId")) { + this.maskingPolicyId(model.getMaskingPolicyId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the subsetting policy + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the subsetting policy + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the subsetting policy + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The date and time the subsetting policy was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the subsetting policy was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The current state of the subsetting policy */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + NeedsAttention("NEEDS_ATTENTION"), + 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 subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the subsetting policy + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the subsetting policy was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the subsetting policy was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The description of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the subsetting policy + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. + * Set this attribute to true to enable redo logging. By default, subsetting disables redo + * logging and flashback logging to purge any original data from logs. However, in certain + * circumstances when you only want to test subsetting, rollback changes, and retry subsetting, + * you could enable logging and use a flashback database to retrieve the original data after it + * has been subsetted. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private final Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. + * Set this attribute to true to enable redo logging. By default, subsetting disables redo + * logging and flashback logging to purge any original data from logs. However, in certain + * circumstances when you only want to test subsetting, rollback changes, and retry subsetting, + * you could enable logging and use a flashback database to retrieve the original data after it + * has been subsetted. + * + * @return the value + */ + public Boolean getIsRedoLoggingEnabled() { + return isRedoLoggingEnabled; + } + + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to + * false to disable statistics gathering. The subsetting process gathers statistics on database + * tables after subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private final Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to + * false to disable statistics gathering. The subsetting process gathers statistics on database + * tables after subsetting completes + * + * @return the value + */ + public Boolean getIsRefreshStatsEnabled() { + return isRefreshStatsEnabled; + } + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed values + * are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of + * parallelism) or an integer value to be used as the degree of parallelism. Parallel execution + * helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle + * Database parallel execution framework when choosing an explicit degree of parallelism + */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private final String parallelDegree; + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed values + * are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of + * parallelism) or an integer value to be used as the degree of parallelism. Parallel execution + * helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle + * Database parallel execution framework when choosing an explicit degree of parallelism + * + * @return the value + */ + public String getParallelDegree() { + return parallelDegree; + } + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' + * (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's + * set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP + * package to recompile any remaining invalid objects after subsetting completes + */ + public enum Recompile implements com.oracle.bmc.http.internal.BmcEnum { + Serial("SERIAL"), + Parallel("PARALLEL"), + None("NONE"), + + /** + * 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(Recompile.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Recompile v : Recompile.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Recompile(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Recompile create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Recompile', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' + * (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's + * set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP + * package to recompile any remaining invalid objects after subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private final Recompile recompile; + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' + * (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's + * set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP + * package to recompile any remaining invalid objects after subsetting completes + * + * @return the value + */ + public Recompile getRecompile() { + return recompile; + } + + /** Strategy to be applied for tables which are not impacted by any of the subsetting rules */ + public enum UnrelatedTablesAction implements com.oracle.bmc.http.internal.BmcEnum { + Truncate("TRUNCATE"), + Keep("KEEP"), + + /** + * 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(UnrelatedTablesAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UnrelatedTablesAction v : UnrelatedTablesAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UnrelatedTablesAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UnrelatedTablesAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UnrelatedTablesAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Strategy to be applied for tables which are not impacted by any of the subsetting rules */ + @com.fasterxml.jackson.annotation.JsonProperty("unrelatedTablesAction") + private final UnrelatedTablesAction unrelatedTablesAction; + + /** + * Strategy to be applied for tables which are not impacted by any of the subsetting rules + * + * @return the value + */ + public UnrelatedTablesAction getUnrelatedTablesAction() { + return unrelatedTablesAction; + } + + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before + * the core subsetting script generated using the subsetting policy. It's usually used to + * perform any preparation or prerequisite work before subsetting data + */ + @com.fasterxml.jackson.annotation.JsonProperty("preSubsettingScript") + private final String preSubsettingScript; + + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before + * the core subsetting script generated using the subsetting policy. It's usually used to + * perform any preparation or prerequisite work before subsetting data + * + * @return the value + */ + public String getPreSubsettingScript() { + return preSubsettingScript; + } + + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after + * the core subsetting script generated using the subsetting policy. It's usually used to + * perform additional transformation or cleanup work after subsetting. + */ + @com.fasterxml.jackson.annotation.JsonProperty("postSubsettingScript") + private final String postSubsettingScript; + + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after + * the core subsetting script generated using the subsetting policy. It's usually used to + * perform additional transformation or cleanup work after subsetting. + * + * @return the value + */ + public String getPostSubsettingScript() { + return postSubsettingScript; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schemaSource") + private final SchemaSourceDetails schemaSource; + + public SchemaSourceDetails getSchemaSource() { + return schemaSource; + } + + /** The OCID of the masking policy associated with this subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private final String maskingPolicyId; + + /** + * The OCID of the masking policy associated with this subsetting policy + * + * @return the value + */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + + /** + * 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("SubsettingPolicy("); + 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(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", isRedoLoggingEnabled=").append(String.valueOf(this.isRedoLoggingEnabled)); + sb.append(", isRefreshStatsEnabled=").append(String.valueOf(this.isRefreshStatsEnabled)); + sb.append(", parallelDegree=").append(String.valueOf(this.parallelDegree)); + sb.append(", recompile=").append(String.valueOf(this.recompile)); + sb.append(", unrelatedTablesAction=").append(String.valueOf(this.unrelatedTablesAction)); + sb.append(", preSubsettingScript=").append(String.valueOf(this.preSubsettingScript)); + sb.append(", postSubsettingScript=").append(String.valueOf(this.postSubsettingScript)); + sb.append(", schemaSource=").append(String.valueOf(this.schemaSource)); + sb.append(", maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + 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 SubsettingPolicy)) { + return false; + } + + SubsettingPolicy other = (SubsettingPolicy) 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.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.isRedoLoggingEnabled, other.isRedoLoggingEnabled) + && java.util.Objects.equals(this.isRefreshStatsEnabled, other.isRefreshStatsEnabled) + && java.util.Objects.equals(this.parallelDegree, other.parallelDegree) + && java.util.Objects.equals(this.recompile, other.recompile) + && java.util.Objects.equals(this.unrelatedTablesAction, other.unrelatedTablesAction) + && java.util.Objects.equals(this.preSubsettingScript, other.preSubsettingScript) + && java.util.Objects.equals(this.postSubsettingScript, other.postSubsettingScript) + && java.util.Objects.equals(this.schemaSource, other.schemaSource) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.isRedoLoggingEnabled == null + ? 43 + : this.isRedoLoggingEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRefreshStatsEnabled == null + ? 43 + : this.isRefreshStatsEnabled.hashCode()); + result = + (result * PRIME) + + (this.parallelDegree == null ? 43 : this.parallelDegree.hashCode()); + result = (result * PRIME) + (this.recompile == null ? 43 : this.recompile.hashCode()); + result = + (result * PRIME) + + (this.unrelatedTablesAction == null + ? 43 + : this.unrelatedTablesAction.hashCode()); + result = + (result * PRIME) + + (this.preSubsettingScript == null + ? 43 + : this.preSubsettingScript.hashCode()); + result = + (result * PRIME) + + (this.postSubsettingScript == null + ? 43 + : this.postSubsettingScript.hashCode()); + result = (result * PRIME) + (this.schemaSource == null ? 43 : this.schemaSource.hashCode()); + result = + (result * PRIME) + + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyCollection.java new file mode 100644 index 00000000000..9455f97079c --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyCollection.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.datasafe.model; + +/** + * A collection of subsetting policy summary objects
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingPolicyCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingPolicyCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingPolicyCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting policy summary objects */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting policy summary objects + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingPolicyCollection build() { + SubsettingPolicyCollection model = new SubsettingPolicyCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingPolicyCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting policy summary objects */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting policy summary objects + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingPolicyCollection("); + 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 SubsettingPolicyCollection)) { + return false; + } + + SubsettingPolicyCollection other = (SubsettingPolicyCollection) 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/SubsettingPolicyFormat.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyFormat.java new file mode 100644 index 00000000000..bb13bb7611b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyFormat.java @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** The format of the subsetting policy file */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum SubsettingPolicyFormat implements com.oracle.bmc.http.internal.BmcEnum { + Xml("XML"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SubsettingPolicyFormat v : SubsettingPolicyFormat.values()) { + map.put(v.getValue(), v); + } + } + + SubsettingPolicyFormat(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SubsettingPolicyFormat create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SubsettingPolicyFormat: " + key); + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReport.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReport.java new file mode 100644 index 00000000000..88fe0ecf627 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReport.java @@ -0,0 +1,667 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * The subsetting policy health report.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingPolicyHealthReport.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingPolicyHealthReport + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "subsettingPolicyId", + "targetId", + "compartmentId", + "displayName", + "timeCreated", + "timeUpdated", + "lifecycleState", + "errorCount", + "warningCount", + "freeformTags", + "definedTags" + }) + public SubsettingPolicyHealthReport( + String id, + String subsettingPolicyId, + String targetId, + String compartmentId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + Long errorCount, + Long warningCount, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.subsettingPolicyId = subsettingPolicyId; + this.targetId = targetId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.errorCount = errorCount; + this.warningCount = warningCount; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the health report. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the subsetting policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingPolicyId") + private String subsettingPolicyId; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + this.__explicitlySet__.add("subsettingPolicyId"); + return this; + } + /** The OCID of the target database for which this report was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database for which this report was created. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The OCID of the compartment that contains the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the health report. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the health report. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @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 report was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the report was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The current state of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the health report. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The count of errors in the subsetting health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("errorCount") + private Long errorCount; + + /** + * The count of errors in the subsetting health report. + * + * @param errorCount the value to set + * @return this builder + */ + public Builder errorCount(Long errorCount) { + this.errorCount = errorCount; + this.__explicitlySet__.add("errorCount"); + return this; + } + /** The count of warnings in the subsetting health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("warningCount") + private Long warningCount; + + /** + * The count of warnings in the subsetting health report. + * + * @param warningCount the value to set + * @return this builder + */ + public Builder warningCount(Long warningCount) { + this.warningCount = warningCount; + this.__explicitlySet__.add("warningCount"); + 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 SubsettingPolicyHealthReport build() { + SubsettingPolicyHealthReport model = + new SubsettingPolicyHealthReport( + this.id, + this.subsettingPolicyId, + this.targetId, + this.compartmentId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.errorCount, + this.warningCount, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingPolicyHealthReport model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("subsettingPolicyId")) { + this.subsettingPolicyId(model.getSubsettingPolicyId()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + 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("errorCount")) { + this.errorCount(model.getErrorCount()); + } + if (model.wasPropertyExplicitlySet("warningCount")) { + this.warningCount(model.getWarningCount()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the health report. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the subsetting policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingPolicyId") + private final String subsettingPolicyId; + + /** + * The OCID of the subsetting policy. + * + * @return the value + */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + + /** The OCID of the target database for which this report was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database for which this report was created. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The OCID of the compartment that contains the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the health report. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the health report. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the report was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the report was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the health report. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + 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 health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the health report. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The count of errors in the subsetting health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("errorCount") + private final Long errorCount; + + /** + * The count of errors in the subsetting health report. + * + * @return the value + */ + public Long getErrorCount() { + return errorCount; + } + + /** The count of warnings in the subsetting health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("warningCount") + private final Long warningCount; + + /** + * The count of warnings in the subsetting health report. + * + * @return the value + */ + public Long getWarningCount() { + return warningCount; + } + + /** + * 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("SubsettingPolicyHealthReport("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + 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(", errorCount=").append(String.valueOf(this.errorCount)); + sb.append(", warningCount=").append(String.valueOf(this.warningCount)); + 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 SubsettingPolicyHealthReport)) { + return false; + } + + SubsettingPolicyHealthReport other = (SubsettingPolicyHealthReport) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && 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.errorCount, other.errorCount) + && java.util.Objects.equals(this.warningCount, other.warningCount) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.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.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.errorCount == null ? 43 : this.errorCount.hashCode()); + result = (result * PRIME) + (this.warningCount == null ? 43 : this.warningCount.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportCollection.java new file mode 100644 index 00000000000..0d0891ab11a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportCollection.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; + +/** + * A collection of subsetting policy health report objects.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingPolicyHealthReportCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingPolicyHealthReportCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingPolicyHealthReportCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting policy health report objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting policy health report objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingPolicyHealthReportCollection build() { + SubsettingPolicyHealthReportCollection model = + new SubsettingPolicyHealthReportCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingPolicyHealthReportCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting policy health report objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting policy health report objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingPolicyHealthReportCollection("); + 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 SubsettingPolicyHealthReportCollection)) { + return false; + } + + SubsettingPolicyHealthReportCollection other = (SubsettingPolicyHealthReportCollection) 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/SubsettingPolicyHealthReportLogCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportLogCollection.java new file mode 100644 index 00000000000..194092499e5 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportLogCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * A collection of subsetting policy health log objects.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingPolicyHealthReportLogCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingPolicyHealthReportLogCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingPolicyHealthReportLogCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting policy health report objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting policy health report objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingPolicyHealthReportLogCollection build() { + SubsettingPolicyHealthReportLogCollection model = + new SubsettingPolicyHealthReportLogCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingPolicyHealthReportLogCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting policy health report objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting policy health report objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingPolicyHealthReportLogCollection("); + 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 SubsettingPolicyHealthReportLogCollection)) { + return false; + } + + SubsettingPolicyHealthReportLogCollection other = + (SubsettingPolicyHealthReportLogCollection) 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/SubsettingPolicyHealthReportLogSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportLogSummary.java new file mode 100644 index 00000000000..9de99939023 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportLogSummary.java @@ -0,0 +1,557 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * A log entry related to the pre-subsetting health check.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingPolicyHealthReportLogSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingPolicyHealthReportLogSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "messageType", + "timestamp", + "message", + "remediation", + "description", + "healthCheckType" + }) + public SubsettingPolicyHealthReportLogSummary( + MessageType messageType, + java.util.Date timestamp, + String message, + String remediation, + String description, + HealthCheckType healthCheckType) { + super(); + this.messageType = messageType; + this.timestamp = timestamp; + this.message = message; + this.remediation = remediation; + this.description = description; + this.healthCheckType = healthCheckType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The log entry type. */ + @com.fasterxml.jackson.annotation.JsonProperty("messageType") + private MessageType messageType; + + /** + * The log entry type. + * + * @param messageType the value to set + * @return this builder + */ + public Builder messageType(MessageType messageType) { + this.messageType = messageType; + this.__explicitlySet__.add("messageType"); + return this; + } + /** + * The date and time the log entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The date and time the log entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + /** A human-readable log entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable log entry. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** A human-readable log entry to remedy any error or warnings in the subsetting policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("remediation") + private String remediation; + + /** + * A human-readable log entry to remedy any error or warnings in the subsetting policy. + * + * @param remediation the value to set + * @return this builder + */ + public Builder remediation(String remediation) { + this.remediation = remediation; + this.__explicitlySet__.add("remediation"); + return this; + } + /** A human-readable description for the log entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description for the log entry. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * An enum type entry for each health check in the subsetting policy. Each enum describes a + * type of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in + * the subsetting tables. PRIVILEGE_CHECK checks if the subsetting user has sufficient + * privilege to run subsetting. TABLESPACE_CHECK checks if the user has sufficient default + * and TEMP tablespace. Also verifies that the specified tablespace by the user is valid, if + * user has provided one DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any + * database/system triggers available. UNDO_TABLESPACE_CHECK checks if for all the instances + * of undo tablespace the AUTOEXTEND feature is enabled. If it's not enabled, it further + * checks if the undo tablespace has any space remaining. STATE_STATS_CHECK checks if all + * the statistics of the subsetting table is upto date or not. OLS_POLICY_CHECK , + * VPD_POLICY_CHECK and REDACTION_POLICY_CHECK checks if the subsetting tables has Oracle + * Label Security (OLS) or Virtual Private Database (VPD) or Redaction policies enabled. + * DV_ENABLE_CHECK checks if database has Database Vault(DV) enabled ACTIVE_JOB_CHECK checks + * if there is any active subsetting job running on the target database. TABLE_EXIST_CHECK + * checks if the subsetting tables are available in the target database. TIME_TRAVEL_CHECK + * checks if the subsetting tables have Time Travel enabled. SYSTEM_OBJECTS_CHECK checks if + * the subsetting tables have dependent objects present in SYS schema. INVALID_PACKAGE_CHECK + * checks if any of the required packages are in invalid state. AUDIT_POLICY_CHECK checks if + * the subsetting tables have Audit policies enabled. VALID_RULES_CHECK if the subsetting + * rules on the tables are valid. CUSTOM_TABLESPACE_CHECK runs only when a custom tablespace + * is specified for the subsetting job. It checks if each policy schema can allocate space + * in that tablespace. + */ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckType") + private HealthCheckType healthCheckType; + + /** + * An enum type entry for each health check in the subsetting policy. Each enum describes a + * type of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in + * the subsetting tables. PRIVILEGE_CHECK checks if the subsetting user has sufficient + * privilege to run subsetting. TABLESPACE_CHECK checks if the user has sufficient default + * and TEMP tablespace. Also verifies that the specified tablespace by the user is valid, if + * user has provided one DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any + * database/system triggers available. UNDO_TABLESPACE_CHECK checks if for all the instances + * of undo tablespace the AUTOEXTEND feature is enabled. If it's not enabled, it further + * checks if the undo tablespace has any space remaining. STATE_STATS_CHECK checks if all + * the statistics of the subsetting table is upto date or not. OLS_POLICY_CHECK , + * VPD_POLICY_CHECK and REDACTION_POLICY_CHECK checks if the subsetting tables has Oracle + * Label Security (OLS) or Virtual Private Database (VPD) or Redaction policies enabled. + * DV_ENABLE_CHECK checks if database has Database Vault(DV) enabled ACTIVE_JOB_CHECK checks + * if there is any active subsetting job running on the target database. TABLE_EXIST_CHECK + * checks if the subsetting tables are available in the target database. TIME_TRAVEL_CHECK + * checks if the subsetting tables have Time Travel enabled. SYSTEM_OBJECTS_CHECK checks if + * the subsetting tables have dependent objects present in SYS schema. INVALID_PACKAGE_CHECK + * checks if any of the required packages are in invalid state. AUDIT_POLICY_CHECK checks if + * the subsetting tables have Audit policies enabled. VALID_RULES_CHECK if the subsetting + * rules on the tables are valid. CUSTOM_TABLESPACE_CHECK runs only when a custom tablespace + * is specified for the subsetting job. It checks if each policy schema can allocate space + * in that tablespace. + * + * @param healthCheckType the value to set + * @return this builder + */ + public Builder healthCheckType(HealthCheckType healthCheckType) { + this.healthCheckType = healthCheckType; + this.__explicitlySet__.add("healthCheckType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingPolicyHealthReportLogSummary build() { + SubsettingPolicyHealthReportLogSummary model = + new SubsettingPolicyHealthReportLogSummary( + this.messageType, + this.timestamp, + this.message, + this.remediation, + this.description, + this.healthCheckType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingPolicyHealthReportLogSummary model) { + if (model.wasPropertyExplicitlySet("messageType")) { + this.messageType(model.getMessageType()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("remediation")) { + this.remediation(model.getRemediation()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("healthCheckType")) { + this.healthCheckType(model.getHealthCheckType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The log entry type. */ + public enum MessageType implements com.oracle.bmc.http.internal.BmcEnum { + Pass("PASS"), + Warning("WARNING"), + Error("ERROR"), + + /** + * 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(MessageType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MessageType v : MessageType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MessageType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MessageType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MessageType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The log entry type. */ + @com.fasterxml.jackson.annotation.JsonProperty("messageType") + private final MessageType messageType; + + /** + * The log entry type. + * + * @return the value + */ + public MessageType getMessageType() { + return messageType; + } + + /** + * The date and time the log entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The date and time the log entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + /** A human-readable log entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable log entry. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** A human-readable log entry to remedy any error or warnings in the subsetting policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("remediation") + private final String remediation; + + /** + * A human-readable log entry to remedy any error or warnings in the subsetting policy. + * + * @return the value + */ + public String getRemediation() { + return remediation; + } + + /** A human-readable description for the log entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description for the log entry. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * An enum type entry for each health check in the subsetting policy. Each enum describes a type + * of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in the + * subsetting tables. PRIVILEGE_CHECK checks if the subsetting user has sufficient privilege to + * run subsetting. TABLESPACE_CHECK checks if the user has sufficient default and TEMP + * tablespace. Also verifies that the specified tablespace by the user is valid, if user has + * provided one DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any database/system + * triggers available. UNDO_TABLESPACE_CHECK checks if for all the instances of undo tablespace + * the AUTOEXTEND feature is enabled. If it's not enabled, it further checks if the undo + * tablespace has any space remaining. STATE_STATS_CHECK checks if all the statistics of the + * subsetting table is upto date or not. OLS_POLICY_CHECK , VPD_POLICY_CHECK and + * REDACTION_POLICY_CHECK checks if the subsetting tables has Oracle Label Security (OLS) or + * Virtual Private Database (VPD) or Redaction policies enabled. DV_ENABLE_CHECK checks if + * database has Database Vault(DV) enabled ACTIVE_JOB_CHECK checks if there is any active + * subsetting job running on the target database. TABLE_EXIST_CHECK checks if the subsetting + * tables are available in the target database. TIME_TRAVEL_CHECK checks if the subsetting + * tables have Time Travel enabled. SYSTEM_OBJECTS_CHECK checks if the subsetting tables have + * dependent objects present in SYS schema. INVALID_PACKAGE_CHECK checks if any of the required + * packages are in invalid state. AUDIT_POLICY_CHECK checks if the subsetting tables have Audit + * policies enabled. VALID_RULES_CHECK if the subsetting rules on the tables are valid. + * CUSTOM_TABLESPACE_CHECK runs only when a custom tablespace is specified for the subsetting + * job. It checks if each policy schema can allocate space in that tablespace. + */ + public enum HealthCheckType implements com.oracle.bmc.http.internal.BmcEnum { + InvalidObjectCheck("INVALID_OBJECT_CHECK"), + PrivilegeCheck("PRIVILEGE_CHECK"), + TablespaceCheck("TABLESPACE_CHECK"), + DatabaseOrSystemTriggersCheck("DATABASE_OR_SYSTEM_TRIGGERS_CHECK"), + UndoTablespaceCheck("UNDO_TABLESPACE_CHECK"), + StateStatsCheck("STATE_STATS_CHECK"), + OlsPolicyCheck("OLS_POLICY_CHECK"), + VpdPolicyCheck("VPD_POLICY_CHECK"), + DvEnableCheck("DV_ENABLE_CHECK"), + RedactionPolicyCheck("REDACTION_POLICY_CHECK"), + ActiveJobCheck("ACTIVE_JOB_CHECK"), + TargetValidationCheck("TARGET_VALIDATION_CHECK"), + TableExistCheck("TABLE_EXIST_CHECK"), + TimeTravelCheck("TIME_TRAVEL_CHECK"), + SystemObjectsCheck("SYSTEM_OBJECTS_CHECK"), + InvalidPackageCheck("INVALID_PACKAGE_CHECK"), + AuditPolicyCheck("AUDIT_POLICY_CHECK"), + ValidRulesCheck("VALID_RULES_CHECK"), + CustomTablespaceCheck("CUSTOM_TABLESPACE_CHECK"), + + /** + * 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(HealthCheckType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HealthCheckType v : HealthCheckType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HealthCheckType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HealthCheckType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HealthCheckType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * An enum type entry for each health check in the subsetting policy. Each enum describes a type + * of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in the + * subsetting tables. PRIVILEGE_CHECK checks if the subsetting user has sufficient privilege to + * run subsetting. TABLESPACE_CHECK checks if the user has sufficient default and TEMP + * tablespace. Also verifies that the specified tablespace by the user is valid, if user has + * provided one DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any database/system + * triggers available. UNDO_TABLESPACE_CHECK checks if for all the instances of undo tablespace + * the AUTOEXTEND feature is enabled. If it's not enabled, it further checks if the undo + * tablespace has any space remaining. STATE_STATS_CHECK checks if all the statistics of the + * subsetting table is upto date or not. OLS_POLICY_CHECK , VPD_POLICY_CHECK and + * REDACTION_POLICY_CHECK checks if the subsetting tables has Oracle Label Security (OLS) or + * Virtual Private Database (VPD) or Redaction policies enabled. DV_ENABLE_CHECK checks if + * database has Database Vault(DV) enabled ACTIVE_JOB_CHECK checks if there is any active + * subsetting job running on the target database. TABLE_EXIST_CHECK checks if the subsetting + * tables are available in the target database. TIME_TRAVEL_CHECK checks if the subsetting + * tables have Time Travel enabled. SYSTEM_OBJECTS_CHECK checks if the subsetting tables have + * dependent objects present in SYS schema. INVALID_PACKAGE_CHECK checks if any of the required + * packages are in invalid state. AUDIT_POLICY_CHECK checks if the subsetting tables have Audit + * policies enabled. VALID_RULES_CHECK if the subsetting rules on the tables are valid. + * CUSTOM_TABLESPACE_CHECK runs only when a custom tablespace is specified for the subsetting + * job. It checks if each policy schema can allocate space in that tablespace. + */ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckType") + private final HealthCheckType healthCheckType; + + /** + * An enum type entry for each health check in the subsetting policy. Each enum describes a type + * of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in the + * subsetting tables. PRIVILEGE_CHECK checks if the subsetting user has sufficient privilege to + * run subsetting. TABLESPACE_CHECK checks if the user has sufficient default and TEMP + * tablespace. Also verifies that the specified tablespace by the user is valid, if user has + * provided one DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any database/system + * triggers available. UNDO_TABLESPACE_CHECK checks if for all the instances of undo tablespace + * the AUTOEXTEND feature is enabled. If it's not enabled, it further checks if the undo + * tablespace has any space remaining. STATE_STATS_CHECK checks if all the statistics of the + * subsetting table is upto date or not. OLS_POLICY_CHECK , VPD_POLICY_CHECK and + * REDACTION_POLICY_CHECK checks if the subsetting tables has Oracle Label Security (OLS) or + * Virtual Private Database (VPD) or Redaction policies enabled. DV_ENABLE_CHECK checks if + * database has Database Vault(DV) enabled ACTIVE_JOB_CHECK checks if there is any active + * subsetting job running on the target database. TABLE_EXIST_CHECK checks if the subsetting + * tables are available in the target database. TIME_TRAVEL_CHECK checks if the subsetting + * tables have Time Travel enabled. SYSTEM_OBJECTS_CHECK checks if the subsetting tables have + * dependent objects present in SYS schema. INVALID_PACKAGE_CHECK checks if any of the required + * packages are in invalid state. AUDIT_POLICY_CHECK checks if the subsetting tables have Audit + * policies enabled. VALID_RULES_CHECK if the subsetting rules on the tables are valid. + * CUSTOM_TABLESPACE_CHECK runs only when a custom tablespace is specified for the subsetting + * job. It checks if each policy schema can allocate space in that tablespace. + * + * @return the value + */ + public HealthCheckType getHealthCheckType() { + return healthCheckType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingPolicyHealthReportLogSummary("); + sb.append("super=").append(super.toString()); + sb.append("messageType=").append(String.valueOf(this.messageType)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", remediation=").append(String.valueOf(this.remediation)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", healthCheckType=").append(String.valueOf(this.healthCheckType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingPolicyHealthReportLogSummary)) { + return false; + } + + SubsettingPolicyHealthReportLogSummary other = (SubsettingPolicyHealthReportLogSummary) o; + return java.util.Objects.equals(this.messageType, other.messageType) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.remediation, other.remediation) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.healthCheckType, other.healthCheckType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.messageType == null ? 43 : this.messageType.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.remediation == null ? 43 : this.remediation.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.healthCheckType == null ? 43 : this.healthCheckType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportSummary.java new file mode 100644 index 00000000000..0caa5114ddc --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicyHealthReportSummary.java @@ -0,0 +1,572 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a subsetting policy health report.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingPolicyHealthReportSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingPolicyHealthReportSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "subsettingPolicyId", + "targetId", + "compartmentId", + "displayName", + "timeCreated", + "lifecycleState", + "errorCount", + "warningCount", + "freeformTags", + "definedTags" + }) + public SubsettingPolicyHealthReportSummary( + String id, + String subsettingPolicyId, + String targetId, + String compartmentId, + String displayName, + java.util.Date timeCreated, + SubsettingPolicyHealthReport.LifecycleState lifecycleState, + Long errorCount, + Long warningCount, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.subsettingPolicyId = subsettingPolicyId; + this.targetId = targetId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.lifecycleState = lifecycleState; + this.errorCount = errorCount; + this.warningCount = warningCount; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the health report. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the subsetting policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingPolicyId") + private String subsettingPolicyId; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + this.__explicitlySet__.add("subsettingPolicyId"); + return this; + } + /** The OCID of the target database for which this report was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database for which this report was created. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The OCID of the compartment that contains the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the health report. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the health report. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @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 current state of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private SubsettingPolicyHealthReport.LifecycleState lifecycleState; + + /** + * The current state of the health report. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(SubsettingPolicyHealthReport.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The count of errors in the subsetting health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("errorCount") + private Long errorCount; + + /** + * The count of errors in the subsetting health report. + * + * @param errorCount the value to set + * @return this builder + */ + public Builder errorCount(Long errorCount) { + this.errorCount = errorCount; + this.__explicitlySet__.add("errorCount"); + return this; + } + /** The count of warnings in the subsetting health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("warningCount") + private Long warningCount; + + /** + * The count of warnings in the subsetting health report. + * + * @param warningCount the value to set + * @return this builder + */ + public Builder warningCount(Long warningCount) { + this.warningCount = warningCount; + this.__explicitlySet__.add("warningCount"); + 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 SubsettingPolicyHealthReportSummary build() { + SubsettingPolicyHealthReportSummary model = + new SubsettingPolicyHealthReportSummary( + this.id, + this.subsettingPolicyId, + this.targetId, + this.compartmentId, + this.displayName, + this.timeCreated, + this.lifecycleState, + this.errorCount, + this.warningCount, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingPolicyHealthReportSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("subsettingPolicyId")) { + this.subsettingPolicyId(model.getSubsettingPolicyId()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("errorCount")) { + this.errorCount(model.getErrorCount()); + } + if (model.wasPropertyExplicitlySet("warningCount")) { + this.warningCount(model.getWarningCount()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the health report. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the subsetting policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingPolicyId") + private final String subsettingPolicyId; + + /** + * The OCID of the subsetting policy. + * + * @return the value + */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + + /** The OCID of the target database for which this report was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database for which this report was created. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The OCID of the compartment that contains the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the health report. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the health report. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The current state of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final SubsettingPolicyHealthReport.LifecycleState lifecycleState; + + /** + * The current state of the health report. + * + * @return the value + */ + public SubsettingPolicyHealthReport.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The count of errors in the subsetting health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("errorCount") + private final Long errorCount; + + /** + * The count of errors in the subsetting health report. + * + * @return the value + */ + public Long getErrorCount() { + return errorCount; + } + + /** The count of warnings in the subsetting health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("warningCount") + private final Long warningCount; + + /** + * The count of warnings in the subsetting health report. + * + * @return the value + */ + public Long getWarningCount() { + return warningCount; + } + + /** + * 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("SubsettingPolicyHealthReportSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", errorCount=").append(String.valueOf(this.errorCount)); + sb.append(", warningCount=").append(String.valueOf(this.warningCount)); + 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 SubsettingPolicyHealthReportSummary)) { + return false; + } + + SubsettingPolicyHealthReportSummary other = (SubsettingPolicyHealthReportSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.errorCount, other.errorCount) + && java.util.Objects.equals(this.warningCount, other.warningCount) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.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.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.errorCount == null ? 43 : this.errorCount.hashCode()); + result = (result * PRIME) + (this.warningCount == null ? 43 : this.warningCount.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicySummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicySummary.java new file mode 100644 index 00000000000..0b5b59bafb3 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingPolicySummary.java @@ -0,0 +1,616 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a subsetting policy
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingPolicySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingPolicySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeCreated", + "timeUpdated", + "lifecycleState", + "description", + "schemaSource", + "maskingPolicyId", + "freeformTags", + "definedTags", + "systemTags" + }) + public SubsettingPolicySummary( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + SubsettingPolicy.LifecycleState lifecycleState, + String description, + SchemaSourceForSummary schemaSource, + String maskingPolicyId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.description = description; + this.schemaSource = schemaSource; + this.maskingPolicyId = maskingPolicyId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the subsetting policy + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the compartment that contains the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the subsetting policy + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the subsetting policy + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The date and time the subsetting policy was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the subsetting policy was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @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 subsetting policy was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the subsetting policy was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The current state of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private SubsettingPolicy.LifecycleState lifecycleState; + + /** + * The current state of the subsetting policy + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(SubsettingPolicy.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The description of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the subsetting policy + * + * @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("schemaSource") + private SchemaSourceForSummary schemaSource; + + public Builder schemaSource(SchemaSourceForSummary schemaSource) { + this.schemaSource = schemaSource; + this.__explicitlySet__.add("schemaSource"); + return this; + } + /** The OCID of the masking policy associated with this subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private String maskingPolicyId; + + /** + * The OCID of the masking policy associated with this subsetting policy + * + * @param maskingPolicyId the value to set + * @return this builder + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + this.__explicitlySet__.add("maskingPolicyId"); + 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 SubsettingPolicySummary build() { + SubsettingPolicySummary model = + new SubsettingPolicySummary( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.description, + this.schemaSource, + this.maskingPolicyId, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingPolicySummary 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("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("schemaSource")) { + this.schemaSource(model.getSchemaSource()); + } + if (model.wasPropertyExplicitlySet("maskingPolicyId")) { + this.maskingPolicyId(model.getMaskingPolicyId()); + } + 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 subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the subsetting policy + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the subsetting policy + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the subsetting policy + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The date and time the subsetting policy was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the subsetting policy was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the subsetting policy was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the subsetting policy was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final SubsettingPolicy.LifecycleState lifecycleState; + + /** + * The current state of the subsetting policy + * + * @return the value + */ + public SubsettingPolicy.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The description of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the subsetting policy + * + * @return the value + */ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schemaSource") + private final SchemaSourceForSummary schemaSource; + + public SchemaSourceForSummary getSchemaSource() { + return schemaSource; + } + + /** The OCID of the masking policy associated with this subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private final String maskingPolicyId; + + /** + * The OCID of the masking policy associated with this subsetting policy + * + * @return the value + */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + + /** + * 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("SubsettingPolicySummary("); + 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(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", schemaSource=").append(String.valueOf(this.schemaSource)); + sb.append(", maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + 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 SubsettingPolicySummary)) { + return false; + } + + SubsettingPolicySummary other = (SubsettingPolicySummary) 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.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.schemaSource, other.schemaSource) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.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.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.schemaSource == null ? 43 : this.schemaSource.hashCode()); + result = + (result * PRIME) + + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.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/SubsettingReport.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingReport.java new file mode 100644 index 00000000000..74d61cd7a0e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingReport.java @@ -0,0 +1,1215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 information for a report generated from a data subsetting operation
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingReport.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingReport + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "subsettingWorkRequestId", + "subsettingPolicyId", + "targetId", + "maskingReportId", + "maskingPolicyId", + "maskingWorkRequestId", + "totalSubsettedSchemas", + "totalSubsettedObjects", + "totalSubsettedRows", + "databaseSizeBeforeSubsettingInKBs", + "databaseSizeAfterSubsettingInKBs", + "timeSubsettingStarted", + "timeSubsettingFinished", + "lifecycleState", + "timeCreated", + "isRedoLoggingEnabled", + "isRefreshStatsEnabled", + "parallelDegree", + "recompile", + "subsettingStatus", + "totalPreSubsettingScriptErrors", + "totalPostSubsettingScriptErrors" + }) + public SubsettingReport( + String id, + String compartmentId, + String subsettingWorkRequestId, + String subsettingPolicyId, + String targetId, + String maskingReportId, + String maskingPolicyId, + String maskingWorkRequestId, + Long totalSubsettedSchemas, + Long totalSubsettedObjects, + Long totalSubsettedRows, + String databaseSizeBeforeSubsettingInKBs, + String databaseSizeAfterSubsettingInKBs, + java.util.Date timeSubsettingStarted, + java.util.Date timeSubsettingFinished, + LifecycleState lifecycleState, + java.util.Date timeCreated, + Boolean isRedoLoggingEnabled, + Boolean isRefreshStatsEnabled, + String parallelDegree, + String recompile, + SubsettingStatus subsettingStatus, + Long totalPreSubsettingScriptErrors, + Long totalPostSubsettingScriptErrors) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.subsettingWorkRequestId = subsettingWorkRequestId; + this.subsettingPolicyId = subsettingPolicyId; + this.targetId = targetId; + this.maskingReportId = maskingReportId; + this.maskingPolicyId = maskingPolicyId; + this.maskingWorkRequestId = maskingWorkRequestId; + this.totalSubsettedSchemas = totalSubsettedSchemas; + this.totalSubsettedObjects = totalSubsettedObjects; + this.totalSubsettedRows = totalSubsettedRows; + this.databaseSizeBeforeSubsettingInKBs = databaseSizeBeforeSubsettingInKBs; + this.databaseSizeAfterSubsettingInKBs = databaseSizeAfterSubsettingInKBs; + this.timeSubsettingStarted = timeSubsettingStarted; + this.timeSubsettingFinished = timeSubsettingFinished; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.parallelDegree = parallelDegree; + this.recompile = recompile; + this.subsettingStatus = subsettingStatus; + this.totalPreSubsettingScriptErrors = totalPreSubsettingScriptErrors; + this.totalPostSubsettingScriptErrors = totalPostSubsettingScriptErrors; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the subsetting report + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the compartment that contains the subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the subsetting report + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The OCID of the subsetting work request that resulted in this subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingWorkRequestId") + private String subsettingWorkRequestId; + + /** + * The OCID of the subsetting work request that resulted in this subsetting report + * + * @param subsettingWorkRequestId the value to set + * @return this builder + */ + public Builder subsettingWorkRequestId(String subsettingWorkRequestId) { + this.subsettingWorkRequestId = subsettingWorkRequestId; + this.__explicitlySet__.add("subsettingWorkRequestId"); + return this; + } + /** The OCID of the subsetting policy used */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingPolicyId") + private String subsettingPolicyId; + + /** + * The OCID of the subsetting policy used + * + * @param subsettingPolicyId the value to set + * @return this builder + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + this.__explicitlySet__.add("subsettingPolicyId"); + return this; + } + /** The OCID of the target database subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database subsetted + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The OCID of the masking report associated with this subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingReportId") + private String maskingReportId; + + /** + * The OCID of the masking report associated with this subsetting report + * + * @param maskingReportId the value to set + * @return this builder + */ + public Builder maskingReportId(String maskingReportId) { + this.maskingReportId = maskingReportId; + this.__explicitlySet__.add("maskingReportId"); + return this; + } + /** The OCID of the masking policy associated with this subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private String maskingPolicyId; + + /** + * The OCID of the masking policy associated with this subsetting report + * + * @param maskingPolicyId the value to set + * @return this builder + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + this.__explicitlySet__.add("maskingPolicyId"); + return this; + } + /** The OCID of the masking work request triggered after this subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingWorkRequestId") + private String maskingWorkRequestId; + + /** + * The OCID of the masking work request triggered after this subsetting job + * + * @param maskingWorkRequestId the value to set + * @return this builder + */ + public Builder maskingWorkRequestId(String maskingWorkRequestId) { + this.maskingWorkRequestId = maskingWorkRequestId; + this.__explicitlySet__.add("maskingWorkRequestId"); + return this; + } + /** The total number of subsetted schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedSchemas") + private Long totalSubsettedSchemas; + + /** + * The total number of subsetted schemas + * + * @param totalSubsettedSchemas the value to set + * @return this builder + */ + public Builder totalSubsettedSchemas(Long totalSubsettedSchemas) { + this.totalSubsettedSchemas = totalSubsettedSchemas; + this.__explicitlySet__.add("totalSubsettedSchemas"); + return this; + } + /** The total number of subsetted objects */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedObjects") + private Long totalSubsettedObjects; + + /** + * The total number of subsetted objects + * + * @param totalSubsettedObjects the value to set + * @return this builder + */ + public Builder totalSubsettedObjects(Long totalSubsettedObjects) { + this.totalSubsettedObjects = totalSubsettedObjects; + this.__explicitlySet__.add("totalSubsettedObjects"); + return this; + } + /** The count of rows reduced in the subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedRows") + private Long totalSubsettedRows; + + /** + * The count of rows reduced in the subsetting job + * + * @param totalSubsettedRows the value to set + * @return this builder + */ + public Builder totalSubsettedRows(Long totalSubsettedRows) { + this.totalSubsettedRows = totalSubsettedRows; + this.__explicitlySet__.add("totalSubsettedRows"); + return this; + } + /** The size of the target database before subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeBeforeSubsettingInKBs") + private String databaseSizeBeforeSubsettingInKBs; + + /** + * The size of the target database before subsetting in KBs + * + * @param databaseSizeBeforeSubsettingInKBs the value to set + * @return this builder + */ + public Builder databaseSizeBeforeSubsettingInKBs(String databaseSizeBeforeSubsettingInKBs) { + this.databaseSizeBeforeSubsettingInKBs = databaseSizeBeforeSubsettingInKBs; + this.__explicitlySet__.add("databaseSizeBeforeSubsettingInKBs"); + return this; + } + /** The size of the target database after subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeAfterSubsettingInKBs") + private String databaseSizeAfterSubsettingInKBs; + + /** + * The size of the target database after subsetting in KBs + * + * @param databaseSizeAfterSubsettingInKBs the value to set + * @return this builder + */ + public Builder databaseSizeAfterSubsettingInKBs(String databaseSizeAfterSubsettingInKBs) { + this.databaseSizeAfterSubsettingInKBs = databaseSizeAfterSubsettingInKBs; + this.__explicitlySet__.add("databaseSizeAfterSubsettingInKBs"); + return this; + } + /** + * The date and time data subsetting started, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSubsettingStarted") + private java.util.Date timeSubsettingStarted; + + /** + * The date and time data subsetting started, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @param timeSubsettingStarted the value to set + * @return this builder + */ + public Builder timeSubsettingStarted(java.util.Date timeSubsettingStarted) { + this.timeSubsettingStarted = timeSubsettingStarted; + this.__explicitlySet__.add("timeSubsettingStarted"); + return this; + } + /** + * The date and time data subsetting finished, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSubsettingFinished") + private java.util.Date timeSubsettingFinished; + + /** + * The date and time data subsetting finished, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @param timeSubsettingFinished the value to set + * @return this builder + */ + public Builder timeSubsettingFinished(java.util.Date timeSubsettingFinished) { + this.timeSubsettingFinished = timeSubsettingFinished; + this.__explicitlySet__.add("timeSubsettingFinished"); + return this; + } + /** The current state of the subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the subsetting report + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the subsetting report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the subsetting report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @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; + } + /** Indicates if redo logging was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging was enabled during the subsetting operation + * + * @param isRedoLoggingEnabled the value to set + * @return this builder + */ + public Builder isRedoLoggingEnabled(Boolean isRedoLoggingEnabled) { + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.__explicitlySet__.add("isRedoLoggingEnabled"); + return this; + } + /** Indicates if statistics gathering was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering was enabled during the subsetting operation + * + * @param isRefreshStatsEnabled the value to set + * @return this builder + */ + public Builder isRefreshStatsEnabled(Boolean isRefreshStatsEnabled) { + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.__explicitlySet__.add("isRefreshStatsEnabled"); + return this; + } + /** Indicates if parallel execution was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private String parallelDegree; + + /** + * Indicates if parallel execution was enabled during the subsetting operation + * + * @param parallelDegree the value to set + * @return this builder + */ + public Builder parallelDegree(String parallelDegree) { + this.parallelDegree = parallelDegree; + this.__explicitlySet__.add("parallelDegree"); + return this; + } + /** Indicates how invalid objects were recompiled post the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private String recompile; + + /** + * Indicates how invalid objects were recompiled post the subsetting operation + * + * @param recompile the value to set + * @return this builder + */ + public Builder recompile(String recompile) { + this.recompile = recompile; + this.__explicitlySet__.add("recompile"); + return this; + } + /** The status of the subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingStatus") + private SubsettingStatus subsettingStatus; + + /** + * The status of the subsetting job + * + * @param subsettingStatus the value to set + * @return this builder + */ + public Builder subsettingStatus(SubsettingStatus subsettingStatus) { + this.subsettingStatus = subsettingStatus; + this.__explicitlySet__.add("subsettingStatus"); + return this; + } + /** The total number of errors in pre-subsetting script */ + @com.fasterxml.jackson.annotation.JsonProperty("totalPreSubsettingScriptErrors") + private Long totalPreSubsettingScriptErrors; + + /** + * The total number of errors in pre-subsetting script + * + * @param totalPreSubsettingScriptErrors the value to set + * @return this builder + */ + public Builder totalPreSubsettingScriptErrors(Long totalPreSubsettingScriptErrors) { + this.totalPreSubsettingScriptErrors = totalPreSubsettingScriptErrors; + this.__explicitlySet__.add("totalPreSubsettingScriptErrors"); + return this; + } + /** The total number of errors in post-subsetting script */ + @com.fasterxml.jackson.annotation.JsonProperty("totalPostSubsettingScriptErrors") + private Long totalPostSubsettingScriptErrors; + + /** + * The total number of errors in post-subsetting script + * + * @param totalPostSubsettingScriptErrors the value to set + * @return this builder + */ + public Builder totalPostSubsettingScriptErrors(Long totalPostSubsettingScriptErrors) { + this.totalPostSubsettingScriptErrors = totalPostSubsettingScriptErrors; + this.__explicitlySet__.add("totalPostSubsettingScriptErrors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingReport build() { + SubsettingReport model = + new SubsettingReport( + this.id, + this.compartmentId, + this.subsettingWorkRequestId, + this.subsettingPolicyId, + this.targetId, + this.maskingReportId, + this.maskingPolicyId, + this.maskingWorkRequestId, + this.totalSubsettedSchemas, + this.totalSubsettedObjects, + this.totalSubsettedRows, + this.databaseSizeBeforeSubsettingInKBs, + this.databaseSizeAfterSubsettingInKBs, + this.timeSubsettingStarted, + this.timeSubsettingFinished, + this.lifecycleState, + this.timeCreated, + this.isRedoLoggingEnabled, + this.isRefreshStatsEnabled, + this.parallelDegree, + this.recompile, + this.subsettingStatus, + this.totalPreSubsettingScriptErrors, + this.totalPostSubsettingScriptErrors); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingReport model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("subsettingWorkRequestId")) { + this.subsettingWorkRequestId(model.getSubsettingWorkRequestId()); + } + if (model.wasPropertyExplicitlySet("subsettingPolicyId")) { + this.subsettingPolicyId(model.getSubsettingPolicyId()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("maskingReportId")) { + this.maskingReportId(model.getMaskingReportId()); + } + if (model.wasPropertyExplicitlySet("maskingPolicyId")) { + this.maskingPolicyId(model.getMaskingPolicyId()); + } + if (model.wasPropertyExplicitlySet("maskingWorkRequestId")) { + this.maskingWorkRequestId(model.getMaskingWorkRequestId()); + } + if (model.wasPropertyExplicitlySet("totalSubsettedSchemas")) { + this.totalSubsettedSchemas(model.getTotalSubsettedSchemas()); + } + if (model.wasPropertyExplicitlySet("totalSubsettedObjects")) { + this.totalSubsettedObjects(model.getTotalSubsettedObjects()); + } + if (model.wasPropertyExplicitlySet("totalSubsettedRows")) { + this.totalSubsettedRows(model.getTotalSubsettedRows()); + } + if (model.wasPropertyExplicitlySet("databaseSizeBeforeSubsettingInKBs")) { + this.databaseSizeBeforeSubsettingInKBs( + model.getDatabaseSizeBeforeSubsettingInKBs()); + } + if (model.wasPropertyExplicitlySet("databaseSizeAfterSubsettingInKBs")) { + this.databaseSizeAfterSubsettingInKBs(model.getDatabaseSizeAfterSubsettingInKBs()); + } + if (model.wasPropertyExplicitlySet("timeSubsettingStarted")) { + this.timeSubsettingStarted(model.getTimeSubsettingStarted()); + } + if (model.wasPropertyExplicitlySet("timeSubsettingFinished")) { + this.timeSubsettingFinished(model.getTimeSubsettingFinished()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("isRedoLoggingEnabled")) { + this.isRedoLoggingEnabled(model.getIsRedoLoggingEnabled()); + } + if (model.wasPropertyExplicitlySet("isRefreshStatsEnabled")) { + this.isRefreshStatsEnabled(model.getIsRefreshStatsEnabled()); + } + if (model.wasPropertyExplicitlySet("parallelDegree")) { + this.parallelDegree(model.getParallelDegree()); + } + if (model.wasPropertyExplicitlySet("recompile")) { + this.recompile(model.getRecompile()); + } + if (model.wasPropertyExplicitlySet("subsettingStatus")) { + this.subsettingStatus(model.getSubsettingStatus()); + } + if (model.wasPropertyExplicitlySet("totalPreSubsettingScriptErrors")) { + this.totalPreSubsettingScriptErrors(model.getTotalPreSubsettingScriptErrors()); + } + if (model.wasPropertyExplicitlySet("totalPostSubsettingScriptErrors")) { + this.totalPostSubsettingScriptErrors(model.getTotalPostSubsettingScriptErrors()); + } + 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 subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the subsetting report + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the subsetting report + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID of the subsetting work request that resulted in this subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingWorkRequestId") + private final String subsettingWorkRequestId; + + /** + * The OCID of the subsetting work request that resulted in this subsetting report + * + * @return the value + */ + public String getSubsettingWorkRequestId() { + return subsettingWorkRequestId; + } + + /** The OCID of the subsetting policy used */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingPolicyId") + private final String subsettingPolicyId; + + /** + * The OCID of the subsetting policy used + * + * @return the value + */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + + /** The OCID of the target database subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database subsetted + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The OCID of the masking report associated with this subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingReportId") + private final String maskingReportId; + + /** + * The OCID of the masking report associated with this subsetting report + * + * @return the value + */ + public String getMaskingReportId() { + return maskingReportId; + } + + /** The OCID of the masking policy associated with this subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private final String maskingPolicyId; + + /** + * The OCID of the masking policy associated with this subsetting report + * + * @return the value + */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + + /** The OCID of the masking work request triggered after this subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingWorkRequestId") + private final String maskingWorkRequestId; + + /** + * The OCID of the masking work request triggered after this subsetting job + * + * @return the value + */ + public String getMaskingWorkRequestId() { + return maskingWorkRequestId; + } + + /** The total number of subsetted schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedSchemas") + private final Long totalSubsettedSchemas; + + /** + * The total number of subsetted schemas + * + * @return the value + */ + public Long getTotalSubsettedSchemas() { + return totalSubsettedSchemas; + } + + /** The total number of subsetted objects */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedObjects") + private final Long totalSubsettedObjects; + + /** + * The total number of subsetted objects + * + * @return the value + */ + public Long getTotalSubsettedObjects() { + return totalSubsettedObjects; + } + + /** The count of rows reduced in the subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedRows") + private final Long totalSubsettedRows; + + /** + * The count of rows reduced in the subsetting job + * + * @return the value + */ + public Long getTotalSubsettedRows() { + return totalSubsettedRows; + } + + /** The size of the target database before subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeBeforeSubsettingInKBs") + private final String databaseSizeBeforeSubsettingInKBs; + + /** + * The size of the target database before subsetting in KBs + * + * @return the value + */ + public String getDatabaseSizeBeforeSubsettingInKBs() { + return databaseSizeBeforeSubsettingInKBs; + } + + /** The size of the target database after subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeAfterSubsettingInKBs") + private final String databaseSizeAfterSubsettingInKBs; + + /** + * The size of the target database after subsetting in KBs + * + * @return the value + */ + public String getDatabaseSizeAfterSubsettingInKBs() { + return databaseSizeAfterSubsettingInKBs; + } + + /** + * The date and time data subsetting started, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSubsettingStarted") + private final java.util.Date timeSubsettingStarted; + + /** + * The date and time data subsetting started, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeSubsettingStarted() { + return timeSubsettingStarted; + } + + /** + * The date and time data subsetting finished, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSubsettingFinished") + private final java.util.Date timeSubsettingFinished; + + /** + * The date and time data subsetting finished, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeSubsettingFinished() { + return timeSubsettingFinished; + } + + /** The current state of the subsetting report */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + NeedsAttention("NEEDS_ATTENTION"), + 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 subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the subsetting report + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the subsetting report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the subsetting report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Indicates if redo logging was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private final Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging was enabled during the subsetting operation + * + * @return the value + */ + public Boolean getIsRedoLoggingEnabled() { + return isRedoLoggingEnabled; + } + + /** Indicates if statistics gathering was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private final Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering was enabled during the subsetting operation + * + * @return the value + */ + public Boolean getIsRefreshStatsEnabled() { + return isRefreshStatsEnabled; + } + + /** Indicates if parallel execution was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private final String parallelDegree; + + /** + * Indicates if parallel execution was enabled during the subsetting operation + * + * @return the value + */ + public String getParallelDegree() { + return parallelDegree; + } + + /** Indicates how invalid objects were recompiled post the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private final String recompile; + + /** + * Indicates how invalid objects were recompiled post the subsetting operation + * + * @return the value + */ + public String getRecompile() { + return recompile; + } + + /** The status of the subsetting job */ + public enum SubsettingStatus implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Success("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(SubsettingStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SubsettingStatus v : SubsettingStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SubsettingStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SubsettingStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SubsettingStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The status of the subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingStatus") + private final SubsettingStatus subsettingStatus; + + /** + * The status of the subsetting job + * + * @return the value + */ + public SubsettingStatus getSubsettingStatus() { + return subsettingStatus; + } + + /** The total number of errors in pre-subsetting script */ + @com.fasterxml.jackson.annotation.JsonProperty("totalPreSubsettingScriptErrors") + private final Long totalPreSubsettingScriptErrors; + + /** + * The total number of errors in pre-subsetting script + * + * @return the value + */ + public Long getTotalPreSubsettingScriptErrors() { + return totalPreSubsettingScriptErrors; + } + + /** The total number of errors in post-subsetting script */ + @com.fasterxml.jackson.annotation.JsonProperty("totalPostSubsettingScriptErrors") + private final Long totalPostSubsettingScriptErrors; + + /** + * The total number of errors in post-subsetting script + * + * @return the value + */ + public Long getTotalPostSubsettingScriptErrors() { + return totalPostSubsettingScriptErrors; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingReport("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", subsettingWorkRequestId=") + .append(String.valueOf(this.subsettingWorkRequestId)); + sb.append(", subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", maskingReportId=").append(String.valueOf(this.maskingReportId)); + sb.append(", maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + sb.append(", maskingWorkRequestId=").append(String.valueOf(this.maskingWorkRequestId)); + sb.append(", totalSubsettedSchemas=").append(String.valueOf(this.totalSubsettedSchemas)); + sb.append(", totalSubsettedObjects=").append(String.valueOf(this.totalSubsettedObjects)); + sb.append(", totalSubsettedRows=").append(String.valueOf(this.totalSubsettedRows)); + sb.append(", databaseSizeBeforeSubsettingInKBs=") + .append(String.valueOf(this.databaseSizeBeforeSubsettingInKBs)); + sb.append(", databaseSizeAfterSubsettingInKBs=") + .append(String.valueOf(this.databaseSizeAfterSubsettingInKBs)); + sb.append(", timeSubsettingStarted=").append(String.valueOf(this.timeSubsettingStarted)); + sb.append(", timeSubsettingFinished=").append(String.valueOf(this.timeSubsettingFinished)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", isRedoLoggingEnabled=").append(String.valueOf(this.isRedoLoggingEnabled)); + sb.append(", isRefreshStatsEnabled=").append(String.valueOf(this.isRefreshStatsEnabled)); + sb.append(", parallelDegree=").append(String.valueOf(this.parallelDegree)); + sb.append(", recompile=").append(String.valueOf(this.recompile)); + sb.append(", subsettingStatus=").append(String.valueOf(this.subsettingStatus)); + sb.append(", totalPreSubsettingScriptErrors=") + .append(String.valueOf(this.totalPreSubsettingScriptErrors)); + sb.append(", totalPostSubsettingScriptErrors=") + .append(String.valueOf(this.totalPostSubsettingScriptErrors)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingReport)) { + return false; + } + + SubsettingReport other = (SubsettingReport) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.subsettingWorkRequestId, other.subsettingWorkRequestId) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.maskingReportId, other.maskingReportId) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals(this.maskingWorkRequestId, other.maskingWorkRequestId) + && java.util.Objects.equals(this.totalSubsettedSchemas, other.totalSubsettedSchemas) + && java.util.Objects.equals(this.totalSubsettedObjects, other.totalSubsettedObjects) + && java.util.Objects.equals(this.totalSubsettedRows, other.totalSubsettedRows) + && java.util.Objects.equals( + this.databaseSizeBeforeSubsettingInKBs, + other.databaseSizeBeforeSubsettingInKBs) + && java.util.Objects.equals( + this.databaseSizeAfterSubsettingInKBs, + other.databaseSizeAfterSubsettingInKBs) + && java.util.Objects.equals(this.timeSubsettingStarted, other.timeSubsettingStarted) + && java.util.Objects.equals( + this.timeSubsettingFinished, other.timeSubsettingFinished) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.isRedoLoggingEnabled, other.isRedoLoggingEnabled) + && java.util.Objects.equals(this.isRefreshStatsEnabled, other.isRefreshStatsEnabled) + && java.util.Objects.equals(this.parallelDegree, other.parallelDegree) + && java.util.Objects.equals(this.recompile, other.recompile) + && java.util.Objects.equals(this.subsettingStatus, other.subsettingStatus) + && java.util.Objects.equals( + this.totalPreSubsettingScriptErrors, other.totalPreSubsettingScriptErrors) + && java.util.Objects.equals( + this.totalPostSubsettingScriptErrors, other.totalPostSubsettingScriptErrors) + && 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.subsettingWorkRequestId == null + ? 43 + : this.subsettingWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.maskingReportId == null ? 43 : this.maskingReportId.hashCode()); + result = + (result * PRIME) + + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.maskingWorkRequestId == null + ? 43 + : this.maskingWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.totalSubsettedSchemas == null + ? 43 + : this.totalSubsettedSchemas.hashCode()); + result = + (result * PRIME) + + (this.totalSubsettedObjects == null + ? 43 + : this.totalSubsettedObjects.hashCode()); + result = + (result * PRIME) + + (this.totalSubsettedRows == null + ? 43 + : this.totalSubsettedRows.hashCode()); + result = + (result * PRIME) + + (this.databaseSizeBeforeSubsettingInKBs == null + ? 43 + : this.databaseSizeBeforeSubsettingInKBs.hashCode()); + result = + (result * PRIME) + + (this.databaseSizeAfterSubsettingInKBs == null + ? 43 + : this.databaseSizeAfterSubsettingInKBs.hashCode()); + result = + (result * PRIME) + + (this.timeSubsettingStarted == null + ? 43 + : this.timeSubsettingStarted.hashCode()); + result = + (result * PRIME) + + (this.timeSubsettingFinished == null + ? 43 + : this.timeSubsettingFinished.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.isRedoLoggingEnabled == null + ? 43 + : this.isRedoLoggingEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRefreshStatsEnabled == null + ? 43 + : this.isRefreshStatsEnabled.hashCode()); + result = + (result * PRIME) + + (this.parallelDegree == null ? 43 : this.parallelDegree.hashCode()); + result = (result * PRIME) + (this.recompile == null ? 43 : this.recompile.hashCode()); + result = + (result * PRIME) + + (this.subsettingStatus == null ? 43 : this.subsettingStatus.hashCode()); + result = + (result * PRIME) + + (this.totalPreSubsettingScriptErrors == null + ? 43 + : this.totalPreSubsettingScriptErrors.hashCode()); + result = + (result * PRIME) + + (this.totalPostSubsettingScriptErrors == null + ? 43 + : this.totalPostSubsettingScriptErrors.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingReportCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingReportCollection.java new file mode 100644 index 00000000000..d4234f92724 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingReportCollection.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.datasafe.model; + +/** + * A collection of subsetting report summary objects.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingReportCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingReportCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingReportCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting report summary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting report summary objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingReportCollection build() { + SubsettingReportCollection model = new SubsettingReportCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingReportCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting report summary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting report summary objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingReportCollection("); + 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 SubsettingReportCollection)) { + return false; + } + + SubsettingReportCollection other = (SubsettingReportCollection) 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/SubsettingReportSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingReportSummary.java new file mode 100644 index 00000000000..ef500c2b30e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingReportSummary.java @@ -0,0 +1,1165 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 information for a report generated from a data subsetting operation
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingReportSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingReportSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "subsettingWorkRequestId", + "subsettingPolicyId", + "targetId", + "maskingReportId", + "maskingPolicyId", + "maskingWorkRequestId", + "totalSubsettedSchemas", + "totalSubsettedObjects", + "totalSubsettedRows", + "databaseSizeBeforeSubsettingInKBs", + "databaseSizeAfterSubsettingInKBs", + "timeSubsettingStarted", + "timeSubsettingFinished", + "lifecycleState", + "timeCreated", + "isRedoLoggingEnabled", + "isRefreshStatsEnabled", + "parallelDegree", + "recompile", + "subsettingStatus", + "totalPreSubsettingScriptErrors", + "totalPostSubsettingScriptErrors" + }) + public SubsettingReportSummary( + String id, + String compartmentId, + String subsettingWorkRequestId, + String subsettingPolicyId, + String targetId, + String maskingReportId, + String maskingPolicyId, + String maskingWorkRequestId, + Long totalSubsettedSchemas, + Long totalSubsettedObjects, + Long totalSubsettedRows, + String databaseSizeBeforeSubsettingInKBs, + String databaseSizeAfterSubsettingInKBs, + java.util.Date timeSubsettingStarted, + java.util.Date timeSubsettingFinished, + SubsettingReport.LifecycleState lifecycleState, + java.util.Date timeCreated, + Boolean isRedoLoggingEnabled, + Boolean isRefreshStatsEnabled, + String parallelDegree, + String recompile, + SubsettingStatus subsettingStatus, + Long totalPreSubsettingScriptErrors, + Long totalPostSubsettingScriptErrors) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.subsettingWorkRequestId = subsettingWorkRequestId; + this.subsettingPolicyId = subsettingPolicyId; + this.targetId = targetId; + this.maskingReportId = maskingReportId; + this.maskingPolicyId = maskingPolicyId; + this.maskingWorkRequestId = maskingWorkRequestId; + this.totalSubsettedSchemas = totalSubsettedSchemas; + this.totalSubsettedObjects = totalSubsettedObjects; + this.totalSubsettedRows = totalSubsettedRows; + this.databaseSizeBeforeSubsettingInKBs = databaseSizeBeforeSubsettingInKBs; + this.databaseSizeAfterSubsettingInKBs = databaseSizeAfterSubsettingInKBs; + this.timeSubsettingStarted = timeSubsettingStarted; + this.timeSubsettingFinished = timeSubsettingFinished; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.parallelDegree = parallelDegree; + this.recompile = recompile; + this.subsettingStatus = subsettingStatus; + this.totalPreSubsettingScriptErrors = totalPreSubsettingScriptErrors; + this.totalPostSubsettingScriptErrors = totalPostSubsettingScriptErrors; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the subsetting report + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the compartment that contains the subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the subsetting report + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The OCID of the subsetting work request that resulted in this subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingWorkRequestId") + private String subsettingWorkRequestId; + + /** + * The OCID of the subsetting work request that resulted in this subsetting report + * + * @param subsettingWorkRequestId the value to set + * @return this builder + */ + public Builder subsettingWorkRequestId(String subsettingWorkRequestId) { + this.subsettingWorkRequestId = subsettingWorkRequestId; + this.__explicitlySet__.add("subsettingWorkRequestId"); + return this; + } + /** The OCID of the subsetting policy used */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingPolicyId") + private String subsettingPolicyId; + + /** + * The OCID of the subsetting policy used + * + * @param subsettingPolicyId the value to set + * @return this builder + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + this.__explicitlySet__.add("subsettingPolicyId"); + return this; + } + /** The OCID of the target database subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database subsetted + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The OCID of the masking report associated with this subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingReportId") + private String maskingReportId; + + /** + * The OCID of the masking report associated with this subsetting report + * + * @param maskingReportId the value to set + * @return this builder + */ + public Builder maskingReportId(String maskingReportId) { + this.maskingReportId = maskingReportId; + this.__explicitlySet__.add("maskingReportId"); + return this; + } + /** The OCID of the masking policy associated with this subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private String maskingPolicyId; + + /** + * The OCID of the masking policy associated with this subsetting policy + * + * @param maskingPolicyId the value to set + * @return this builder + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + this.__explicitlySet__.add("maskingPolicyId"); + return this; + } + /** The OCID of the masking work request triggered after this subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingWorkRequestId") + private String maskingWorkRequestId; + + /** + * The OCID of the masking work request triggered after this subsetting job + * + * @param maskingWorkRequestId the value to set + * @return this builder + */ + public Builder maskingWorkRequestId(String maskingWorkRequestId) { + this.maskingWorkRequestId = maskingWorkRequestId; + this.__explicitlySet__.add("maskingWorkRequestId"); + return this; + } + /** The total number of subsetted schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedSchemas") + private Long totalSubsettedSchemas; + + /** + * The total number of subsetted schemas + * + * @param totalSubsettedSchemas the value to set + * @return this builder + */ + public Builder totalSubsettedSchemas(Long totalSubsettedSchemas) { + this.totalSubsettedSchemas = totalSubsettedSchemas; + this.__explicitlySet__.add("totalSubsettedSchemas"); + return this; + } + /** The total number of subsetted objects */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedObjects") + private Long totalSubsettedObjects; + + /** + * The total number of subsetted objects + * + * @param totalSubsettedObjects the value to set + * @return this builder + */ + public Builder totalSubsettedObjects(Long totalSubsettedObjects) { + this.totalSubsettedObjects = totalSubsettedObjects; + this.__explicitlySet__.add("totalSubsettedObjects"); + return this; + } + /** The count of rows reduced in the subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedRows") + private Long totalSubsettedRows; + + /** + * The count of rows reduced in the subsetting job + * + * @param totalSubsettedRows the value to set + * @return this builder + */ + public Builder totalSubsettedRows(Long totalSubsettedRows) { + this.totalSubsettedRows = totalSubsettedRows; + this.__explicitlySet__.add("totalSubsettedRows"); + return this; + } + /** The size of the target database before subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeBeforeSubsettingInKBs") + private String databaseSizeBeforeSubsettingInKBs; + + /** + * The size of the target database before subsetting in KBs + * + * @param databaseSizeBeforeSubsettingInKBs the value to set + * @return this builder + */ + public Builder databaseSizeBeforeSubsettingInKBs(String databaseSizeBeforeSubsettingInKBs) { + this.databaseSizeBeforeSubsettingInKBs = databaseSizeBeforeSubsettingInKBs; + this.__explicitlySet__.add("databaseSizeBeforeSubsettingInKBs"); + return this; + } + /** The size of the target database after subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeAfterSubsettingInKBs") + private String databaseSizeAfterSubsettingInKBs; + + /** + * The size of the target database after subsetting in KBs + * + * @param databaseSizeAfterSubsettingInKBs the value to set + * @return this builder + */ + public Builder databaseSizeAfterSubsettingInKBs(String databaseSizeAfterSubsettingInKBs) { + this.databaseSizeAfterSubsettingInKBs = databaseSizeAfterSubsettingInKBs; + this.__explicitlySet__.add("databaseSizeAfterSubsettingInKBs"); + return this; + } + /** + * The date and time data subsetting started, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSubsettingStarted") + private java.util.Date timeSubsettingStarted; + + /** + * The date and time data subsetting started, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @param timeSubsettingStarted the value to set + * @return this builder + */ + public Builder timeSubsettingStarted(java.util.Date timeSubsettingStarted) { + this.timeSubsettingStarted = timeSubsettingStarted; + this.__explicitlySet__.add("timeSubsettingStarted"); + return this; + } + /** + * The date and time data subsetting finished, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSubsettingFinished") + private java.util.Date timeSubsettingFinished; + + /** + * The date and time data subsetting finished, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @param timeSubsettingFinished the value to set + * @return this builder + */ + public Builder timeSubsettingFinished(java.util.Date timeSubsettingFinished) { + this.timeSubsettingFinished = timeSubsettingFinished; + this.__explicitlySet__.add("timeSubsettingFinished"); + return this; + } + /** The current state of the subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private SubsettingReport.LifecycleState lifecycleState; + + /** + * The current state of the subsetting report + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(SubsettingReport.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the subsetting report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the subsetting report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @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; + } + /** Indicates if redo logging was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging was enabled during the subsetting operation + * + * @param isRedoLoggingEnabled the value to set + * @return this builder + */ + public Builder isRedoLoggingEnabled(Boolean isRedoLoggingEnabled) { + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.__explicitlySet__.add("isRedoLoggingEnabled"); + return this; + } + /** Indicates if statistics gathering was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering was enabled during the subsetting operation + * + * @param isRefreshStatsEnabled the value to set + * @return this builder + */ + public Builder isRefreshStatsEnabled(Boolean isRefreshStatsEnabled) { + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.__explicitlySet__.add("isRefreshStatsEnabled"); + return this; + } + /** Indicates if parallel execution was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private String parallelDegree; + + /** + * Indicates if parallel execution was enabled during the subsetting operation + * + * @param parallelDegree the value to set + * @return this builder + */ + public Builder parallelDegree(String parallelDegree) { + this.parallelDegree = parallelDegree; + this.__explicitlySet__.add("parallelDegree"); + return this; + } + /** Indicates how invalid objects were recompiled post the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private String recompile; + + /** + * Indicates how invalid objects were recompiled post the subsetting operation + * + * @param recompile the value to set + * @return this builder + */ + public Builder recompile(String recompile) { + this.recompile = recompile; + this.__explicitlySet__.add("recompile"); + return this; + } + /** The status of the subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingStatus") + private SubsettingStatus subsettingStatus; + + /** + * The status of the subsetting job + * + * @param subsettingStatus the value to set + * @return this builder + */ + public Builder subsettingStatus(SubsettingStatus subsettingStatus) { + this.subsettingStatus = subsettingStatus; + this.__explicitlySet__.add("subsettingStatus"); + return this; + } + /** The total number of errors in pre-subsetting script */ + @com.fasterxml.jackson.annotation.JsonProperty("totalPreSubsettingScriptErrors") + private Long totalPreSubsettingScriptErrors; + + /** + * The total number of errors in pre-subsetting script + * + * @param totalPreSubsettingScriptErrors the value to set + * @return this builder + */ + public Builder totalPreSubsettingScriptErrors(Long totalPreSubsettingScriptErrors) { + this.totalPreSubsettingScriptErrors = totalPreSubsettingScriptErrors; + this.__explicitlySet__.add("totalPreSubsettingScriptErrors"); + return this; + } + /** The total number of errors in post-subsetting script */ + @com.fasterxml.jackson.annotation.JsonProperty("totalPostSubsettingScriptErrors") + private Long totalPostSubsettingScriptErrors; + + /** + * The total number of errors in post-subsetting script + * + * @param totalPostSubsettingScriptErrors the value to set + * @return this builder + */ + public Builder totalPostSubsettingScriptErrors(Long totalPostSubsettingScriptErrors) { + this.totalPostSubsettingScriptErrors = totalPostSubsettingScriptErrors; + this.__explicitlySet__.add("totalPostSubsettingScriptErrors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingReportSummary build() { + SubsettingReportSummary model = + new SubsettingReportSummary( + this.id, + this.compartmentId, + this.subsettingWorkRequestId, + this.subsettingPolicyId, + this.targetId, + this.maskingReportId, + this.maskingPolicyId, + this.maskingWorkRequestId, + this.totalSubsettedSchemas, + this.totalSubsettedObjects, + this.totalSubsettedRows, + this.databaseSizeBeforeSubsettingInKBs, + this.databaseSizeAfterSubsettingInKBs, + this.timeSubsettingStarted, + this.timeSubsettingFinished, + this.lifecycleState, + this.timeCreated, + this.isRedoLoggingEnabled, + this.isRefreshStatsEnabled, + this.parallelDegree, + this.recompile, + this.subsettingStatus, + this.totalPreSubsettingScriptErrors, + this.totalPostSubsettingScriptErrors); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingReportSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("subsettingWorkRequestId")) { + this.subsettingWorkRequestId(model.getSubsettingWorkRequestId()); + } + if (model.wasPropertyExplicitlySet("subsettingPolicyId")) { + this.subsettingPolicyId(model.getSubsettingPolicyId()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("maskingReportId")) { + this.maskingReportId(model.getMaskingReportId()); + } + if (model.wasPropertyExplicitlySet("maskingPolicyId")) { + this.maskingPolicyId(model.getMaskingPolicyId()); + } + if (model.wasPropertyExplicitlySet("maskingWorkRequestId")) { + this.maskingWorkRequestId(model.getMaskingWorkRequestId()); + } + if (model.wasPropertyExplicitlySet("totalSubsettedSchemas")) { + this.totalSubsettedSchemas(model.getTotalSubsettedSchemas()); + } + if (model.wasPropertyExplicitlySet("totalSubsettedObjects")) { + this.totalSubsettedObjects(model.getTotalSubsettedObjects()); + } + if (model.wasPropertyExplicitlySet("totalSubsettedRows")) { + this.totalSubsettedRows(model.getTotalSubsettedRows()); + } + if (model.wasPropertyExplicitlySet("databaseSizeBeforeSubsettingInKBs")) { + this.databaseSizeBeforeSubsettingInKBs( + model.getDatabaseSizeBeforeSubsettingInKBs()); + } + if (model.wasPropertyExplicitlySet("databaseSizeAfterSubsettingInKBs")) { + this.databaseSizeAfterSubsettingInKBs(model.getDatabaseSizeAfterSubsettingInKBs()); + } + if (model.wasPropertyExplicitlySet("timeSubsettingStarted")) { + this.timeSubsettingStarted(model.getTimeSubsettingStarted()); + } + if (model.wasPropertyExplicitlySet("timeSubsettingFinished")) { + this.timeSubsettingFinished(model.getTimeSubsettingFinished()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("isRedoLoggingEnabled")) { + this.isRedoLoggingEnabled(model.getIsRedoLoggingEnabled()); + } + if (model.wasPropertyExplicitlySet("isRefreshStatsEnabled")) { + this.isRefreshStatsEnabled(model.getIsRefreshStatsEnabled()); + } + if (model.wasPropertyExplicitlySet("parallelDegree")) { + this.parallelDegree(model.getParallelDegree()); + } + if (model.wasPropertyExplicitlySet("recompile")) { + this.recompile(model.getRecompile()); + } + if (model.wasPropertyExplicitlySet("subsettingStatus")) { + this.subsettingStatus(model.getSubsettingStatus()); + } + if (model.wasPropertyExplicitlySet("totalPreSubsettingScriptErrors")) { + this.totalPreSubsettingScriptErrors(model.getTotalPreSubsettingScriptErrors()); + } + if (model.wasPropertyExplicitlySet("totalPostSubsettingScriptErrors")) { + this.totalPostSubsettingScriptErrors(model.getTotalPostSubsettingScriptErrors()); + } + 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 subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the subsetting report + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the subsetting report + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID of the subsetting work request that resulted in this subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingWorkRequestId") + private final String subsettingWorkRequestId; + + /** + * The OCID of the subsetting work request that resulted in this subsetting report + * + * @return the value + */ + public String getSubsettingWorkRequestId() { + return subsettingWorkRequestId; + } + + /** The OCID of the subsetting policy used */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingPolicyId") + private final String subsettingPolicyId; + + /** + * The OCID of the subsetting policy used + * + * @return the value + */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + + /** The OCID of the target database subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database subsetted + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The OCID of the masking report associated with this subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingReportId") + private final String maskingReportId; + + /** + * The OCID of the masking report associated with this subsetting report + * + * @return the value + */ + public String getMaskingReportId() { + return maskingReportId; + } + + /** The OCID of the masking policy associated with this subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private final String maskingPolicyId; + + /** + * The OCID of the masking policy associated with this subsetting policy + * + * @return the value + */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + + /** The OCID of the masking work request triggered after this subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingWorkRequestId") + private final String maskingWorkRequestId; + + /** + * The OCID of the masking work request triggered after this subsetting job + * + * @return the value + */ + public String getMaskingWorkRequestId() { + return maskingWorkRequestId; + } + + /** The total number of subsetted schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedSchemas") + private final Long totalSubsettedSchemas; + + /** + * The total number of subsetted schemas + * + * @return the value + */ + public Long getTotalSubsettedSchemas() { + return totalSubsettedSchemas; + } + + /** The total number of subsetted objects */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedObjects") + private final Long totalSubsettedObjects; + + /** + * The total number of subsetted objects + * + * @return the value + */ + public Long getTotalSubsettedObjects() { + return totalSubsettedObjects; + } + + /** The count of rows reduced in the subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("totalSubsettedRows") + private final Long totalSubsettedRows; + + /** + * The count of rows reduced in the subsetting job + * + * @return the value + */ + public Long getTotalSubsettedRows() { + return totalSubsettedRows; + } + + /** The size of the target database before subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeBeforeSubsettingInKBs") + private final String databaseSizeBeforeSubsettingInKBs; + + /** + * The size of the target database before subsetting in KBs + * + * @return the value + */ + public String getDatabaseSizeBeforeSubsettingInKBs() { + return databaseSizeBeforeSubsettingInKBs; + } + + /** The size of the target database after subsetting in KBs */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeAfterSubsettingInKBs") + private final String databaseSizeAfterSubsettingInKBs; + + /** + * The size of the target database after subsetting in KBs + * + * @return the value + */ + public String getDatabaseSizeAfterSubsettingInKBs() { + return databaseSizeAfterSubsettingInKBs; + } + + /** + * The date and time data subsetting started, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSubsettingStarted") + private final java.util.Date timeSubsettingStarted; + + /** + * The date and time data subsetting started, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeSubsettingStarted() { + return timeSubsettingStarted; + } + + /** + * The date and time data subsetting finished, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSubsettingFinished") + private final java.util.Date timeSubsettingFinished; + + /** + * The date and time data subsetting finished, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeSubsettingFinished() { + return timeSubsettingFinished; + } + + /** The current state of the subsetting report */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final SubsettingReport.LifecycleState lifecycleState; + + /** + * The current state of the subsetting report + * + * @return the value + */ + public SubsettingReport.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the subsetting report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the subsetting report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Indicates if redo logging was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private final Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging was enabled during the subsetting operation + * + * @return the value + */ + public Boolean getIsRedoLoggingEnabled() { + return isRedoLoggingEnabled; + } + + /** Indicates if statistics gathering was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private final Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering was enabled during the subsetting operation + * + * @return the value + */ + public Boolean getIsRefreshStatsEnabled() { + return isRefreshStatsEnabled; + } + + /** Indicates if parallel execution was enabled during the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private final String parallelDegree; + + /** + * Indicates if parallel execution was enabled during the subsetting operation + * + * @return the value + */ + public String getParallelDegree() { + return parallelDegree; + } + + /** Indicates how invalid objects were recompiled post the subsetting operation */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private final String recompile; + + /** + * Indicates how invalid objects were recompiled post the subsetting operation + * + * @return the value + */ + public String getRecompile() { + return recompile; + } + + /** The status of the subsetting job */ + public enum SubsettingStatus implements com.oracle.bmc.http.internal.BmcEnum { + Failed("FAILED"), + Success("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(SubsettingStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SubsettingStatus v : SubsettingStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SubsettingStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SubsettingStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SubsettingStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The status of the subsetting job */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingStatus") + private final SubsettingStatus subsettingStatus; + + /** + * The status of the subsetting job + * + * @return the value + */ + public SubsettingStatus getSubsettingStatus() { + return subsettingStatus; + } + + /** The total number of errors in pre-subsetting script */ + @com.fasterxml.jackson.annotation.JsonProperty("totalPreSubsettingScriptErrors") + private final Long totalPreSubsettingScriptErrors; + + /** + * The total number of errors in pre-subsetting script + * + * @return the value + */ + public Long getTotalPreSubsettingScriptErrors() { + return totalPreSubsettingScriptErrors; + } + + /** The total number of errors in post-subsetting script */ + @com.fasterxml.jackson.annotation.JsonProperty("totalPostSubsettingScriptErrors") + private final Long totalPostSubsettingScriptErrors; + + /** + * The total number of errors in post-subsetting script + * + * @return the value + */ + public Long getTotalPostSubsettingScriptErrors() { + return totalPostSubsettingScriptErrors; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingReportSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", subsettingWorkRequestId=") + .append(String.valueOf(this.subsettingWorkRequestId)); + sb.append(", subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", maskingReportId=").append(String.valueOf(this.maskingReportId)); + sb.append(", maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + sb.append(", maskingWorkRequestId=").append(String.valueOf(this.maskingWorkRequestId)); + sb.append(", totalSubsettedSchemas=").append(String.valueOf(this.totalSubsettedSchemas)); + sb.append(", totalSubsettedObjects=").append(String.valueOf(this.totalSubsettedObjects)); + sb.append(", totalSubsettedRows=").append(String.valueOf(this.totalSubsettedRows)); + sb.append(", databaseSizeBeforeSubsettingInKBs=") + .append(String.valueOf(this.databaseSizeBeforeSubsettingInKBs)); + sb.append(", databaseSizeAfterSubsettingInKBs=") + .append(String.valueOf(this.databaseSizeAfterSubsettingInKBs)); + sb.append(", timeSubsettingStarted=").append(String.valueOf(this.timeSubsettingStarted)); + sb.append(", timeSubsettingFinished=").append(String.valueOf(this.timeSubsettingFinished)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", isRedoLoggingEnabled=").append(String.valueOf(this.isRedoLoggingEnabled)); + sb.append(", isRefreshStatsEnabled=").append(String.valueOf(this.isRefreshStatsEnabled)); + sb.append(", parallelDegree=").append(String.valueOf(this.parallelDegree)); + sb.append(", recompile=").append(String.valueOf(this.recompile)); + sb.append(", subsettingStatus=").append(String.valueOf(this.subsettingStatus)); + sb.append(", totalPreSubsettingScriptErrors=") + .append(String.valueOf(this.totalPreSubsettingScriptErrors)); + sb.append(", totalPostSubsettingScriptErrors=") + .append(String.valueOf(this.totalPostSubsettingScriptErrors)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingReportSummary)) { + return false; + } + + SubsettingReportSummary other = (SubsettingReportSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.subsettingWorkRequestId, other.subsettingWorkRequestId) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.maskingReportId, other.maskingReportId) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals(this.maskingWorkRequestId, other.maskingWorkRequestId) + && java.util.Objects.equals(this.totalSubsettedSchemas, other.totalSubsettedSchemas) + && java.util.Objects.equals(this.totalSubsettedObjects, other.totalSubsettedObjects) + && java.util.Objects.equals(this.totalSubsettedRows, other.totalSubsettedRows) + && java.util.Objects.equals( + this.databaseSizeBeforeSubsettingInKBs, + other.databaseSizeBeforeSubsettingInKBs) + && java.util.Objects.equals( + this.databaseSizeAfterSubsettingInKBs, + other.databaseSizeAfterSubsettingInKBs) + && java.util.Objects.equals(this.timeSubsettingStarted, other.timeSubsettingStarted) + && java.util.Objects.equals( + this.timeSubsettingFinished, other.timeSubsettingFinished) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.isRedoLoggingEnabled, other.isRedoLoggingEnabled) + && java.util.Objects.equals(this.isRefreshStatsEnabled, other.isRefreshStatsEnabled) + && java.util.Objects.equals(this.parallelDegree, other.parallelDegree) + && java.util.Objects.equals(this.recompile, other.recompile) + && java.util.Objects.equals(this.subsettingStatus, other.subsettingStatus) + && java.util.Objects.equals( + this.totalPreSubsettingScriptErrors, other.totalPreSubsettingScriptErrors) + && java.util.Objects.equals( + this.totalPostSubsettingScriptErrors, other.totalPostSubsettingScriptErrors) + && 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.subsettingWorkRequestId == null + ? 43 + : this.subsettingWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.maskingReportId == null ? 43 : this.maskingReportId.hashCode()); + result = + (result * PRIME) + + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.maskingWorkRequestId == null + ? 43 + : this.maskingWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.totalSubsettedSchemas == null + ? 43 + : this.totalSubsettedSchemas.hashCode()); + result = + (result * PRIME) + + (this.totalSubsettedObjects == null + ? 43 + : this.totalSubsettedObjects.hashCode()); + result = + (result * PRIME) + + (this.totalSubsettedRows == null + ? 43 + : this.totalSubsettedRows.hashCode()); + result = + (result * PRIME) + + (this.databaseSizeBeforeSubsettingInKBs == null + ? 43 + : this.databaseSizeBeforeSubsettingInKBs.hashCode()); + result = + (result * PRIME) + + (this.databaseSizeAfterSubsettingInKBs == null + ? 43 + : this.databaseSizeAfterSubsettingInKBs.hashCode()); + result = + (result * PRIME) + + (this.timeSubsettingStarted == null + ? 43 + : this.timeSubsettingStarted.hashCode()); + result = + (result * PRIME) + + (this.timeSubsettingFinished == null + ? 43 + : this.timeSubsettingFinished.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.isRedoLoggingEnabled == null + ? 43 + : this.isRedoLoggingEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRefreshStatsEnabled == null + ? 43 + : this.isRefreshStatsEnabled.hashCode()); + result = + (result * PRIME) + + (this.parallelDegree == null ? 43 : this.parallelDegree.hashCode()); + result = (result * PRIME) + (this.recompile == null ? 43 : this.recompile.hashCode()); + result = + (result * PRIME) + + (this.subsettingStatus == null ? 43 : this.subsettingStatus.hashCode()); + result = + (result * PRIME) + + (this.totalPreSubsettingScriptErrors == null + ? 43 + : this.totalPreSubsettingScriptErrors.hashCode()); + result = + (result * PRIME) + + (this.totalPostSubsettingScriptErrors == null + ? 43 + : this.totalPostSubsettingScriptErrors.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRule.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRule.java new file mode 100644 index 00000000000..cf93785e79c --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRule.java @@ -0,0 +1,560 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Defines a rule for subsetting data in specific tables or schemas, including scope and processing + * strategies
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingRule.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingRule + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "description", + "displayName", + "scope", + "subsetRuleEntry", + "ruleCombinationMode", + "relatedTablesPropagation", + "peerTablesAction" + }) + public SubsettingRule( + String key, + String description, + String displayName, + SubsetScope scope, + SubsetRuleEntry subsetRuleEntry, + RuleCombinationMode ruleCombinationMode, + RelatedTablesPropagation relatedTablesPropagation, + PeerTablesAction peerTablesAction) { + super(); + this.key = key; + this.description = description; + this.displayName = displayName; + this.scope = scope; + this.subsetRuleEntry = subsetRuleEntry; + this.ruleCombinationMode = ruleCombinationMode; + this.relatedTablesPropagation = relatedTablesPropagation; + this.peerTablesAction = peerTablesAction; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique key that identifies a subsetting rule. The key is numeric and unique within a + * subsetting policy + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The unique key that identifies a subsetting rule. The key is numeric and unique within a + * subsetting policy + * + * @param key the value to set + * @return this builder + */ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** The description of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the subset rule + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The display name of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the subset rule + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private SubsetScope scope; + + public Builder scope(SubsetScope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subsetRuleEntry") + private SubsetRuleEntry subsetRuleEntry; + + public Builder subsetRuleEntry(SubsetRuleEntry subsetRuleEntry) { + this.subsetRuleEntry = subsetRuleEntry; + this.__explicitlySet__.add("subsetRuleEntry"); + return this; + } + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule + * independently and adds matching rows to the result set. SERIAL applies this rule + * sequentially to filter rows selected by a compatible preceding rule. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ruleCombinationMode") + private RuleCombinationMode ruleCombinationMode; + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule + * independently and adds matching rows to the result set. SERIAL applies this rule + * sequentially to filter rows selected by a compatible preceding rule. + * + * @param ruleCombinationMode the value to set + * @return this builder + */ + public Builder ruleCombinationMode(RuleCombinationMode ruleCombinationMode) { + this.ruleCombinationMode = ruleCombinationMode; + this.__explicitlySet__.add("ruleCombinationMode"); + return this; + } + /** Strategy to be applied while propagating subsetting rule to related tables */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTablesPropagation") + private RelatedTablesPropagation relatedTablesPropagation; + + /** + * Strategy to be applied while propagating subsetting rule to related tables + * + * @param relatedTablesPropagation the value to set + * @return this builder + */ + public Builder relatedTablesPropagation(RelatedTablesPropagation relatedTablesPropagation) { + this.relatedTablesPropagation = relatedTablesPropagation; + this.__explicitlySet__.add("relatedTablesPropagation"); + return this; + } + /** Strategy to be applied while processing peer tables */ + @com.fasterxml.jackson.annotation.JsonProperty("peerTablesAction") + private PeerTablesAction peerTablesAction; + + /** + * Strategy to be applied while processing peer tables + * + * @param peerTablesAction the value to set + * @return this builder + */ + public Builder peerTablesAction(PeerTablesAction peerTablesAction) { + this.peerTablesAction = peerTablesAction; + this.__explicitlySet__.add("peerTablesAction"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingRule build() { + SubsettingRule model = + new SubsettingRule( + this.key, + this.description, + this.displayName, + this.scope, + this.subsetRuleEntry, + this.ruleCombinationMode, + this.relatedTablesPropagation, + this.peerTablesAction); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingRule model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("subsetRuleEntry")) { + this.subsetRuleEntry(model.getSubsetRuleEntry()); + } + if (model.wasPropertyExplicitlySet("ruleCombinationMode")) { + this.ruleCombinationMode(model.getRuleCombinationMode()); + } + if (model.wasPropertyExplicitlySet("relatedTablesPropagation")) { + this.relatedTablesPropagation(model.getRelatedTablesPropagation()); + } + if (model.wasPropertyExplicitlySet("peerTablesAction")) { + this.peerTablesAction(model.getPeerTablesAction()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The unique key that identifies a subsetting rule. The key is numeric and unique within a + * subsetting policy + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The unique key that identifies a subsetting rule. The key is numeric and unique within a + * subsetting policy + * + * @return the value + */ + public String getKey() { + return key; + } + + /** The description of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the subset rule + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The display name of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the subset rule + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final SubsetScope scope; + + public SubsetScope getScope() { + return scope; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subsetRuleEntry") + private final SubsetRuleEntry subsetRuleEntry; + + public SubsetRuleEntry getSubsetRuleEntry() { + return subsetRuleEntry; + } + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + */ + public enum RuleCombinationMode implements com.oracle.bmc.http.internal.BmcEnum { + Union("UNION"), + Serial("SERIAL"), + + /** + * 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(RuleCombinationMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuleCombinationMode v : RuleCombinationMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RuleCombinationMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuleCombinationMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RuleCombinationMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ruleCombinationMode") + private final RuleCombinationMode ruleCombinationMode; + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + * + * @return the value + */ + public RuleCombinationMode getRuleCombinationMode() { + return ruleCombinationMode; + } + + /** Strategy to be applied while propagating subsetting rule to related tables */ + public enum RelatedTablesPropagation implements com.oracle.bmc.http.internal.BmcEnum { + AncestorsAndDescendants("ANCESTORS_AND_DESCENDANTS"), + Ancestors("ANCESTORS"), + Descendants("DESCENDANTS"), + None("NONE"), + + /** + * 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(RelatedTablesPropagation.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RelatedTablesPropagation v : RelatedTablesPropagation.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RelatedTablesPropagation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RelatedTablesPropagation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RelatedTablesPropagation', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Strategy to be applied while propagating subsetting rule to related tables */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTablesPropagation") + private final RelatedTablesPropagation relatedTablesPropagation; + + /** + * Strategy to be applied while propagating subsetting rule to related tables + * + * @return the value + */ + public RelatedTablesPropagation getRelatedTablesPropagation() { + return relatedTablesPropagation; + } + + /** Strategy to be applied while processing peer tables */ + public enum PeerTablesAction implements com.oracle.bmc.http.internal.BmcEnum { + MinimumRows("MINIMUM_ROWS"), + Subset("SUBSET"), + MaximumRows("MAXIMUM_ROWS"), + + /** + * 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(PeerTablesAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PeerTablesAction v : PeerTablesAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PeerTablesAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PeerTablesAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PeerTablesAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Strategy to be applied while processing peer tables */ + @com.fasterxml.jackson.annotation.JsonProperty("peerTablesAction") + private final PeerTablesAction peerTablesAction; + + /** + * Strategy to be applied while processing peer tables + * + * @return the value + */ + public PeerTablesAction getPeerTablesAction() { + return peerTablesAction; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingRule("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", subsetRuleEntry=").append(String.valueOf(this.subsetRuleEntry)); + sb.append(", ruleCombinationMode=").append(String.valueOf(this.ruleCombinationMode)); + sb.append(", relatedTablesPropagation=") + .append(String.valueOf(this.relatedTablesPropagation)); + sb.append(", peerTablesAction=").append(String.valueOf(this.peerTablesAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingRule)) { + return false; + } + + SubsettingRule other = (SubsettingRule) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.subsetRuleEntry, other.subsetRuleEntry) + && java.util.Objects.equals(this.ruleCombinationMode, other.ruleCombinationMode) + && java.util.Objects.equals( + this.relatedTablesPropagation, other.relatedTablesPropagation) + && java.util.Objects.equals(this.peerTablesAction, other.peerTablesAction) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = + (result * PRIME) + + (this.subsetRuleEntry == null ? 43 : this.subsetRuleEntry.hashCode()); + result = + (result * PRIME) + + (this.ruleCombinationMode == null + ? 43 + : this.ruleCombinationMode.hashCode()); + result = + (result * PRIME) + + (this.relatedTablesPropagation == null + ? 43 + : this.relatedTablesPropagation.hashCode()); + result = + (result * PRIME) + + (this.peerTablesAction == null ? 43 : this.peerTablesAction.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleCollection.java new file mode 100644 index 00000000000..9dbee8b1433 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleCollection.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.datasafe.model; + +/** + * A collection of subsetting rule summary objects
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingRuleCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingRuleCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingRuleCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting rule summary objects */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting rule summary objects + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingRuleCollection build() { + SubsettingRuleCollection model = new SubsettingRuleCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingRuleCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting rule summary objects */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting rule summary objects + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingRuleCollection("); + 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 SubsettingRuleCollection)) { + return false; + } + + SubsettingRuleCollection other = (SubsettingRuleCollection) 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/SubsettingRuleProcessingChainObjectSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleProcessingChainObjectSummary.java new file mode 100644 index 00000000000..c89616d535b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleProcessingChainObjectSummary.java @@ -0,0 +1,655 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a subsetting schema relation processed while extracting rows for processing a + * subsetting rule.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingRuleProcessingChainObjectSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingRuleProcessingChainObjectSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "subsettingSchemaRelationKey", + "parentSchemaName", + "parentObjectName", + "parentColumns", + "childSchemaName", + "childObjectName", + "childColumns", + "propagationImpact", + "approximateRowCountBeforeSubsetting", + "estimatedRowCountAfterSubsetting", + "isEnabledForProcessing" + }) + public SubsettingRuleProcessingChainObjectSummary( + String key, + String subsettingSchemaRelationKey, + String parentSchemaName, + String parentObjectName, + java.util.List parentColumns, + String childSchemaName, + String childObjectName, + java.util.List childColumns, + PropagationImpact propagationImpact, + Long approximateRowCountBeforeSubsetting, + Long estimatedRowCountAfterSubsetting, + Boolean isEnabledForProcessing) { + super(); + this.key = key; + this.subsettingSchemaRelationKey = subsettingSchemaRelationKey; + this.parentSchemaName = parentSchemaName; + this.parentObjectName = parentObjectName; + this.parentColumns = parentColumns; + this.childSchemaName = childSchemaName; + this.childObjectName = childObjectName; + this.childColumns = childColumns; + this.propagationImpact = propagationImpact; + this.approximateRowCountBeforeSubsetting = approximateRowCountBeforeSubsetting; + this.estimatedRowCountAfterSubsetting = estimatedRowCountAfterSubsetting; + this.isEnabledForProcessing = isEnabledForProcessing; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique key that identifies a subsetting relation processed. The key is numeric and + * unique within a processing order + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The unique key that identifies a subsetting relation processed. The key is numeric and + * unique within a processing order + * + * @param key the value to set + * @return this builder + */ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** The unique key that identifies a subsetting relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingSchemaRelationKey") + private String subsettingSchemaRelationKey; + + /** + * The unique key that identifies a subsetting relation. + * + * @param subsettingSchemaRelationKey the value to set + * @return this builder + */ + public Builder subsettingSchemaRelationKey(String subsettingSchemaRelationKey) { + this.subsettingSchemaRelationKey = subsettingSchemaRelationKey; + this.__explicitlySet__.add("subsettingSchemaRelationKey"); + return this; + } + /** The database schema that contains the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentSchemaName") + private String parentSchemaName; + + /** + * The database schema that contains the parent subsetting table + * + * @param parentSchemaName the value to set + * @return this builder + */ + public Builder parentSchemaName(String parentSchemaName) { + this.parentSchemaName = parentSchemaName; + this.__explicitlySet__.add("parentSchemaName"); + return this; + } + /** The name of the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectName") + private String parentObjectName; + + /** + * The name of the parent subsetting table + * + * @param parentObjectName the value to set + * @return this builder + */ + public Builder parentObjectName(String parentObjectName) { + this.parentObjectName = parentObjectName; + this.__explicitlySet__.add("parentObjectName"); + return this; + } + /** Unique identifiers identifying the parents columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentColumns") + private java.util.List parentColumns; + + /** + * Unique identifiers identifying the parents columns in the relation. + * + * @param parentColumns the value to set + * @return this builder + */ + public Builder parentColumns(java.util.List parentColumns) { + this.parentColumns = parentColumns; + this.__explicitlySet__.add("parentColumns"); + return this; + } + /** The database schema that contains the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childSchemaName") + private String childSchemaName; + + /** + * The database schema that contains the child subsetting table + * + * @param childSchemaName the value to set + * @return this builder + */ + public Builder childSchemaName(String childSchemaName) { + this.childSchemaName = childSchemaName; + this.__explicitlySet__.add("childSchemaName"); + return this; + } + /** The name of the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectName") + private String childObjectName; + + /** + * The name of the child subsetting table + * + * @param childObjectName the value to set + * @return this builder + */ + public Builder childObjectName(String childObjectName) { + this.childObjectName = childObjectName; + this.__explicitlySet__.add("childObjectName"); + return this; + } + /** Unique identifiers identifying the child columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childColumns") + private java.util.List childColumns; + + /** + * Unique identifiers identifying the child columns in the relation. + * + * @param childColumns the value to set + * @return this builder + */ + public Builder childColumns(java.util.List childColumns) { + this.childColumns = childColumns; + this.__explicitlySet__.add("childColumns"); + return this; + } + /** The impact on the related table due to the processing of subsetting rule */ + @com.fasterxml.jackson.annotation.JsonProperty("propagationImpact") + private PropagationImpact propagationImpact; + + /** + * The impact on the related table due to the processing of subsetting rule + * + * @param propagationImpact the value to set + * @return this builder + */ + public Builder propagationImpact(PropagationImpact propagationImpact) { + this.propagationImpact = propagationImpact; + this.__explicitlySet__.add("propagationImpact"); + return this; + } + /** The approximate count of rows in the subsetting table before subsetting */ + @com.fasterxml.jackson.annotation.JsonProperty("approximateRowCountBeforeSubsetting") + private Long approximateRowCountBeforeSubsetting; + + /** + * The approximate count of rows in the subsetting table before subsetting + * + * @param approximateRowCountBeforeSubsetting the value to set + * @return this builder + */ + public Builder approximateRowCountBeforeSubsetting( + Long approximateRowCountBeforeSubsetting) { + this.approximateRowCountBeforeSubsetting = approximateRowCountBeforeSubsetting; + this.__explicitlySet__.add("approximateRowCountBeforeSubsetting"); + return this; + } + /** The estimated count of rows in the subsetting table after subsetting */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedRowCountAfterSubsetting") + private Long estimatedRowCountAfterSubsetting; + + /** + * The estimated count of rows in the subsetting table after subsetting + * + * @param estimatedRowCountAfterSubsetting the value to set + * @return this builder + */ + public Builder estimatedRowCountAfterSubsetting(Long estimatedRowCountAfterSubsetting) { + this.estimatedRowCountAfterSubsetting = estimatedRowCountAfterSubsetting; + this.__explicitlySet__.add("estimatedRowCountAfterSubsetting"); + return this; + } + /** Indicates if this object/edge is enabled for processing */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabledForProcessing") + private Boolean isEnabledForProcessing; + + /** + * Indicates if this object/edge is enabled for processing + * + * @param isEnabledForProcessing the value to set + * @return this builder + */ + public Builder isEnabledForProcessing(Boolean isEnabledForProcessing) { + this.isEnabledForProcessing = isEnabledForProcessing; + this.__explicitlySet__.add("isEnabledForProcessing"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingRuleProcessingChainObjectSummary build() { + SubsettingRuleProcessingChainObjectSummary model = + new SubsettingRuleProcessingChainObjectSummary( + this.key, + this.subsettingSchemaRelationKey, + this.parentSchemaName, + this.parentObjectName, + this.parentColumns, + this.childSchemaName, + this.childObjectName, + this.childColumns, + this.propagationImpact, + this.approximateRowCountBeforeSubsetting, + this.estimatedRowCountAfterSubsetting, + this.isEnabledForProcessing); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingRuleProcessingChainObjectSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("subsettingSchemaRelationKey")) { + this.subsettingSchemaRelationKey(model.getSubsettingSchemaRelationKey()); + } + if (model.wasPropertyExplicitlySet("parentSchemaName")) { + this.parentSchemaName(model.getParentSchemaName()); + } + if (model.wasPropertyExplicitlySet("parentObjectName")) { + this.parentObjectName(model.getParentObjectName()); + } + if (model.wasPropertyExplicitlySet("parentColumns")) { + this.parentColumns(model.getParentColumns()); + } + if (model.wasPropertyExplicitlySet("childSchemaName")) { + this.childSchemaName(model.getChildSchemaName()); + } + if (model.wasPropertyExplicitlySet("childObjectName")) { + this.childObjectName(model.getChildObjectName()); + } + if (model.wasPropertyExplicitlySet("childColumns")) { + this.childColumns(model.getChildColumns()); + } + if (model.wasPropertyExplicitlySet("propagationImpact")) { + this.propagationImpact(model.getPropagationImpact()); + } + if (model.wasPropertyExplicitlySet("approximateRowCountBeforeSubsetting")) { + this.approximateRowCountBeforeSubsetting( + model.getApproximateRowCountBeforeSubsetting()); + } + if (model.wasPropertyExplicitlySet("estimatedRowCountAfterSubsetting")) { + this.estimatedRowCountAfterSubsetting(model.getEstimatedRowCountAfterSubsetting()); + } + if (model.wasPropertyExplicitlySet("isEnabledForProcessing")) { + this.isEnabledForProcessing(model.getIsEnabledForProcessing()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The unique key that identifies a subsetting relation processed. The key is numeric and unique + * within a processing order + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The unique key that identifies a subsetting relation processed. The key is numeric and unique + * within a processing order + * + * @return the value + */ + public String getKey() { + return key; + } + + /** The unique key that identifies a subsetting relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("subsettingSchemaRelationKey") + private final String subsettingSchemaRelationKey; + + /** + * The unique key that identifies a subsetting relation. + * + * @return the value + */ + public String getSubsettingSchemaRelationKey() { + return subsettingSchemaRelationKey; + } + + /** The database schema that contains the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentSchemaName") + private final String parentSchemaName; + + /** + * The database schema that contains the parent subsetting table + * + * @return the value + */ + public String getParentSchemaName() { + return parentSchemaName; + } + + /** The name of the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectName") + private final String parentObjectName; + + /** + * The name of the parent subsetting table + * + * @return the value + */ + public String getParentObjectName() { + return parentObjectName; + } + + /** Unique identifiers identifying the parents columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentColumns") + private final java.util.List parentColumns; + + /** + * Unique identifiers identifying the parents columns in the relation. + * + * @return the value + */ + public java.util.List getParentColumns() { + return parentColumns; + } + + /** The database schema that contains the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childSchemaName") + private final String childSchemaName; + + /** + * The database schema that contains the child subsetting table + * + * @return the value + */ + public String getChildSchemaName() { + return childSchemaName; + } + + /** The name of the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectName") + private final String childObjectName; + + /** + * The name of the child subsetting table + * + * @return the value + */ + public String getChildObjectName() { + return childObjectName; + } + + /** Unique identifiers identifying the child columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childColumns") + private final java.util.List childColumns; + + /** + * Unique identifiers identifying the child columns in the relation. + * + * @return the value + */ + public java.util.List getChildColumns() { + return childColumns; + } + + /** The impact on the related table due to the processing of subsetting rule */ + public enum PropagationImpact implements com.oracle.bmc.http.internal.BmcEnum { + SubsetTable("SUBSET_TABLE"), + ParentChildSubset("PARENT_CHILD_SUBSET"), + ChildParentSubset("CHILD_PARENT_SUBSET"), + Truncate("TRUNCATE"), + Keep("KEEP"), + + /** + * 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(PropagationImpact.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PropagationImpact v : PropagationImpact.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PropagationImpact(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PropagationImpact create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PropagationImpact', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The impact on the related table due to the processing of subsetting rule */ + @com.fasterxml.jackson.annotation.JsonProperty("propagationImpact") + private final PropagationImpact propagationImpact; + + /** + * The impact on the related table due to the processing of subsetting rule + * + * @return the value + */ + public PropagationImpact getPropagationImpact() { + return propagationImpact; + } + + /** The approximate count of rows in the subsetting table before subsetting */ + @com.fasterxml.jackson.annotation.JsonProperty("approximateRowCountBeforeSubsetting") + private final Long approximateRowCountBeforeSubsetting; + + /** + * The approximate count of rows in the subsetting table before subsetting + * + * @return the value + */ + public Long getApproximateRowCountBeforeSubsetting() { + return approximateRowCountBeforeSubsetting; + } + + /** The estimated count of rows in the subsetting table after subsetting */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedRowCountAfterSubsetting") + private final Long estimatedRowCountAfterSubsetting; + + /** + * The estimated count of rows in the subsetting table after subsetting + * + * @return the value + */ + public Long getEstimatedRowCountAfterSubsetting() { + return estimatedRowCountAfterSubsetting; + } + + /** Indicates if this object/edge is enabled for processing */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabledForProcessing") + private final Boolean isEnabledForProcessing; + + /** + * Indicates if this object/edge is enabled for processing + * + * @return the value + */ + public Boolean getIsEnabledForProcessing() { + return isEnabledForProcessing; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingRuleProcessingChainObjectSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", subsettingSchemaRelationKey=") + .append(String.valueOf(this.subsettingSchemaRelationKey)); + sb.append(", parentSchemaName=").append(String.valueOf(this.parentSchemaName)); + sb.append(", parentObjectName=").append(String.valueOf(this.parentObjectName)); + sb.append(", parentColumns=").append(String.valueOf(this.parentColumns)); + sb.append(", childSchemaName=").append(String.valueOf(this.childSchemaName)); + sb.append(", childObjectName=").append(String.valueOf(this.childObjectName)); + sb.append(", childColumns=").append(String.valueOf(this.childColumns)); + sb.append(", propagationImpact=").append(String.valueOf(this.propagationImpact)); + sb.append(", approximateRowCountBeforeSubsetting=") + .append(String.valueOf(this.approximateRowCountBeforeSubsetting)); + sb.append(", estimatedRowCountAfterSubsetting=") + .append(String.valueOf(this.estimatedRowCountAfterSubsetting)); + sb.append(", isEnabledForProcessing=").append(String.valueOf(this.isEnabledForProcessing)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingRuleProcessingChainObjectSummary)) { + return false; + } + + SubsettingRuleProcessingChainObjectSummary other = + (SubsettingRuleProcessingChainObjectSummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals( + this.subsettingSchemaRelationKey, other.subsettingSchemaRelationKey) + && java.util.Objects.equals(this.parentSchemaName, other.parentSchemaName) + && java.util.Objects.equals(this.parentObjectName, other.parentObjectName) + && java.util.Objects.equals(this.parentColumns, other.parentColumns) + && java.util.Objects.equals(this.childSchemaName, other.childSchemaName) + && java.util.Objects.equals(this.childObjectName, other.childObjectName) + && java.util.Objects.equals(this.childColumns, other.childColumns) + && java.util.Objects.equals(this.propagationImpact, other.propagationImpact) + && java.util.Objects.equals( + this.approximateRowCountBeforeSubsetting, + other.approximateRowCountBeforeSubsetting) + && java.util.Objects.equals( + this.estimatedRowCountAfterSubsetting, + other.estimatedRowCountAfterSubsetting) + && java.util.Objects.equals( + this.isEnabledForProcessing, other.isEnabledForProcessing) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = + (result * PRIME) + + (this.subsettingSchemaRelationKey == null + ? 43 + : this.subsettingSchemaRelationKey.hashCode()); + result = + (result * PRIME) + + (this.parentSchemaName == null ? 43 : this.parentSchemaName.hashCode()); + result = + (result * PRIME) + + (this.parentObjectName == null ? 43 : this.parentObjectName.hashCode()); + result = + (result * PRIME) + + (this.parentColumns == null ? 43 : this.parentColumns.hashCode()); + result = + (result * PRIME) + + (this.childSchemaName == null ? 43 : this.childSchemaName.hashCode()); + result = + (result * PRIME) + + (this.childObjectName == null ? 43 : this.childObjectName.hashCode()); + result = (result * PRIME) + (this.childColumns == null ? 43 : this.childColumns.hashCode()); + result = + (result * PRIME) + + (this.propagationImpact == null ? 43 : this.propagationImpact.hashCode()); + result = + (result * PRIME) + + (this.approximateRowCountBeforeSubsetting == null + ? 43 + : this.approximateRowCountBeforeSubsetting.hashCode()); + result = + (result * PRIME) + + (this.estimatedRowCountAfterSubsetting == null + ? 43 + : this.estimatedRowCountAfterSubsetting.hashCode()); + result = + (result * PRIME) + + (this.isEnabledForProcessing == null + ? 43 + : this.isEnabledForProcessing.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleProcessingChainObjectsCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleProcessingChainObjectsCollection.java new file mode 100644 index 00000000000..c74f5196bc5 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleProcessingChainObjectsCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * A collection of subsetting processing chain summary objects.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingRuleProcessingChainObjectsCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingRuleProcessingChainObjectsCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingRuleProcessingChainObjectsCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting processing chain summary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting processing chain summary objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingRuleProcessingChainObjectsCollection build() { + SubsettingRuleProcessingChainObjectsCollection model = + new SubsettingRuleProcessingChainObjectsCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingRuleProcessingChainObjectsCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting processing chain summary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting processing chain summary objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingRuleProcessingChainObjectsCollection("); + 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 SubsettingRuleProcessingChainObjectsCollection)) { + return false; + } + + SubsettingRuleProcessingChainObjectsCollection other = + (SubsettingRuleProcessingChainObjectsCollection) 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/SubsettingRuleSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleSummary.java new file mode 100644 index 00000000000..f73bd210c41 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingRuleSummary.java @@ -0,0 +1,589 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Provides summary information for a subsetting rule, which defines how specific tables or schemas + * are subsetted
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = SubsettingRuleSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingRuleSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "displayName", + "description", + "scope", + "subsetRuleEntry", + "ruleCombinationMode", + "relatedTablesPropagation", + "peerTablesAction" + }) + public SubsettingRuleSummary( + String key, + String displayName, + String description, + SubsetScope scope, + SubsetRuleEntry subsetRuleEntry, + RuleCombinationMode ruleCombinationMode, + RelatedTablesPropagation relatedTablesPropagation, + PeerTablesAction peerTablesAction) { + super(); + this.key = key; + this.displayName = displayName; + this.description = description; + this.scope = scope; + this.subsetRuleEntry = subsetRuleEntry; + this.ruleCombinationMode = ruleCombinationMode; + this.relatedTablesPropagation = relatedTablesPropagation; + this.peerTablesAction = peerTablesAction; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique key that identifies a subsetting rule. The key is numeric and unique within a + * subsetting policy + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The unique key that identifies a subsetting rule. The key is numeric and unique within a + * subsetting policy + * + * @param key the value to set + * @return this builder + */ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** The display name of the subsetting rule */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the subsetting rule + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The description of the subsetting rule */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the subsetting rule + * + * @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("scope") + private SubsetScope scope; + + public Builder scope(SubsetScope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subsetRuleEntry") + private SubsetRuleEntry subsetRuleEntry; + + public Builder subsetRuleEntry(SubsetRuleEntry subsetRuleEntry) { + this.subsetRuleEntry = subsetRuleEntry; + this.__explicitlySet__.add("subsetRuleEntry"); + return this; + } + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule + * independently and adds matching rows to the result set. SERIAL applies this rule + * sequentially to filter rows selected by a compatible preceding rule. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ruleCombinationMode") + private RuleCombinationMode ruleCombinationMode; + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule + * independently and adds matching rows to the result set. SERIAL applies this rule + * sequentially to filter rows selected by a compatible preceding rule. + * + * @param ruleCombinationMode the value to set + * @return this builder + */ + public Builder ruleCombinationMode(RuleCombinationMode ruleCombinationMode) { + this.ruleCombinationMode = ruleCombinationMode; + this.__explicitlySet__.add("ruleCombinationMode"); + return this; + } + /** Strategy to be applied while propagating subsetting rule to related tables */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTablesPropagation") + private RelatedTablesPropagation relatedTablesPropagation; + + /** + * Strategy to be applied while propagating subsetting rule to related tables + * + * @param relatedTablesPropagation the value to set + * @return this builder + */ + public Builder relatedTablesPropagation(RelatedTablesPropagation relatedTablesPropagation) { + this.relatedTablesPropagation = relatedTablesPropagation; + this.__explicitlySet__.add("relatedTablesPropagation"); + return this; + } + /** + * Strategy to be applied while processing peer tables. Peer tables are the tables related + * to the subset table but not on the ancestor or descendant paths. MINIMUM_ROWS option will + * retain minimum number of rows in peer tables which are required to maintain referential + * integrity SUBSET option will propagate the subsetting rule to the peer tables + * MAXIMUM_ROWS option will retain maximum number of rows in peer tables without breaking + * the referential integrity + */ + @com.fasterxml.jackson.annotation.JsonProperty("peerTablesAction") + private PeerTablesAction peerTablesAction; + + /** + * Strategy to be applied while processing peer tables. Peer tables are the tables related + * to the subset table but not on the ancestor or descendant paths. MINIMUM_ROWS option will + * retain minimum number of rows in peer tables which are required to maintain referential + * integrity SUBSET option will propagate the subsetting rule to the peer tables + * MAXIMUM_ROWS option will retain maximum number of rows in peer tables without breaking + * the referential integrity + * + * @param peerTablesAction the value to set + * @return this builder + */ + public Builder peerTablesAction(PeerTablesAction peerTablesAction) { + this.peerTablesAction = peerTablesAction; + this.__explicitlySet__.add("peerTablesAction"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingRuleSummary build() { + SubsettingRuleSummary model = + new SubsettingRuleSummary( + this.key, + this.displayName, + this.description, + this.scope, + this.subsetRuleEntry, + this.ruleCombinationMode, + this.relatedTablesPropagation, + this.peerTablesAction); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingRuleSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("subsetRuleEntry")) { + this.subsetRuleEntry(model.getSubsetRuleEntry()); + } + if (model.wasPropertyExplicitlySet("ruleCombinationMode")) { + this.ruleCombinationMode(model.getRuleCombinationMode()); + } + if (model.wasPropertyExplicitlySet("relatedTablesPropagation")) { + this.relatedTablesPropagation(model.getRelatedTablesPropagation()); + } + if (model.wasPropertyExplicitlySet("peerTablesAction")) { + this.peerTablesAction(model.getPeerTablesAction()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The unique key that identifies a subsetting rule. The key is numeric and unique within a + * subsetting policy + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The unique key that identifies a subsetting rule. The key is numeric and unique within a + * subsetting policy + * + * @return the value + */ + public String getKey() { + return key; + } + + /** The display name of the subsetting rule */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the subsetting rule + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description of the subsetting rule */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the subsetting rule + * + * @return the value + */ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final SubsetScope scope; + + public SubsetScope getScope() { + return scope; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subsetRuleEntry") + private final SubsetRuleEntry subsetRuleEntry; + + public SubsetRuleEntry getSubsetRuleEntry() { + return subsetRuleEntry; + } + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + */ + public enum RuleCombinationMode implements com.oracle.bmc.http.internal.BmcEnum { + Union("UNION"), + Serial("SERIAL"), + + /** + * 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(RuleCombinationMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuleCombinationMode v : RuleCombinationMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RuleCombinationMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuleCombinationMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RuleCombinationMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ruleCombinationMode") + private final RuleCombinationMode ruleCombinationMode; + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + * + * @return the value + */ + public RuleCombinationMode getRuleCombinationMode() { + return ruleCombinationMode; + } + + /** Strategy to be applied while propagating subsetting rule to related tables */ + public enum RelatedTablesPropagation implements com.oracle.bmc.http.internal.BmcEnum { + AncestorsAndDescendants("ANCESTORS_AND_DESCENDANTS"), + Ancestors("ANCESTORS"), + Descendants("DESCENDANTS"), + None("NONE"), + + /** + * 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(RelatedTablesPropagation.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RelatedTablesPropagation v : RelatedTablesPropagation.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RelatedTablesPropagation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RelatedTablesPropagation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RelatedTablesPropagation', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Strategy to be applied while propagating subsetting rule to related tables */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTablesPropagation") + private final RelatedTablesPropagation relatedTablesPropagation; + + /** + * Strategy to be applied while propagating subsetting rule to related tables + * + * @return the value + */ + public RelatedTablesPropagation getRelatedTablesPropagation() { + return relatedTablesPropagation; + } + + /** + * Strategy to be applied while processing peer tables. Peer tables are the tables related to + * the subset table but not on the ancestor or descendant paths. MINIMUM_ROWS option will retain + * minimum number of rows in peer tables which are required to maintain referential integrity + * SUBSET option will propagate the subsetting rule to the peer tables MAXIMUM_ROWS option will + * retain maximum number of rows in peer tables without breaking the referential integrity + */ + public enum PeerTablesAction implements com.oracle.bmc.http.internal.BmcEnum { + MinimumRows("MINIMUM_ROWS"), + Subset("SUBSET"), + MaximumRows("MAXIMUM_ROWS"), + + /** + * 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(PeerTablesAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PeerTablesAction v : PeerTablesAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PeerTablesAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PeerTablesAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PeerTablesAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Strategy to be applied while processing peer tables. Peer tables are the tables related to + * the subset table but not on the ancestor or descendant paths. MINIMUM_ROWS option will retain + * minimum number of rows in peer tables which are required to maintain referential integrity + * SUBSET option will propagate the subsetting rule to the peer tables MAXIMUM_ROWS option will + * retain maximum number of rows in peer tables without breaking the referential integrity + */ + @com.fasterxml.jackson.annotation.JsonProperty("peerTablesAction") + private final PeerTablesAction peerTablesAction; + + /** + * Strategy to be applied while processing peer tables. Peer tables are the tables related to + * the subset table but not on the ancestor or descendant paths. MINIMUM_ROWS option will retain + * minimum number of rows in peer tables which are required to maintain referential integrity + * SUBSET option will propagate the subsetting rule to the peer tables MAXIMUM_ROWS option will + * retain maximum number of rows in peer tables without breaking the referential integrity + * + * @return the value + */ + public PeerTablesAction getPeerTablesAction() { + return peerTablesAction; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingRuleSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", subsetRuleEntry=").append(String.valueOf(this.subsetRuleEntry)); + sb.append(", ruleCombinationMode=").append(String.valueOf(this.ruleCombinationMode)); + sb.append(", relatedTablesPropagation=") + .append(String.valueOf(this.relatedTablesPropagation)); + sb.append(", peerTablesAction=").append(String.valueOf(this.peerTablesAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingRuleSummary)) { + return false; + } + + SubsettingRuleSummary other = (SubsettingRuleSummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.subsetRuleEntry, other.subsetRuleEntry) + && java.util.Objects.equals(this.ruleCombinationMode, other.ruleCombinationMode) + && java.util.Objects.equals( + this.relatedTablesPropagation, other.relatedTablesPropagation) + && java.util.Objects.equals(this.peerTablesAction, other.peerTablesAction) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.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.scope == null ? 43 : this.scope.hashCode()); + result = + (result * PRIME) + + (this.subsetRuleEntry == null ? 43 : this.subsetRuleEntry.hashCode()); + result = + (result * PRIME) + + (this.ruleCombinationMode == null + ? 43 + : this.ruleCombinationMode.hashCode()); + result = + (result * PRIME) + + (this.relatedTablesPropagation == null + ? 43 + : this.relatedTablesPropagation.hashCode()); + result = + (result * PRIME) + + (this.peerTablesAction == null ? 43 : this.peerTablesAction.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaCollection.java new file mode 100644 index 00000000000..9d69609e190 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaCollection.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.datasafe.model; + +/** + * A collection of subsetting schema summary objects.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingSchemaCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingSchemaCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingSchemaCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting schema summary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting schema summary objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingSchemaCollection build() { + SubsettingSchemaCollection model = new SubsettingSchemaCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingSchemaCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting schema summary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting schema summary objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingSchemaCollection("); + 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 SubsettingSchemaCollection)) { + return false; + } + + SubsettingSchemaCollection other = (SubsettingSchemaCollection) 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/SubsettingSchemaObjectCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaObjectCollection.java new file mode 100644 index 00000000000..984febd68da --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaObjectCollection.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.datasafe.model; + +/** + * A collection of subsetting table summary objects
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingSchemaObjectCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingSchemaObjectCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingSchemaObjectCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting table summary objects */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting table summary objects + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingSchemaObjectCollection build() { + SubsettingSchemaObjectCollection model = + new SubsettingSchemaObjectCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingSchemaObjectCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting table summary objects */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting table summary objects + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingSchemaObjectCollection("); + 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 SubsettingSchemaObjectCollection)) { + return false; + } + + SubsettingSchemaObjectCollection other = (SubsettingSchemaObjectCollection) 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/SubsettingSchemaObjectSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaObjectSummary.java new file mode 100644 index 00000000000..7e8b633f8fd --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaObjectSummary.java @@ -0,0 +1,439 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a table included in the schema for a subsetting policy
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingSchemaObjectSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingSchemaObjectSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "schemaName", + "objectName", + "objectType", + "initialRowCount", + "isStatsStale", + "timeCreated", + "timeUpdated" + }) + public SubsettingSchemaObjectSummary( + String key, + String schemaName, + String objectName, + ObjectType objectType, + Long initialRowCount, + Boolean isStatsStale, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.schemaName = schemaName; + this.objectName = objectName; + this.objectType = objectType; + this.initialRowCount = initialRowCount; + this.isStatsStale = isStatsStale; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique key that identifies a subsetting table. The key is numeric and unique within a + * subsetting policy + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The unique key that identifies a subsetting table. The key is numeric and unique within a + * subsetting policy + * + * @param key the value to set + * @return this builder + */ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** The database schema that contains the subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + /** + * The database schema that contains the subsetting table + * + * @param schemaName the value to set + * @return this builder + */ + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + /** The name of the database object */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * The name of the database object + * + * @param objectName the value to set + * @return this builder + */ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + /** The type of the database object that contains the subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private ObjectType objectType; + + /** + * The type of the database object that contains the subsetting table + * + * @param objectType the value to set + * @return this builder + */ + public Builder objectType(ObjectType objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + /** The initial number of rows in this object/table */ + @com.fasterxml.jackson.annotation.JsonProperty("initialRowCount") + private Long initialRowCount; + + /** + * The initial number of rows in this object/table + * + * @param initialRowCount the value to set + * @return this builder + */ + public Builder initialRowCount(Long initialRowCount) { + this.initialRowCount = initialRowCount; + this.__explicitlySet__.add("initialRowCount"); + return this; + } + /** + * Indicates if the table stats are stale. This can be used to judge the accuracy of + * initialRowCount + */ + @com.fasterxml.jackson.annotation.JsonProperty("isStatsStale") + private Boolean isStatsStale; + + /** + * Indicates if the table stats are stale. This can be used to judge the accuracy of + * initialRowCount + * + * @param isStatsStale the value to set + * @return this builder + */ + public Builder isStatsStale(Boolean isStatsStale) { + this.isStatsStale = isStatsStale; + this.__explicitlySet__.add("isStatsStale"); + return this; + } + /** + * The date and time the subsetting table was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the subsetting table was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @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 subsetting table was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the subsetting table was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingSchemaObjectSummary build() { + SubsettingSchemaObjectSummary model = + new SubsettingSchemaObjectSummary( + this.key, + this.schemaName, + this.objectName, + this.objectType, + this.initialRowCount, + this.isStatsStale, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingSchemaObjectSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + if (model.wasPropertyExplicitlySet("initialRowCount")) { + this.initialRowCount(model.getInitialRowCount()); + } + if (model.wasPropertyExplicitlySet("isStatsStale")) { + this.isStatsStale(model.getIsStatsStale()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The unique key that identifies a subsetting table. The key is numeric and unique within a + * subsetting policy + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The unique key that identifies a subsetting table. The key is numeric and unique within a + * subsetting policy + * + * @return the value + */ + public String getKey() { + return key; + } + + /** The database schema that contains the subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private final String schemaName; + + /** + * The database schema that contains the subsetting table + * + * @return the value + */ + public String getSchemaName() { + return schemaName; + } + + /** The name of the database object */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * The name of the database object + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + /** The type of the database object that contains the subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final ObjectType objectType; + + /** + * The type of the database object that contains the subsetting table + * + * @return the value + */ + public ObjectType getObjectType() { + return objectType; + } + + /** The initial number of rows in this object/table */ + @com.fasterxml.jackson.annotation.JsonProperty("initialRowCount") + private final Long initialRowCount; + + /** + * The initial number of rows in this object/table + * + * @return the value + */ + public Long getInitialRowCount() { + return initialRowCount; + } + + /** + * Indicates if the table stats are stale. This can be used to judge the accuracy of + * initialRowCount + */ + @com.fasterxml.jackson.annotation.JsonProperty("isStatsStale") + private final Boolean isStatsStale; + + /** + * Indicates if the table stats are stale. This can be used to judge the accuracy of + * initialRowCount + * + * @return the value + */ + public Boolean getIsStatsStale() { + return isStatsStale; + } + + /** + * The date and time the subsetting table was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the subsetting table was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the subsetting table was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the subsetting table was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingSchemaObjectSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", schemaName=").append(String.valueOf(this.schemaName)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(", initialRowCount=").append(String.valueOf(this.initialRowCount)); + sb.append(", isStatsStale=").append(String.valueOf(this.isStatsStale)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingSchemaObjectSummary)) { + return false; + } + + SubsettingSchemaObjectSummary other = (SubsettingSchemaObjectSummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals(this.initialRowCount, other.initialRowCount) + && java.util.Objects.equals(this.isStatsStale, other.isStatsStale) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = + (result * PRIME) + + (this.initialRowCount == null ? 43 : this.initialRowCount.hashCode()); + result = (result * PRIME) + (this.isStatsStale == null ? 43 : this.isStatsStale.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelation.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelation.java new file mode 100644 index 00000000000..8a79b816d42 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelation.java @@ -0,0 +1,663 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a relationship between tables in the subsetting for a subsetting policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingSchemaRelation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingSchemaRelation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "parentObjectKey", + "parentSchemaName", + "parentObjectName", + "parentColumns", + "childObjectKey", + "childSchemaName", + "childObjectName", + "childColumns", + "relationType", + "timeCreated", + "timeUpdated" + }) + public SubsettingSchemaRelation( + String key, + String parentObjectKey, + String parentSchemaName, + String parentObjectName, + java.util.List parentColumns, + String childObjectKey, + String childSchemaName, + String childObjectName, + java.util.List childColumns, + RelationType relationType, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.parentObjectKey = parentObjectKey; + this.parentSchemaName = parentSchemaName; + this.parentObjectName = parentObjectName; + this.parentColumns = parentColumns; + this.childObjectKey = childObjectKey; + this.childSchemaName = childSchemaName; + this.childObjectName = childObjectName; + this.childColumns = childColumns; + this.relationType = relationType; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique key that identifies a relation between subsetting tables. The key is numeric + * and unique within a subsetting policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The unique key that identifies a relation between subsetting tables. The key is numeric + * and unique within a subsetting policy. + * + * @param key the value to set + * @return this builder + */ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** The key that identifies the parent subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectKey") + private String parentObjectKey; + + /** + * The key that identifies the parent subsetting table in this relation. + * + * @param parentObjectKey the value to set + * @return this builder + */ + public Builder parentObjectKey(String parentObjectKey) { + this.parentObjectKey = parentObjectKey; + this.__explicitlySet__.add("parentObjectKey"); + return this; + } + /** The database schema that contains the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentSchemaName") + private String parentSchemaName; + + /** + * The database schema that contains the parent subsetting table + * + * @param parentSchemaName the value to set + * @return this builder + */ + public Builder parentSchemaName(String parentSchemaName) { + this.parentSchemaName = parentSchemaName; + this.__explicitlySet__.add("parentSchemaName"); + return this; + } + /** The name of the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectName") + private String parentObjectName; + + /** + * The name of the parent subsetting table + * + * @param parentObjectName the value to set + * @return this builder + */ + public Builder parentObjectName(String parentObjectName) { + this.parentObjectName = parentObjectName; + this.__explicitlySet__.add("parentObjectName"); + return this; + } + /** Unique identifiers identifying the parents columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentColumns") + private java.util.List parentColumns; + + /** + * Unique identifiers identifying the parents columns in the relation. + * + * @param parentColumns the value to set + * @return this builder + */ + public Builder parentColumns(java.util.List parentColumns) { + this.parentColumns = parentColumns; + this.__explicitlySet__.add("parentColumns"); + return this; + } + /** The key that identifies the child subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectKey") + private String childObjectKey; + + /** + * The key that identifies the child subsetting table in this relation. + * + * @param childObjectKey the value to set + * @return this builder + */ + public Builder childObjectKey(String childObjectKey) { + this.childObjectKey = childObjectKey; + this.__explicitlySet__.add("childObjectKey"); + return this; + } + /** The database schema that contains the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childSchemaName") + private String childSchemaName; + + /** + * The database schema that contains the child subsetting table + * + * @param childSchemaName the value to set + * @return this builder + */ + public Builder childSchemaName(String childSchemaName) { + this.childSchemaName = childSchemaName; + this.__explicitlySet__.add("childSchemaName"); + return this; + } + /** The name of the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectName") + private String childObjectName; + + /** + * The name of the child subsetting table + * + * @param childObjectName the value to set + * @return this builder + */ + public Builder childObjectName(String childObjectName) { + this.childObjectName = childObjectName; + this.__explicitlySet__.add("childObjectName"); + return this; + } + /** Unique identifiers identifying the child columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childColumns") + private java.util.List childColumns; + + /** + * Unique identifiers identifying the child columns in the relation. + * + * @param childColumns the value to set + * @return this builder + */ + public Builder childColumns(java.util.List childColumns) { + this.childColumns = childColumns; + this.__explicitlySet__.add("childColumns"); + return this; + } + /** + * The type of referential relationship the column has with its parent. NONE indicates that + * the sensitive column does not have a parent. DB_DEFINED indicates that the relationship + * is defined in the database dictionary. APP_DEFINED indicates that the relationship is + * defined at the application level and not in the database dictionary. + */ + @com.fasterxml.jackson.annotation.JsonProperty("relationType") + private RelationType relationType; + + /** + * The type of referential relationship the column has with its parent. NONE indicates that + * the sensitive column does not have a parent. DB_DEFINED indicates that the relationship + * is defined in the database dictionary. APP_DEFINED indicates that the relationship is + * defined at the application level and not in the database dictionary. + * + * @param relationType the value to set + * @return this builder + */ + public Builder relationType(RelationType relationType) { + this.relationType = relationType; + this.__explicitlySet__.add("relationType"); + return this; + } + /** + * The date and time the subsetting relation was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the subsetting relation was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @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 subsetting relation was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the subsetting relation was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingSchemaRelation build() { + SubsettingSchemaRelation model = + new SubsettingSchemaRelation( + this.key, + this.parentObjectKey, + this.parentSchemaName, + this.parentObjectName, + this.parentColumns, + this.childObjectKey, + this.childSchemaName, + this.childObjectName, + this.childColumns, + this.relationType, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingSchemaRelation model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("parentObjectKey")) { + this.parentObjectKey(model.getParentObjectKey()); + } + if (model.wasPropertyExplicitlySet("parentSchemaName")) { + this.parentSchemaName(model.getParentSchemaName()); + } + if (model.wasPropertyExplicitlySet("parentObjectName")) { + this.parentObjectName(model.getParentObjectName()); + } + if (model.wasPropertyExplicitlySet("parentColumns")) { + this.parentColumns(model.getParentColumns()); + } + if (model.wasPropertyExplicitlySet("childObjectKey")) { + this.childObjectKey(model.getChildObjectKey()); + } + if (model.wasPropertyExplicitlySet("childSchemaName")) { + this.childSchemaName(model.getChildSchemaName()); + } + if (model.wasPropertyExplicitlySet("childObjectName")) { + this.childObjectName(model.getChildObjectName()); + } + if (model.wasPropertyExplicitlySet("childColumns")) { + this.childColumns(model.getChildColumns()); + } + if (model.wasPropertyExplicitlySet("relationType")) { + this.relationType(model.getRelationType()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The unique key that identifies a relation between subsetting tables. The key is numeric and + * unique within a subsetting policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The unique key that identifies a relation between subsetting tables. The key is numeric and + * unique within a subsetting policy. + * + * @return the value + */ + public String getKey() { + return key; + } + + /** The key that identifies the parent subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectKey") + private final String parentObjectKey; + + /** + * The key that identifies the parent subsetting table in this relation. + * + * @return the value + */ + public String getParentObjectKey() { + return parentObjectKey; + } + + /** The database schema that contains the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentSchemaName") + private final String parentSchemaName; + + /** + * The database schema that contains the parent subsetting table + * + * @return the value + */ + public String getParentSchemaName() { + return parentSchemaName; + } + + /** The name of the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectName") + private final String parentObjectName; + + /** + * The name of the parent subsetting table + * + * @return the value + */ + public String getParentObjectName() { + return parentObjectName; + } + + /** Unique identifiers identifying the parents columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentColumns") + private final java.util.List parentColumns; + + /** + * Unique identifiers identifying the parents columns in the relation. + * + * @return the value + */ + public java.util.List getParentColumns() { + return parentColumns; + } + + /** The key that identifies the child subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectKey") + private final String childObjectKey; + + /** + * The key that identifies the child subsetting table in this relation. + * + * @return the value + */ + public String getChildObjectKey() { + return childObjectKey; + } + + /** The database schema that contains the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childSchemaName") + private final String childSchemaName; + + /** + * The database schema that contains the child subsetting table + * + * @return the value + */ + public String getChildSchemaName() { + return childSchemaName; + } + + /** The name of the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectName") + private final String childObjectName; + + /** + * The name of the child subsetting table + * + * @return the value + */ + public String getChildObjectName() { + return childObjectName; + } + + /** Unique identifiers identifying the child columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childColumns") + private final java.util.List childColumns; + + /** + * Unique identifiers identifying the child columns in the relation. + * + * @return the value + */ + public java.util.List getChildColumns() { + return childColumns; + } + + /** + * The type of referential relationship the column has with its parent. NONE indicates that the + * sensitive column does not have a parent. DB_DEFINED indicates that the relationship is + * defined in the database dictionary. APP_DEFINED indicates that the relationship is defined at + * the application level and not in the database dictionary. + */ + public enum RelationType implements com.oracle.bmc.http.internal.BmcEnum { + None("NONE"), + AppDefined("APP_DEFINED"), + DbDefined("DB_DEFINED"), + + /** + * 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(RelationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RelationType v : RelationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RelationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RelationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RelationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of referential relationship the column has with its parent. NONE indicates that the + * sensitive column does not have a parent. DB_DEFINED indicates that the relationship is + * defined in the database dictionary. APP_DEFINED indicates that the relationship is defined at + * the application level and not in the database dictionary. + */ + @com.fasterxml.jackson.annotation.JsonProperty("relationType") + private final RelationType relationType; + + /** + * The type of referential relationship the column has with its parent. NONE indicates that the + * sensitive column does not have a parent. DB_DEFINED indicates that the relationship is + * defined in the database dictionary. APP_DEFINED indicates that the relationship is defined at + * the application level and not in the database dictionary. + * + * @return the value + */ + public RelationType getRelationType() { + return relationType; + } + + /** + * The date and time the subsetting relation was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the subsetting relation was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the subsetting relation was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the subsetting relation was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingSchemaRelation("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", parentObjectKey=").append(String.valueOf(this.parentObjectKey)); + sb.append(", parentSchemaName=").append(String.valueOf(this.parentSchemaName)); + sb.append(", parentObjectName=").append(String.valueOf(this.parentObjectName)); + sb.append(", parentColumns=").append(String.valueOf(this.parentColumns)); + sb.append(", childObjectKey=").append(String.valueOf(this.childObjectKey)); + sb.append(", childSchemaName=").append(String.valueOf(this.childSchemaName)); + sb.append(", childObjectName=").append(String.valueOf(this.childObjectName)); + sb.append(", childColumns=").append(String.valueOf(this.childColumns)); + sb.append(", relationType=").append(String.valueOf(this.relationType)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingSchemaRelation)) { + return false; + } + + SubsettingSchemaRelation other = (SubsettingSchemaRelation) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.parentObjectKey, other.parentObjectKey) + && java.util.Objects.equals(this.parentSchemaName, other.parentSchemaName) + && java.util.Objects.equals(this.parentObjectName, other.parentObjectName) + && java.util.Objects.equals(this.parentColumns, other.parentColumns) + && java.util.Objects.equals(this.childObjectKey, other.childObjectKey) + && java.util.Objects.equals(this.childSchemaName, other.childSchemaName) + && java.util.Objects.equals(this.childObjectName, other.childObjectName) + && java.util.Objects.equals(this.childColumns, other.childColumns) + && java.util.Objects.equals(this.relationType, other.relationType) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = + (result * PRIME) + + (this.parentObjectKey == null ? 43 : this.parentObjectKey.hashCode()); + result = + (result * PRIME) + + (this.parentSchemaName == null ? 43 : this.parentSchemaName.hashCode()); + result = + (result * PRIME) + + (this.parentObjectName == null ? 43 : this.parentObjectName.hashCode()); + result = + (result * PRIME) + + (this.parentColumns == null ? 43 : this.parentColumns.hashCode()); + result = + (result * PRIME) + + (this.childObjectKey == null ? 43 : this.childObjectKey.hashCode()); + result = + (result * PRIME) + + (this.childSchemaName == null ? 43 : this.childSchemaName.hashCode()); + result = + (result * PRIME) + + (this.childObjectName == null ? 43 : this.childObjectName.hashCode()); + result = (result * PRIME) + (this.childColumns == null ? 43 : this.childColumns.hashCode()); + result = (result * PRIME) + (this.relationType == null ? 43 : this.relationType.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelationCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelationCollection.java new file mode 100644 index 00000000000..02b54c19c0b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelationCollection.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; + +/** + * A collection of subsetting schema summary objects.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingSchemaRelationCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingSchemaRelationCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SubsettingSchemaRelationCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of subsetting schema summary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of subsetting schema summary objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingSchemaRelationCollection build() { + SubsettingSchemaRelationCollection model = + new SubsettingSchemaRelationCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingSchemaRelationCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of subsetting schema summary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of subsetting schema summary objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingSchemaRelationCollection("); + 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 SubsettingSchemaRelationCollection)) { + return false; + } + + SubsettingSchemaRelationCollection other = (SubsettingSchemaRelationCollection) 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/SubsettingSchemaRelationSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelationSummary.java new file mode 100644 index 00000000000..933e02b7a15 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaRelationSummary.java @@ -0,0 +1,663 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a relationship between tables in the subsetting for a subsetting policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingSchemaRelationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingSchemaRelationSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "key", + "parentObjectKey", + "parentSchemaName", + "parentObjectName", + "parentColumns", + "childObjectKey", + "childSchemaName", + "childObjectName", + "childColumns", + "relationType", + "timeCreated", + "timeUpdated" + }) + public SubsettingSchemaRelationSummary( + String key, + String parentObjectKey, + String parentSchemaName, + String parentObjectName, + java.util.List parentColumns, + String childObjectKey, + String childSchemaName, + String childObjectName, + java.util.List childColumns, + RelationType relationType, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.key = key; + this.parentObjectKey = parentObjectKey; + this.parentSchemaName = parentSchemaName; + this.parentObjectName = parentObjectName; + this.parentColumns = parentColumns; + this.childObjectKey = childObjectKey; + this.childSchemaName = childSchemaName; + this.childObjectName = childObjectName; + this.childColumns = childColumns; + this.relationType = relationType; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique key that identifies a relation between subsetting tables. The key is numeric + * and unique within a subsetting policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The unique key that identifies a relation between subsetting tables. The key is numeric + * and unique within a subsetting policy. + * + * @param key the value to set + * @return this builder + */ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** The key that identifies the parent subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectKey") + private String parentObjectKey; + + /** + * The key that identifies the parent subsetting table in this relation. + * + * @param parentObjectKey the value to set + * @return this builder + */ + public Builder parentObjectKey(String parentObjectKey) { + this.parentObjectKey = parentObjectKey; + this.__explicitlySet__.add("parentObjectKey"); + return this; + } + /** The database schema that contains the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentSchemaName") + private String parentSchemaName; + + /** + * The database schema that contains the parent subsetting table + * + * @param parentSchemaName the value to set + * @return this builder + */ + public Builder parentSchemaName(String parentSchemaName) { + this.parentSchemaName = parentSchemaName; + this.__explicitlySet__.add("parentSchemaName"); + return this; + } + /** The name of the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectName") + private String parentObjectName; + + /** + * The name of the parent subsetting table + * + * @param parentObjectName the value to set + * @return this builder + */ + public Builder parentObjectName(String parentObjectName) { + this.parentObjectName = parentObjectName; + this.__explicitlySet__.add("parentObjectName"); + return this; + } + /** Unique identifiers identifying the parents columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentColumns") + private java.util.List parentColumns; + + /** + * Unique identifiers identifying the parents columns in the relation. + * + * @param parentColumns the value to set + * @return this builder + */ + public Builder parentColumns(java.util.List parentColumns) { + this.parentColumns = parentColumns; + this.__explicitlySet__.add("parentColumns"); + return this; + } + /** The key that identifies the child subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectKey") + private String childObjectKey; + + /** + * The key that identifies the child subsetting table in this relation. + * + * @param childObjectKey the value to set + * @return this builder + */ + public Builder childObjectKey(String childObjectKey) { + this.childObjectKey = childObjectKey; + this.__explicitlySet__.add("childObjectKey"); + return this; + } + /** The database schema that contains the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childSchemaName") + private String childSchemaName; + + /** + * The database schema that contains the child subsetting table + * + * @param childSchemaName the value to set + * @return this builder + */ + public Builder childSchemaName(String childSchemaName) { + this.childSchemaName = childSchemaName; + this.__explicitlySet__.add("childSchemaName"); + return this; + } + /** The name of the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectName") + private String childObjectName; + + /** + * The name of the child subsetting table + * + * @param childObjectName the value to set + * @return this builder + */ + public Builder childObjectName(String childObjectName) { + this.childObjectName = childObjectName; + this.__explicitlySet__.add("childObjectName"); + return this; + } + /** Unique identifiers identifying the child columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childColumns") + private java.util.List childColumns; + + /** + * Unique identifiers identifying the child columns in the relation. + * + * @param childColumns the value to set + * @return this builder + */ + public Builder childColumns(java.util.List childColumns) { + this.childColumns = childColumns; + this.__explicitlySet__.add("childColumns"); + return this; + } + /** + * The type of referential relationship the column has with its parent. NONE indicates that + * the sensitive column does not have a parent. DB_DEFINED indicates that the relationship + * is defined in the database dictionary. APP_DEFINED indicates that the relationship is + * defined at the application level and not in the database dictionary. + */ + @com.fasterxml.jackson.annotation.JsonProperty("relationType") + private RelationType relationType; + + /** + * The type of referential relationship the column has with its parent. NONE indicates that + * the sensitive column does not have a parent. DB_DEFINED indicates that the relationship + * is defined in the database dictionary. APP_DEFINED indicates that the relationship is + * defined at the application level and not in the database dictionary. + * + * @param relationType the value to set + * @return this builder + */ + public Builder relationType(RelationType relationType) { + this.relationType = relationType; + this.__explicitlySet__.add("relationType"); + return this; + } + /** + * The date and time the subsetting relation was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the subsetting relation was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @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 subsetting relation was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the subsetting relation was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingSchemaRelationSummary build() { + SubsettingSchemaRelationSummary model = + new SubsettingSchemaRelationSummary( + this.key, + this.parentObjectKey, + this.parentSchemaName, + this.parentObjectName, + this.parentColumns, + this.childObjectKey, + this.childSchemaName, + this.childObjectName, + this.childColumns, + this.relationType, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingSchemaRelationSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("parentObjectKey")) { + this.parentObjectKey(model.getParentObjectKey()); + } + if (model.wasPropertyExplicitlySet("parentSchemaName")) { + this.parentSchemaName(model.getParentSchemaName()); + } + if (model.wasPropertyExplicitlySet("parentObjectName")) { + this.parentObjectName(model.getParentObjectName()); + } + if (model.wasPropertyExplicitlySet("parentColumns")) { + this.parentColumns(model.getParentColumns()); + } + if (model.wasPropertyExplicitlySet("childObjectKey")) { + this.childObjectKey(model.getChildObjectKey()); + } + if (model.wasPropertyExplicitlySet("childSchemaName")) { + this.childSchemaName(model.getChildSchemaName()); + } + if (model.wasPropertyExplicitlySet("childObjectName")) { + this.childObjectName(model.getChildObjectName()); + } + if (model.wasPropertyExplicitlySet("childColumns")) { + this.childColumns(model.getChildColumns()); + } + if (model.wasPropertyExplicitlySet("relationType")) { + this.relationType(model.getRelationType()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The unique key that identifies a relation between subsetting tables. The key is numeric and + * unique within a subsetting policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The unique key that identifies a relation between subsetting tables. The key is numeric and + * unique within a subsetting policy. + * + * @return the value + */ + public String getKey() { + return key; + } + + /** The key that identifies the parent subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectKey") + private final String parentObjectKey; + + /** + * The key that identifies the parent subsetting table in this relation. + * + * @return the value + */ + public String getParentObjectKey() { + return parentObjectKey; + } + + /** The database schema that contains the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentSchemaName") + private final String parentSchemaName; + + /** + * The database schema that contains the parent subsetting table + * + * @return the value + */ + public String getParentSchemaName() { + return parentSchemaName; + } + + /** The name of the parent subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("parentObjectName") + private final String parentObjectName; + + /** + * The name of the parent subsetting table + * + * @return the value + */ + public String getParentObjectName() { + return parentObjectName; + } + + /** Unique identifiers identifying the parents columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentColumns") + private final java.util.List parentColumns; + + /** + * Unique identifiers identifying the parents columns in the relation. + * + * @return the value + */ + public java.util.List getParentColumns() { + return parentColumns; + } + + /** The key that identifies the child subsetting table in this relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectKey") + private final String childObjectKey; + + /** + * The key that identifies the child subsetting table in this relation. + * + * @return the value + */ + public String getChildObjectKey() { + return childObjectKey; + } + + /** The database schema that contains the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childSchemaName") + private final String childSchemaName; + + /** + * The database schema that contains the child subsetting table + * + * @return the value + */ + public String getChildSchemaName() { + return childSchemaName; + } + + /** The name of the child subsetting table */ + @com.fasterxml.jackson.annotation.JsonProperty("childObjectName") + private final String childObjectName; + + /** + * The name of the child subsetting table + * + * @return the value + */ + public String getChildObjectName() { + return childObjectName; + } + + /** Unique identifiers identifying the child columns in the relation. */ + @com.fasterxml.jackson.annotation.JsonProperty("childColumns") + private final java.util.List childColumns; + + /** + * Unique identifiers identifying the child columns in the relation. + * + * @return the value + */ + public java.util.List getChildColumns() { + return childColumns; + } + + /** + * The type of referential relationship the column has with its parent. NONE indicates that the + * sensitive column does not have a parent. DB_DEFINED indicates that the relationship is + * defined in the database dictionary. APP_DEFINED indicates that the relationship is defined at + * the application level and not in the database dictionary. + */ + public enum RelationType implements com.oracle.bmc.http.internal.BmcEnum { + None("NONE"), + AppDefined("APP_DEFINED"), + DbDefined("DB_DEFINED"), + + /** + * 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(RelationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RelationType v : RelationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RelationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RelationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RelationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of referential relationship the column has with its parent. NONE indicates that the + * sensitive column does not have a parent. DB_DEFINED indicates that the relationship is + * defined in the database dictionary. APP_DEFINED indicates that the relationship is defined at + * the application level and not in the database dictionary. + */ + @com.fasterxml.jackson.annotation.JsonProperty("relationType") + private final RelationType relationType; + + /** + * The type of referential relationship the column has with its parent. NONE indicates that the + * sensitive column does not have a parent. DB_DEFINED indicates that the relationship is + * defined in the database dictionary. APP_DEFINED indicates that the relationship is defined at + * the application level and not in the database dictionary. + * + * @return the value + */ + public RelationType getRelationType() { + return relationType; + } + + /** + * The date and time the subsetting relation was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the subsetting relation was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the subsetting relation was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the subsetting relation was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingSchemaRelationSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", parentObjectKey=").append(String.valueOf(this.parentObjectKey)); + sb.append(", parentSchemaName=").append(String.valueOf(this.parentSchemaName)); + sb.append(", parentObjectName=").append(String.valueOf(this.parentObjectName)); + sb.append(", parentColumns=").append(String.valueOf(this.parentColumns)); + sb.append(", childObjectKey=").append(String.valueOf(this.childObjectKey)); + sb.append(", childSchemaName=").append(String.valueOf(this.childSchemaName)); + sb.append(", childObjectName=").append(String.valueOf(this.childObjectName)); + sb.append(", childColumns=").append(String.valueOf(this.childColumns)); + sb.append(", relationType=").append(String.valueOf(this.relationType)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingSchemaRelationSummary)) { + return false; + } + + SubsettingSchemaRelationSummary other = (SubsettingSchemaRelationSummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.parentObjectKey, other.parentObjectKey) + && java.util.Objects.equals(this.parentSchemaName, other.parentSchemaName) + && java.util.Objects.equals(this.parentObjectName, other.parentObjectName) + && java.util.Objects.equals(this.parentColumns, other.parentColumns) + && java.util.Objects.equals(this.childObjectKey, other.childObjectKey) + && java.util.Objects.equals(this.childSchemaName, other.childSchemaName) + && java.util.Objects.equals(this.childObjectName, other.childObjectName) + && java.util.Objects.equals(this.childColumns, other.childColumns) + && java.util.Objects.equals(this.relationType, other.relationType) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = + (result * PRIME) + + (this.parentObjectKey == null ? 43 : this.parentObjectKey.hashCode()); + result = + (result * PRIME) + + (this.parentSchemaName == null ? 43 : this.parentSchemaName.hashCode()); + result = + (result * PRIME) + + (this.parentObjectName == null ? 43 : this.parentObjectName.hashCode()); + result = + (result * PRIME) + + (this.parentColumns == null ? 43 : this.parentColumns.hashCode()); + result = + (result * PRIME) + + (this.childObjectKey == null ? 43 : this.childObjectKey.hashCode()); + result = + (result * PRIME) + + (this.childSchemaName == null ? 43 : this.childSchemaName.hashCode()); + result = + (result * PRIME) + + (this.childObjectName == null ? 43 : this.childObjectName.hashCode()); + result = (result * PRIME) + (this.childColumns == null ? 43 : this.childColumns.hashCode()); + result = (result * PRIME) + (this.relationType == null ? 43 : this.relationType.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaSummary.java new file mode 100644 index 00000000000..81c6742ae75 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/SubsettingSchemaSummary.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a subsetting schema present in subsetting policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubsettingSchemaSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubsettingSchemaSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"schemaName", "isDerived"}) + public SubsettingSchemaSummary(String schemaName, Boolean isDerived) { + super(); + this.schemaName = schemaName; + this.isDerived = isDerived; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The database schema present in subsetting policy which is to be subsetted. */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + /** + * The database schema present in subsetting policy which is to be subsetted. + * + * @param schemaName the value to set + * @return this builder + */ + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + /** + * Indicates if the schema is a derived schema and not directly came as input from the user. + * A schema is derived if it is related to a input schema + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDerived") + private Boolean isDerived; + + /** + * Indicates if the schema is a derived schema and not directly came as input from the user. + * A schema is derived if it is related to a input schema + * + * @param isDerived the value to set + * @return this builder + */ + public Builder isDerived(Boolean isDerived) { + this.isDerived = isDerived; + this.__explicitlySet__.add("isDerived"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubsettingSchemaSummary build() { + SubsettingSchemaSummary model = + new SubsettingSchemaSummary(this.schemaName, this.isDerived); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubsettingSchemaSummary model) { + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + if (model.wasPropertyExplicitlySet("isDerived")) { + this.isDerived(model.getIsDerived()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The database schema present in subsetting policy which is to be subsetted. */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private final String schemaName; + + /** + * The database schema present in subsetting policy which is to be subsetted. + * + * @return the value + */ + public String getSchemaName() { + return schemaName; + } + + /** + * Indicates if the schema is a derived schema and not directly came as input from the user. A + * schema is derived if it is related to a input schema + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDerived") + private final Boolean isDerived; + + /** + * Indicates if the schema is a derived schema and not directly came as input from the user. A + * schema is derived if it is related to a input schema + * + * @return the value + */ + public Boolean getIsDerived() { + return isDerived; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubsettingSchemaSummary("); + sb.append("super=").append(super.toString()); + sb.append("schemaName=").append(String.valueOf(this.schemaName)); + sb.append(", isDerived=").append(String.valueOf(this.isDerived)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubsettingSchemaSummary)) { + return false; + } + + SubsettingSchemaSummary other = (SubsettingSchemaSummary) o; + return java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.isDerived, other.isDerived) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.isDerived == null ? 43 : this.isDerived.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TableEstimateCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TableEstimateCollection.java new file mode 100644 index 00000000000..c852870311b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TableEstimateCollection.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.datasafe.model; + +/** + * A collection of table estimate objects.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TableEstimateCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TableEstimateCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public TableEstimateCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of table estimate objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of table estimate objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TableEstimateCollection build() { + TableEstimateCollection model = new TableEstimateCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TableEstimateCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of table estimate objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of table estimate objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TableEstimateCollection("); + 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 TableEstimateCollection)) { + return false; + } + + TableEstimateCollection other = (TableEstimateCollection) 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/TableEstimateSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TableEstimateSummary.java new file mode 100644 index 00000000000..2ae152b4e9f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TableEstimateSummary.java @@ -0,0 +1,415 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Estimated row count and size details for a table in a subsetting policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TableEstimateSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TableEstimateSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetId", + "schemaName", + "tableName", + "objectType", + "initialRowCount", + "estimatedRowCount", + "initialSizeInKBs", + "estimatedSizeInKBs" + }) + public TableEstimateSummary( + String targetId, + String schemaName, + String tableName, + ObjectType objectType, + Long initialRowCount, + Long estimatedRowCount, + String initialSizeInKBs, + String estimatedSizeInKBs) { + super(); + this.targetId = targetId; + this.schemaName = schemaName; + this.tableName = tableName; + this.objectType = objectType; + this.initialRowCount = initialRowCount; + this.estimatedRowCount = estimatedRowCount; + this.initialSizeInKBs = initialSizeInKBs; + this.estimatedSizeInKBs = estimatedSizeInKBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the target database associated with the table estimate object. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database associated with the table estimate object. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The name of the schema that contains the table. */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + /** + * The name of the schema that contains the table. + * + * @param schemaName the value to set + * @return this builder + */ + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + /** The name of the table. */ + @com.fasterxml.jackson.annotation.JsonProperty("tableName") + private String tableName; + + /** + * The name of the table. + * + * @param tableName the value to set + * @return this builder + */ + public Builder tableName(String tableName) { + this.tableName = tableName; + this.__explicitlySet__.add("tableName"); + return this; + } + /** The type of the database object. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private ObjectType objectType; + + /** + * The type of the database object. + * + * @param objectType the value to set + * @return this builder + */ + public Builder objectType(ObjectType objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + /** The initial number of rows in the table. */ + @com.fasterxml.jackson.annotation.JsonProperty("initialRowCount") + private Long initialRowCount; + + /** + * The initial number of rows in the table. + * + * @param initialRowCount the value to set + * @return this builder + */ + public Builder initialRowCount(Long initialRowCount) { + this.initialRowCount = initialRowCount; + this.__explicitlySet__.add("initialRowCount"); + return this; + } + /** The estimated number of rows in the table after subsetting. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedRowCount") + private Long estimatedRowCount; + + /** + * The estimated number of rows in the table after subsetting. + * + * @param estimatedRowCount the value to set + * @return this builder + */ + public Builder estimatedRowCount(Long estimatedRowCount) { + this.estimatedRowCount = estimatedRowCount; + this.__explicitlySet__.add("estimatedRowCount"); + return this; + } + /** The initial size of the table in KBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("initialSizeInKBs") + private String initialSizeInKBs; + + /** + * The initial size of the table in KBs. + * + * @param initialSizeInKBs the value to set + * @return this builder + */ + public Builder initialSizeInKBs(String initialSizeInKBs) { + this.initialSizeInKBs = initialSizeInKBs; + this.__explicitlySet__.add("initialSizeInKBs"); + return this; + } + /** The estimated size of the table in KBs after subsetting. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedSizeInKBs") + private String estimatedSizeInKBs; + + /** + * The estimated size of the table in KBs after subsetting. + * + * @param estimatedSizeInKBs the value to set + * @return this builder + */ + public Builder estimatedSizeInKBs(String estimatedSizeInKBs) { + this.estimatedSizeInKBs = estimatedSizeInKBs; + this.__explicitlySet__.add("estimatedSizeInKBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TableEstimateSummary build() { + TableEstimateSummary model = + new TableEstimateSummary( + this.targetId, + this.schemaName, + this.tableName, + this.objectType, + this.initialRowCount, + this.estimatedRowCount, + this.initialSizeInKBs, + this.estimatedSizeInKBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TableEstimateSummary model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + if (model.wasPropertyExplicitlySet("tableName")) { + this.tableName(model.getTableName()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + if (model.wasPropertyExplicitlySet("initialRowCount")) { + this.initialRowCount(model.getInitialRowCount()); + } + if (model.wasPropertyExplicitlySet("estimatedRowCount")) { + this.estimatedRowCount(model.getEstimatedRowCount()); + } + if (model.wasPropertyExplicitlySet("initialSizeInKBs")) { + this.initialSizeInKBs(model.getInitialSizeInKBs()); + } + if (model.wasPropertyExplicitlySet("estimatedSizeInKBs")) { + this.estimatedSizeInKBs(model.getEstimatedSizeInKBs()); + } + 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 associated with the table estimate object. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database associated with the table estimate object. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The name of the schema that contains the table. */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private final String schemaName; + + /** + * The name of the schema that contains the table. + * + * @return the value + */ + public String getSchemaName() { + return schemaName; + } + + /** The name of the table. */ + @com.fasterxml.jackson.annotation.JsonProperty("tableName") + private final String tableName; + + /** + * The name of the table. + * + * @return the value + */ + public String getTableName() { + return tableName; + } + + /** The type of the database object. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final ObjectType objectType; + + /** + * The type of the database object. + * + * @return the value + */ + public ObjectType getObjectType() { + return objectType; + } + + /** The initial number of rows in the table. */ + @com.fasterxml.jackson.annotation.JsonProperty("initialRowCount") + private final Long initialRowCount; + + /** + * The initial number of rows in the table. + * + * @return the value + */ + public Long getInitialRowCount() { + return initialRowCount; + } + + /** The estimated number of rows in the table after subsetting. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedRowCount") + private final Long estimatedRowCount; + + /** + * The estimated number of rows in the table after subsetting. + * + * @return the value + */ + public Long getEstimatedRowCount() { + return estimatedRowCount; + } + + /** The initial size of the table in KBs. */ + @com.fasterxml.jackson.annotation.JsonProperty("initialSizeInKBs") + private final String initialSizeInKBs; + + /** + * The initial size of the table in KBs. + * + * @return the value + */ + public String getInitialSizeInKBs() { + return initialSizeInKBs; + } + + /** The estimated size of the table in KBs after subsetting. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedSizeInKBs") + private final String estimatedSizeInKBs; + + /** + * The estimated size of the table in KBs after subsetting. + * + * @return the value + */ + public String getEstimatedSizeInKBs() { + return estimatedSizeInKBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TableEstimateSummary("); + sb.append("super=").append(super.toString()); + sb.append("targetId=").append(String.valueOf(this.targetId)); + sb.append(", schemaName=").append(String.valueOf(this.schemaName)); + sb.append(", tableName=").append(String.valueOf(this.tableName)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(", initialRowCount=").append(String.valueOf(this.initialRowCount)); + sb.append(", estimatedRowCount=").append(String.valueOf(this.estimatedRowCount)); + sb.append(", initialSizeInKBs=").append(String.valueOf(this.initialSizeInKBs)); + sb.append(", estimatedSizeInKBs=").append(String.valueOf(this.estimatedSizeInKBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TableEstimateSummary)) { + return false; + } + + TableEstimateSummary other = (TableEstimateSummary) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.tableName, other.tableName) + && java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals(this.initialRowCount, other.initialRowCount) + && java.util.Objects.equals(this.estimatedRowCount, other.estimatedRowCount) + && java.util.Objects.equals(this.initialSizeInKBs, other.initialSizeInKBs) + && java.util.Objects.equals(this.estimatedSizeInKBs, other.estimatedSizeInKBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.tableName == null ? 43 : this.tableName.hashCode()); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = + (result * PRIME) + + (this.initialRowCount == null ? 43 : this.initialRowCount.hashCode()); + result = + (result * PRIME) + + (this.estimatedRowCount == null ? 43 : this.estimatedRowCount.hashCode()); + result = + (result * PRIME) + + (this.initialSizeInKBs == null ? 43 : this.initialSizeInKBs.hashCode()); + result = + (result * PRIME) + + (this.estimatedSizeInKBs == null + ? 43 + : this.estimatedSizeInKBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetDatabase.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetDatabase.java index 8f0b1f3b8f0..3cf67ca9685 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetDatabase.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetDatabase.java @@ -36,6 +36,7 @@ public final class TargetDatabase "lifecycleDetails", "timeCreated", "timeUpdated", + "features", "peerTargetDatabases", "freeformTags", "definedTags", @@ -55,6 +56,7 @@ public TargetDatabase( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List features, java.util.List peerTargetDatabases, java.util.Map freeformTags, java.util.Map> definedTags, @@ -73,6 +75,7 @@ public TargetDatabase( this.lifecycleDetails = lifecycleDetails; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; + this.features = features; this.peerTargetDatabases = peerTargetDatabases; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -252,6 +255,21 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } + /** List of enabled features based on granted ORA_DSCS_* roles in target database */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * List of enabled features based on granted ORA_DSCS_* roles in target database + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } /** The OCIDs of associated resources like database, Data Safe private endpoint, etc. */ @com.fasterxml.jackson.annotation.JsonProperty("peerTargetDatabases") private java.util.List peerTargetDatabases; @@ -357,6 +375,7 @@ public TargetDatabase build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.features, this.peerTargetDatabases, this.freeformTags, this.definedTags, @@ -408,6 +427,9 @@ public Builder copy(TargetDatabase model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } if (model.wasPropertyExplicitlySet("peerTargetDatabases")) { this.peerTargetDatabases(model.getPeerTargetDatabases()); } @@ -578,6 +600,19 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } + /** List of enabled features based on granted ORA_DSCS_* roles in target database */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * List of enabled features based on granted ORA_DSCS_* roles in target database + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + /** The OCIDs of associated resources like database, Data Safe private endpoint, etc. */ @com.fasterxml.jackson.annotation.JsonProperty("peerTargetDatabases") private final java.util.List peerTargetDatabases; @@ -682,6 +717,7 @@ public String toString(boolean includeByteArrayContents) { 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(", features=").append(String.valueOf(this.features)); sb.append(", peerTargetDatabases=").append(String.valueOf(this.peerTargetDatabases)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -713,6 +749,7 @@ public boolean equals(Object o) { && 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.features, other.features) && java.util.Objects.equals(this.peerTargetDatabases, other.peerTargetDatabases) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -751,6 +788,7 @@ public int hashCode() { + (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.features == null ? 43 : this.features.hashCode()); result = (result * PRIME) + (this.peerTargetDatabases == null diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetDatabaseSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetDatabaseSummary.java index b3dd02b3c84..8a60768830d 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetDatabaseSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetDatabaseSummary.java @@ -34,6 +34,7 @@ public final class TargetDatabaseSummary "lifecycleState", "lifecycleDetails", "timeCreated", + "features", "freeformTags", "definedTags", "systemTags" @@ -49,6 +50,7 @@ public TargetDatabaseSummary( TargetDatabaseLifecycleState lifecycleState, String lifecycleDetails, java.util.Date timeCreated, + java.util.List features, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -63,6 +65,7 @@ public TargetDatabaseSummary( this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.timeCreated = timeCreated; + this.features = features; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -224,6 +227,21 @@ public Builder timeCreated(java.util.Date timeCreated) { this.__explicitlySet__.add("timeCreated"); return this; } + /** List of enabled features based on granted ORA_DSCS_* roles in target database */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * List of enabled features based on granted ORA_DSCS_* roles in target database + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + 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 @@ -311,6 +329,7 @@ public TargetDatabaseSummary build() { this.lifecycleState, this.lifecycleDetails, this.timeCreated, + this.features, this.freeformTags, this.definedTags, this.systemTags); @@ -352,6 +371,9 @@ public Builder copy(TargetDatabaseSummary model) { if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -508,6 +530,19 @@ public java.util.Date getTimeCreated() { return timeCreated; } + /** List of enabled features based on granted ORA_DSCS_* roles in target database */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * List of enabled features based on granted ORA_DSCS_* roles in target database + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + /** * 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 @@ -596,6 +631,7 @@ public String toString(boolean includeByteArrayContents) { 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(", features=").append(String.valueOf(this.features)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -623,6 +659,7 @@ public boolean equals(Object o) { && 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.features, other.features) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -657,6 +694,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.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/UpdateProcessingChainObjectDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateProcessingChainObjectDetails.java new file mode 100644 index 00000000000..7be4e491703 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateProcessingChainObjectDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details to update a processing chain object
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateProcessingChainObjectDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateProcessingChainObjectDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnabledForProcessing"}) + public UpdateProcessingChainObjectDetails(Boolean isEnabledForProcessing) { + super(); + this.isEnabledForProcessing = isEnabledForProcessing; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Indicates if this object/edge is enabled for processing */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabledForProcessing") + private Boolean isEnabledForProcessing; + + /** + * Indicates if this object/edge is enabled for processing + * + * @param isEnabledForProcessing the value to set + * @return this builder + */ + public Builder isEnabledForProcessing(Boolean isEnabledForProcessing) { + this.isEnabledForProcessing = isEnabledForProcessing; + this.__explicitlySet__.add("isEnabledForProcessing"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateProcessingChainObjectDetails build() { + UpdateProcessingChainObjectDetails model = + new UpdateProcessingChainObjectDetails(this.isEnabledForProcessing); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateProcessingChainObjectDetails model) { + if (model.wasPropertyExplicitlySet("isEnabledForProcessing")) { + this.isEnabledForProcessing(model.getIsEnabledForProcessing()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Indicates if this object/edge is enabled for processing */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabledForProcessing") + private final Boolean isEnabledForProcessing; + + /** + * Indicates if this object/edge is enabled for processing + * + * @return the value + */ + public Boolean getIsEnabledForProcessing() { + return isEnabledForProcessing; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateProcessingChainObjectDetails("); + sb.append("super=").append(super.toString()); + sb.append("isEnabledForProcessing=").append(String.valueOf(this.isEnabledForProcessing)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateProcessingChainObjectDetails)) { + return false; + } + + UpdateProcessingChainObjectDetails other = (UpdateProcessingChainObjectDetails) o; + return java.util.Objects.equals(this.isEnabledForProcessing, other.isEnabledForProcessing) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isEnabledForProcessing == null + ? 43 + : this.isEnabledForProcessing.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateRegistrationPolicyDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateRegistrationPolicyDetails.java new file mode 100644 index 00000000000..6497d44d499 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateRegistrationPolicyDetails.java @@ -0,0 +1,406 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * The details required to update an existing registration policy. This object contains the + * necessary information to update a registration policy, including the display name, features, and + * OnPrem connection IDs
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = UpdateRegistrationPolicyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateRegistrationPolicyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "canOverrideFeatures", + "features", + "freeformTags", + "definedTags", + "connectionOption" + }) + public UpdateRegistrationPolicyDetails( + String displayName, + String description, + Boolean canOverrideFeatures, + java.util.List features, + java.util.Map freeformTags, + java.util.Map> definedTags, + PolicyConnectionOption connectionOption) { + super(); + this.displayName = displayName; + this.description = description; + this.canOverrideFeatures = canOverrideFeatures; + this.features = features; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.connectionOption = connectionOption; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The display name of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the registration policy. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** A description of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of the registration policy. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Indicates whether features will be overridden for all targets. */ + @com.fasterxml.jackson.annotation.JsonProperty("canOverrideFeatures") + private Boolean canOverrideFeatures; + + /** + * Indicates whether features will be overridden for all targets. + * + * @param canOverrideFeatures the value to set + * @return this builder + */ + public Builder canOverrideFeatures(Boolean canOverrideFeatures) { + this.canOverrideFeatures = canOverrideFeatures; + this.__explicitlySet__.add("canOverrideFeatures"); + return this; + } + /** + * The Data Safe features granted to the databases registering under the registration + * policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * The Data Safe features granted to the databases registering under the registration + * policy. + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + 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.JsonProperty("connectionOption") + private PolicyConnectionOption connectionOption; + + public Builder connectionOption(PolicyConnectionOption connectionOption) { + this.connectionOption = connectionOption; + this.__explicitlySet__.add("connectionOption"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateRegistrationPolicyDetails build() { + UpdateRegistrationPolicyDetails model = + new UpdateRegistrationPolicyDetails( + this.displayName, + this.description, + this.canOverrideFeatures, + this.features, + this.freeformTags, + this.definedTags, + this.connectionOption); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateRegistrationPolicyDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("canOverrideFeatures")) { + this.canOverrideFeatures(model.getCanOverrideFeatures()); + } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("connectionOption")) { + this.connectionOption(model.getConnectionOption()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The display name of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the registration policy. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** A description of the registration policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the registration policy. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Indicates whether features will be overridden for all targets. */ + @com.fasterxml.jackson.annotation.JsonProperty("canOverrideFeatures") + private final Boolean canOverrideFeatures; + + /** + * Indicates whether features will be overridden for all targets. + * + * @return the value + */ + public Boolean getCanOverrideFeatures() { + return canOverrideFeatures; + } + + /** + * The Data Safe features granted to the databases registering under the registration policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * The Data Safe features granted to the databases registering under the registration policy. + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + + /** + * 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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionOption") + private final PolicyConnectionOption connectionOption; + + public PolicyConnectionOption getConnectionOption() { + return connectionOption; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateRegistrationPolicyDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", canOverrideFeatures=").append(String.valueOf(this.canOverrideFeatures)); + sb.append(", features=").append(String.valueOf(this.features)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", connectionOption=").append(String.valueOf(this.connectionOption)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateRegistrationPolicyDetails)) { + return false; + } + + UpdateRegistrationPolicyDetails other = (UpdateRegistrationPolicyDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.canOverrideFeatures, other.canOverrideFeatures) + && java.util.Objects.equals(this.features, other.features) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.connectionOption, other.connectionOption) + && 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.canOverrideFeatures == null + ? 43 + : this.canOverrideFeatures.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.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.connectionOption == null ? 43 : this.connectionOption.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceDetails.java new file mode 100644 index 00000000000..39b0c14e4af --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceDetails.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.datasafe.model; + +/** + * The source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource", + defaultImpl = UpdateSchemaSourceDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateSchemaSourceFromTargetDetails.class, + name = "TARGET"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateSchemaSourceFromSdmDetails.class, + name = "SENSITIVE_DATA_MODEL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateSchemaSourceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateSchemaSourceDetails() { + 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("UpdateSchemaSourceDetails("); + 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 UpdateSchemaSourceDetails)) { + return false; + } + + UpdateSchemaSourceDetails other = (UpdateSchemaSourceDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** The source of subsetting schemas */ + public enum SchemaSource implements com.oracle.bmc.http.internal.BmcEnum { + Target("TARGET"), + SensitiveDataModel("SENSITIVE_DATA_MODEL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SchemaSource v : SchemaSource.values()) { + map.put(v.getValue(), v); + } + } + + SchemaSource(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SchemaSource create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SchemaSource: " + key); + } + }; +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceFromSdmDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceFromSdmDetails.java new file mode 100644 index 00000000000..1ee4183e3f5 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceFromSdmDetails.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.datasafe.model; + +/** + * Details of the sensitive data model that's used as the source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = UpdateSchemaSourceFromSdmDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateSchemaSourceFromSdmDetails extends UpdateSchemaSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the sensitive data model that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("sensitiveDataModelId") + private String sensitiveDataModelId; + + /** + * The OCID of the sensitive data model that's used as the source of subsetting schemas + * + * @param sensitiveDataModelId the value to set + * @return this builder + */ + public Builder sensitiveDataModelId(String sensitiveDataModelId) { + this.sensitiveDataModelId = sensitiveDataModelId; + this.__explicitlySet__.add("sensitiveDataModelId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateSchemaSourceFromSdmDetails build() { + UpdateSchemaSourceFromSdmDetails model = + new UpdateSchemaSourceFromSdmDetails(this.sensitiveDataModelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateSchemaSourceFromSdmDetails model) { + if (model.wasPropertyExplicitlySet("sensitiveDataModelId")) { + this.sensitiveDataModelId(model.getSensitiveDataModelId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateSchemaSourceFromSdmDetails(String sensitiveDataModelId) { + super(); + this.sensitiveDataModelId = sensitiveDataModelId; + } + + /** The OCID of the sensitive data model that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("sensitiveDataModelId") + private final String sensitiveDataModelId; + + /** + * The OCID of the sensitive data model that's used as the source of subsetting schemas + * + * @return the value + */ + public String getSensitiveDataModelId() { + return sensitiveDataModelId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateSchemaSourceFromSdmDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sensitiveDataModelId=").append(String.valueOf(this.sensitiveDataModelId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSchemaSourceFromSdmDetails)) { + return false; + } + + UpdateSchemaSourceFromSdmDetails other = (UpdateSchemaSourceFromSdmDetails) o; + return java.util.Objects.equals(this.sensitiveDataModelId, other.sensitiveDataModelId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sensitiveDataModelId == null + ? 43 + : this.sensitiveDataModelId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceFromTargetDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceFromTargetDetails.java new file mode 100644 index 00000000000..507981ac7ce --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSchemaSourceFromTargetDetails.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details of the target database that's used as the source of subsetting schemas
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = UpdateSchemaSourceFromTargetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "schemaSource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateSchemaSourceFromTargetDetails extends UpdateSchemaSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the target database that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database that's used as the source of subsetting schemas + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The schemas to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("schemasForSubsetting") + private java.util.List schemasForSubsetting; + + /** + * The schemas to be subsetted + * + * @param schemasForSubsetting the value to set + * @return this builder + */ + public Builder schemasForSubsetting(java.util.List schemasForSubsetting) { + this.schemasForSubsetting = schemasForSubsetting; + this.__explicitlySet__.add("schemasForSubsetting"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateSchemaSourceFromTargetDetails build() { + UpdateSchemaSourceFromTargetDetails model = + new UpdateSchemaSourceFromTargetDetails( + this.targetId, this.schemasForSubsetting); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateSchemaSourceFromTargetDetails model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("schemasForSubsetting")) { + this.schemasForSubsetting(model.getSchemasForSubsetting()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateSchemaSourceFromTargetDetails( + String targetId, java.util.List schemasForSubsetting) { + super(); + this.targetId = targetId; + this.schemasForSubsetting = schemasForSubsetting; + } + + /** The OCID of the target database that's used as the source of subsetting schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database that's used as the source of subsetting schemas + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The schemas to be subsetted */ + @com.fasterxml.jackson.annotation.JsonProperty("schemasForSubsetting") + private final java.util.List schemasForSubsetting; + + /** + * The schemas to be subsetted + * + * @return the value + */ + public java.util.List getSchemasForSubsetting() { + return schemasForSubsetting; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateSchemaSourceFromTargetDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", schemasForSubsetting=").append(String.valueOf(this.schemasForSubsetting)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSchemaSourceFromTargetDetails)) { + return false; + } + + UpdateSchemaSourceFromTargetDetails other = (UpdateSchemaSourceFromTargetDetails) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.schemasForSubsetting, other.schemasForSubsetting) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.schemasForSubsetting == null + ? 43 + : this.schemasForSubsetting.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSubsettingPolicyDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSubsettingPolicyDetails.java new file mode 100644 index 00000000000..ab02ba89e4a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSubsettingPolicyDetails.java @@ -0,0 +1,755 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details to update a subsetting policy
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateSubsettingPolicyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateSubsettingPolicyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "isRedoLoggingEnabled", + "isRefreshStatsEnabled", + "parallelDegree", + "recompile", + "unrelatedTablesAction", + "preSubsettingScript", + "postSubsettingScript", + "schemaSource", + "maskingPolicyId", + "freeformTags", + "definedTags" + }) + public UpdateSubsettingPolicyDetails( + String displayName, + String description, + Boolean isRedoLoggingEnabled, + Boolean isRefreshStatsEnabled, + String parallelDegree, + SubsettingPolicy.Recompile recompile, + SubsettingPolicy.UnrelatedTablesAction unrelatedTablesAction, + String preSubsettingScript, + String postSubsettingScript, + UpdateSchemaSourceDetails schemaSource, + String maskingPolicyId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.parallelDegree = parallelDegree; + this.recompile = recompile; + this.unrelatedTablesAction = unrelatedTablesAction; + this.preSubsettingScript = preSubsettingScript; + this.postSubsettingScript = postSubsettingScript; + this.schemaSource = schemaSource; + this.maskingPolicyId = maskingPolicyId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The display name of the subsetting policy. The name does not have to be unique, and it's + * changeable + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the subsetting policy. The 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; + } + /** The description of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the subsetting policy + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by + * default. Set this attribute to true to enable redo logging. By default, subsetting + * disables redo logging and flashback logging to purge any original data from logs. + * However, in certain circumstances when you only want to test subsetting, rollback + * changes, and retry subsetting, you could enable logging and use a flashback database to + * retrieve the original data after it has been subsetted + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by + * default. Set this attribute to true to enable redo logging. By default, subsetting + * disables redo logging and flashback logging to purge any original data from logs. + * However, in certain circumstances when you only want to test subsetting, rollback + * changes, and retry subsetting, you could enable logging and use a flashback database to + * retrieve the original data after it has been subsetted + * + * @param isRedoLoggingEnabled the value to set + * @return this builder + */ + public Builder isRedoLoggingEnabled(Boolean isRedoLoggingEnabled) { + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.__explicitlySet__.add("isRedoLoggingEnabled"); + return this; + } + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute + * to false to disable statistics gathering. The subsetting process gathers statistics on + * subsetted database tables after subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute + * to false to disable statistics gathering. The subsetting process gathers statistics on + * subsetted database tables after subsetting completes + * + * @param isRefreshStatsEnabled the value to set + * @return this builder + */ + public Builder isRefreshStatsEnabled(Boolean isRefreshStatsEnabled) { + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.__explicitlySet__.add("isRefreshStatsEnabled"); + return this; + } + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed + * values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum + * degree of parallelism) or an integer value to be used as the degree of parallelism. + * Parallel execution helps effectively use multiple CPUs and improve subsetting + * performance. Refer to the Oracle Database parallel execution framework when choosing an + * explicit degree of parallelism + */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private String parallelDegree; + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed + * values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum + * degree of parallelism) or an integer value to be used as the degree of parallelism. + * Parallel execution helps effectively use multiple CPUs and improve subsetting + * performance. Refer to the Oracle Database parallel execution framework when choosing an + * explicit degree of parallelism + * + * @param parallelDegree the value to set + * @return this builder + */ + public Builder parallelDegree(String parallelDegree) { + this.parallelDegree = parallelDegree; + this.__explicitlySet__.add("parallelDegree"); + return this; + } + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are + * 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not + * recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use + * the built-in UTL_RECOMP package to recompile any remaining invalid objects after + * subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private SubsettingPolicy.Recompile recompile; + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are + * 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not + * recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use + * the built-in UTL_RECOMP package to recompile any remaining invalid objects after + * subsetting completes + * + * @param recompile the value to set + * @return this builder + */ + public Builder recompile(SubsettingPolicy.Recompile recompile) { + this.recompile = recompile; + this.__explicitlySet__.add("recompile"); + return this; + } + /** + * Strategy to be applied for tables which are not impacted by any of the subsetting rules + */ + @com.fasterxml.jackson.annotation.JsonProperty("unrelatedTablesAction") + private SubsettingPolicy.UnrelatedTablesAction unrelatedTablesAction; + + /** + * Strategy to be applied for tables which are not impacted by any of the subsetting rules + * + * @param unrelatedTablesAction the value to set + * @return this builder + */ + public Builder unrelatedTablesAction( + SubsettingPolicy.UnrelatedTablesAction unrelatedTablesAction) { + this.unrelatedTablesAction = unrelatedTablesAction; + this.__explicitlySet__.add("unrelatedTablesAction"); + return this; + } + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * before the subsetting process. It's usually used to perform any preparation or + * prerequisite work before subsetting data + */ + @com.fasterxml.jackson.annotation.JsonProperty("preSubsettingScript") + private String preSubsettingScript; + + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * before the subsetting process. It's usually used to perform any preparation or + * prerequisite work before subsetting data + * + * @param preSubsettingScript the value to set + * @return this builder + */ + public Builder preSubsettingScript(String preSubsettingScript) { + this.preSubsettingScript = preSubsettingScript; + this.__explicitlySet__.add("preSubsettingScript"); + return this; + } + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * after the subsetting process. It's usually used to perform additional transformation or + * cleanup work after subsetting data + */ + @com.fasterxml.jackson.annotation.JsonProperty("postSubsettingScript") + private String postSubsettingScript; + + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed + * after the subsetting process. It's usually used to perform additional transformation or + * cleanup work after subsetting data + * + * @param postSubsettingScript the value to set + * @return this builder + */ + public Builder postSubsettingScript(String postSubsettingScript) { + this.postSubsettingScript = postSubsettingScript; + this.__explicitlySet__.add("postSubsettingScript"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schemaSource") + private UpdateSchemaSourceDetails schemaSource; + + public Builder schemaSource(UpdateSchemaSourceDetails schemaSource) { + this.schemaSource = schemaSource; + this.__explicitlySet__.add("schemaSource"); + return this; + } + /** The OCID of the masking policy to associate with this subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private String maskingPolicyId; + + /** + * The OCID of the masking policy to associate with this subsetting policy + * + * @param maskingPolicyId the value to set + * @return this builder + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + this.__explicitlySet__.add("maskingPolicyId"); + 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 UpdateSubsettingPolicyDetails build() { + UpdateSubsettingPolicyDetails model = + new UpdateSubsettingPolicyDetails( + this.displayName, + this.description, + this.isRedoLoggingEnabled, + this.isRefreshStatsEnabled, + this.parallelDegree, + this.recompile, + this.unrelatedTablesAction, + this.preSubsettingScript, + this.postSubsettingScript, + this.schemaSource, + this.maskingPolicyId, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateSubsettingPolicyDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("isRedoLoggingEnabled")) { + this.isRedoLoggingEnabled(model.getIsRedoLoggingEnabled()); + } + if (model.wasPropertyExplicitlySet("isRefreshStatsEnabled")) { + this.isRefreshStatsEnabled(model.getIsRefreshStatsEnabled()); + } + if (model.wasPropertyExplicitlySet("parallelDegree")) { + this.parallelDegree(model.getParallelDegree()); + } + if (model.wasPropertyExplicitlySet("recompile")) { + this.recompile(model.getRecompile()); + } + if (model.wasPropertyExplicitlySet("unrelatedTablesAction")) { + this.unrelatedTablesAction(model.getUnrelatedTablesAction()); + } + if (model.wasPropertyExplicitlySet("preSubsettingScript")) { + this.preSubsettingScript(model.getPreSubsettingScript()); + } + if (model.wasPropertyExplicitlySet("postSubsettingScript")) { + this.postSubsettingScript(model.getPostSubsettingScript()); + } + if (model.wasPropertyExplicitlySet("schemaSource")) { + this.schemaSource(model.getSchemaSource()); + } + if (model.wasPropertyExplicitlySet("maskingPolicyId")) { + this.maskingPolicyId(model.getMaskingPolicyId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The display name of the subsetting policy. The name does not have to be unique, and it's + * changeable + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the subsetting policy. The name does not have to be unique, and it's + * changeable + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description of the subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the subsetting policy + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. + * Set this attribute to true to enable redo logging. By default, subsetting disables redo + * logging and flashback logging to purge any original data from logs. However, in certain + * circumstances when you only want to test subsetting, rollback changes, and retry subsetting, + * you could enable logging and use a flashback database to retrieve the original data after it + * has been subsetted + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRedoLoggingEnabled") + private final Boolean isRedoLoggingEnabled; + + /** + * Indicates if redo logging is enabled during a subsetting operation. It's disabled by default. + * Set this attribute to true to enable redo logging. By default, subsetting disables redo + * logging and flashback logging to purge any original data from logs. However, in certain + * circumstances when you only want to test subsetting, rollback changes, and retry subsetting, + * you could enable logging and use a flashback database to retrieve the original data after it + * has been subsetted + * + * @return the value + */ + public Boolean getIsRedoLoggingEnabled() { + return isRedoLoggingEnabled; + } + + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to + * false to disable statistics gathering. The subsetting process gathers statistics on subsetted + * database tables after subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRefreshStatsEnabled") + private final Boolean isRefreshStatsEnabled; + + /** + * Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to + * false to disable statistics gathering. The subsetting process gathers statistics on subsetted + * database tables after subsetting completes + * + * @return the value + */ + public Boolean getIsRefreshStatsEnabled() { + return isRefreshStatsEnabled; + } + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed values + * are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of + * parallelism) or an integer value to be used as the degree of parallelism. Parallel execution + * helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle + * Database parallel execution framework when choosing an explicit degree of parallelism + */ + @com.fasterxml.jackson.annotation.JsonProperty("parallelDegree") + private final String parallelDegree; + + /** + * Specifies options to enable parallel execution when running data subsetting. Allowed values + * are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of + * parallelism) or an integer value to be used as the degree of parallelism. Parallel execution + * helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle + * Database parallel execution framework when choosing an explicit degree of parallelism + * + * @return the value + */ + public String getParallelDegree() { + return parallelDegree; + } + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' + * (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's + * set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP + * package to recompile any remaining invalid objects after subsetting completes + */ + @com.fasterxml.jackson.annotation.JsonProperty("recompile") + private final SubsettingPolicy.Recompile recompile; + + /** + * Specifies how to recompile invalid objects post data subsetting. Allowed values are 'SERIAL' + * (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's + * set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP + * package to recompile any remaining invalid objects after subsetting completes + * + * @return the value + */ + public SubsettingPolicy.Recompile getRecompile() { + return recompile; + } + + /** Strategy to be applied for tables which are not impacted by any of the subsetting rules */ + @com.fasterxml.jackson.annotation.JsonProperty("unrelatedTablesAction") + private final SubsettingPolicy.UnrelatedTablesAction unrelatedTablesAction; + + /** + * Strategy to be applied for tables which are not impacted by any of the subsetting rules + * + * @return the value + */ + public SubsettingPolicy.UnrelatedTablesAction getUnrelatedTablesAction() { + return unrelatedTablesAction; + } + + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before + * the subsetting process. It's usually used to perform any preparation or prerequisite work + * before subsetting data + */ + @com.fasterxml.jackson.annotation.JsonProperty("preSubsettingScript") + private final String preSubsettingScript; + + /** + * A pre-subsetting script, which can contain SQL and PL/SQL statements. It's executed before + * the subsetting process. It's usually used to perform any preparation or prerequisite work + * before subsetting data + * + * @return the value + */ + public String getPreSubsettingScript() { + return preSubsettingScript; + } + + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after + * the subsetting process. It's usually used to perform additional transformation or cleanup + * work after subsetting data + */ + @com.fasterxml.jackson.annotation.JsonProperty("postSubsettingScript") + private final String postSubsettingScript; + + /** + * A post-subsetting script, which can contain SQL and PL/SQL statements. It's executed after + * the subsetting process. It's usually used to perform additional transformation or cleanup + * work after subsetting data + * + * @return the value + */ + public String getPostSubsettingScript() { + return postSubsettingScript; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schemaSource") + private final UpdateSchemaSourceDetails schemaSource; + + public UpdateSchemaSourceDetails getSchemaSource() { + return schemaSource; + } + + /** The OCID of the masking policy to associate with this subsetting policy */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private final String maskingPolicyId; + + /** + * The OCID of the masking policy to associate with this subsetting policy + * + * @return the value + */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + + /** + * 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("UpdateSubsettingPolicyDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", isRedoLoggingEnabled=").append(String.valueOf(this.isRedoLoggingEnabled)); + sb.append(", isRefreshStatsEnabled=").append(String.valueOf(this.isRefreshStatsEnabled)); + sb.append(", parallelDegree=").append(String.valueOf(this.parallelDegree)); + sb.append(", recompile=").append(String.valueOf(this.recompile)); + sb.append(", unrelatedTablesAction=").append(String.valueOf(this.unrelatedTablesAction)); + sb.append(", preSubsettingScript=").append(String.valueOf(this.preSubsettingScript)); + sb.append(", postSubsettingScript=").append(String.valueOf(this.postSubsettingScript)); + sb.append(", schemaSource=").append(String.valueOf(this.schemaSource)); + sb.append(", maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + 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 UpdateSubsettingPolicyDetails)) { + return false; + } + + UpdateSubsettingPolicyDetails other = (UpdateSubsettingPolicyDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.isRedoLoggingEnabled, other.isRedoLoggingEnabled) + && java.util.Objects.equals(this.isRefreshStatsEnabled, other.isRefreshStatsEnabled) + && java.util.Objects.equals(this.parallelDegree, other.parallelDegree) + && java.util.Objects.equals(this.recompile, other.recompile) + && java.util.Objects.equals(this.unrelatedTablesAction, other.unrelatedTablesAction) + && java.util.Objects.equals(this.preSubsettingScript, other.preSubsettingScript) + && java.util.Objects.equals(this.postSubsettingScript, other.postSubsettingScript) + && java.util.Objects.equals(this.schemaSource, other.schemaSource) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && 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.isRedoLoggingEnabled == null + ? 43 + : this.isRedoLoggingEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRefreshStatsEnabled == null + ? 43 + : this.isRefreshStatsEnabled.hashCode()); + result = + (result * PRIME) + + (this.parallelDegree == null ? 43 : this.parallelDegree.hashCode()); + result = (result * PRIME) + (this.recompile == null ? 43 : this.recompile.hashCode()); + result = + (result * PRIME) + + (this.unrelatedTablesAction == null + ? 43 + : this.unrelatedTablesAction.hashCode()); + result = + (result * PRIME) + + (this.preSubsettingScript == null + ? 43 + : this.preSubsettingScript.hashCode()); + result = + (result * PRIME) + + (this.postSubsettingScript == null + ? 43 + : this.postSubsettingScript.hashCode()); + result = (result * PRIME) + (this.schemaSource == null ? 43 : this.schemaSource.hashCode()); + result = + (result * PRIME) + + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSubsettingRuleDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSubsettingRuleDetails.java new file mode 100644 index 00000000000..d0ab4e60fed --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateSubsettingRuleDetails.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.datasafe.model; + +/** + * Details to update the subsetting rule
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = UpdateSubsettingRuleDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateSubsettingRuleDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "scope", + "subsetRuleEntry", + "ruleCombinationMode", + "relatedTablesPropagation", + "peerTablesAction" + }) + public UpdateSubsettingRuleDetails( + String displayName, + String description, + SubsetScope scope, + SubsetRuleEntry subsetRuleEntry, + RuleCombinationMode ruleCombinationMode, + RelatedTablesPropagation relatedTablesPropagation, + PeerTablesAction peerTablesAction) { + super(); + this.displayName = displayName; + this.description = description; + this.scope = scope; + this.subsetRuleEntry = subsetRuleEntry; + this.ruleCombinationMode = ruleCombinationMode; + this.relatedTablesPropagation = relatedTablesPropagation; + this.peerTablesAction = peerTablesAction; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The display name of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the subset rule + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The description of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the subset rule + * + * @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("scope") + private SubsetScope scope; + + public Builder scope(SubsetScope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subsetRuleEntry") + private SubsetRuleEntry subsetRuleEntry; + + public Builder subsetRuleEntry(SubsetRuleEntry subsetRuleEntry) { + this.subsetRuleEntry = subsetRuleEntry; + this.__explicitlySet__.add("subsetRuleEntry"); + return this; + } + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule + * independently and adds matching rows to the result set. SERIAL applies this rule + * sequentially to filter rows selected by a compatible preceding rule. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ruleCombinationMode") + private RuleCombinationMode ruleCombinationMode; + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule + * independently and adds matching rows to the result set. SERIAL applies this rule + * sequentially to filter rows selected by a compatible preceding rule. + * + * @param ruleCombinationMode the value to set + * @return this builder + */ + public Builder ruleCombinationMode(RuleCombinationMode ruleCombinationMode) { + this.ruleCombinationMode = ruleCombinationMode; + this.__explicitlySet__.add("ruleCombinationMode"); + return this; + } + /** Strategy to be applied while propagating subsetting rule to related tables */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTablesPropagation") + private RelatedTablesPropagation relatedTablesPropagation; + + /** + * Strategy to be applied while propagating subsetting rule to related tables + * + * @param relatedTablesPropagation the value to set + * @return this builder + */ + public Builder relatedTablesPropagation(RelatedTablesPropagation relatedTablesPropagation) { + this.relatedTablesPropagation = relatedTablesPropagation; + this.__explicitlySet__.add("relatedTablesPropagation"); + return this; + } + /** Strategy to be applied while processing peer tables */ + @com.fasterxml.jackson.annotation.JsonProperty("peerTablesAction") + private PeerTablesAction peerTablesAction; + + /** + * Strategy to be applied while processing peer tables + * + * @param peerTablesAction the value to set + * @return this builder + */ + public Builder peerTablesAction(PeerTablesAction peerTablesAction) { + this.peerTablesAction = peerTablesAction; + this.__explicitlySet__.add("peerTablesAction"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateSubsettingRuleDetails build() { + UpdateSubsettingRuleDetails model = + new UpdateSubsettingRuleDetails( + this.displayName, + this.description, + this.scope, + this.subsetRuleEntry, + this.ruleCombinationMode, + this.relatedTablesPropagation, + this.peerTablesAction); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateSubsettingRuleDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("subsetRuleEntry")) { + this.subsetRuleEntry(model.getSubsetRuleEntry()); + } + if (model.wasPropertyExplicitlySet("ruleCombinationMode")) { + this.ruleCombinationMode(model.getRuleCombinationMode()); + } + if (model.wasPropertyExplicitlySet("relatedTablesPropagation")) { + this.relatedTablesPropagation(model.getRelatedTablesPropagation()); + } + if (model.wasPropertyExplicitlySet("peerTablesAction")) { + this.peerTablesAction(model.getPeerTablesAction()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The display name of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the subset rule + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description of the subset rule */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the subset rule + * + * @return the value + */ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final SubsetScope scope; + + public SubsetScope getScope() { + return scope; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subsetRuleEntry") + private final SubsetRuleEntry subsetRuleEntry; + + public SubsetRuleEntry getSubsetRuleEntry() { + return subsetRuleEntry; + } + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + */ + public enum RuleCombinationMode implements com.oracle.bmc.http.internal.BmcEnum { + Union("UNION"), + Serial("SERIAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuleCombinationMode v : RuleCombinationMode.values()) { + map.put(v.getValue(), v); + } + } + + RuleCombinationMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuleCombinationMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RuleCombinationMode: " + key); + } + }; + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ruleCombinationMode") + private final RuleCombinationMode ruleCombinationMode; + + /** + * Specifies how this rule combines with other rules. UNION evaluates this rule independently + * and adds matching rows to the result set. SERIAL applies this rule sequentially to filter + * rows selected by a compatible preceding rule. + * + * @return the value + */ + public RuleCombinationMode getRuleCombinationMode() { + return ruleCombinationMode; + } + + /** Strategy to be applied while propagating subsetting rule to related tables */ + public enum RelatedTablesPropagation implements com.oracle.bmc.http.internal.BmcEnum { + AncestorsAndDescendants("ANCESTORS_AND_DESCENDANTS"), + Ancestors("ANCESTORS"), + Descendants("DESCENDANTS"), + None("NONE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RelatedTablesPropagation v : RelatedTablesPropagation.values()) { + map.put(v.getValue(), v); + } + } + + RelatedTablesPropagation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RelatedTablesPropagation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RelatedTablesPropagation: " + key); + } + }; + /** Strategy to be applied while propagating subsetting rule to related tables */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTablesPropagation") + private final RelatedTablesPropagation relatedTablesPropagation; + + /** + * Strategy to be applied while propagating subsetting rule to related tables + * + * @return the value + */ + public RelatedTablesPropagation getRelatedTablesPropagation() { + return relatedTablesPropagation; + } + + /** Strategy to be applied while processing peer tables */ + public enum PeerTablesAction implements com.oracle.bmc.http.internal.BmcEnum { + MinimumRows("MINIMUM_ROWS"), + Subset("SUBSET"), + MaximumRows("MAXIMUM_ROWS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PeerTablesAction v : PeerTablesAction.values()) { + map.put(v.getValue(), v); + } + } + + PeerTablesAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PeerTablesAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PeerTablesAction: " + key); + } + }; + /** Strategy to be applied while processing peer tables */ + @com.fasterxml.jackson.annotation.JsonProperty("peerTablesAction") + private final PeerTablesAction peerTablesAction; + + /** + * Strategy to be applied while processing peer tables + * + * @return the value + */ + public PeerTablesAction getPeerTablesAction() { + return peerTablesAction; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateSubsettingRuleDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", subsetRuleEntry=").append(String.valueOf(this.subsetRuleEntry)); + sb.append(", ruleCombinationMode=").append(String.valueOf(this.ruleCombinationMode)); + sb.append(", relatedTablesPropagation=") + .append(String.valueOf(this.relatedTablesPropagation)); + sb.append(", peerTablesAction=").append(String.valueOf(this.peerTablesAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSubsettingRuleDetails)) { + return false; + } + + UpdateSubsettingRuleDetails other = (UpdateSubsettingRuleDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.subsetRuleEntry, other.subsetRuleEntry) + && java.util.Objects.equals(this.ruleCombinationMode, other.ruleCombinationMode) + && java.util.Objects.equals( + this.relatedTablesPropagation, other.relatedTablesPropagation) + && java.util.Objects.equals(this.peerTablesAction, other.peerTablesAction) + && 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.scope == null ? 43 : this.scope.hashCode()); + result = + (result * PRIME) + + (this.subsetRuleEntry == null ? 43 : this.subsetRuleEntry.hashCode()); + result = + (result * PRIME) + + (this.ruleCombinationMode == null + ? 43 + : this.ruleCombinationMode.hashCode()); + result = + (result * PRIME) + + (this.relatedTablesPropagation == null + ? 43 + : this.relatedTablesPropagation.hashCode()); + result = + (result * PRIME) + + (this.peerTablesAction == null ? 43 : this.peerTablesAction.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 18c61f97b9d..0896011d130 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 @@ -466,6 +466,28 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { UpdateAttributeSet("UPDATE_ATTRIBUTE_SET"), DeleteAttributeSet("DELETE_ATTRIBUTE_SET"), ChangeAttributeSetCompartment("CHANGE_ATTRIBUTE_SET_COMPARTMENT"), + CreateRegistrationPolicy("CREATE_REGISTRATION_POLICY"), + UpdateRegistrationPolicy("UPDATE_REGISTRATION_POLICY"), + DeleteRegistrationPolicy("DELETE_REGISTRATION_POLICY"), + ChangeRegistrationPolicyCompartment("CHANGE_REGISTRATION_POLICY_COMPARTMENT"), + CreateSubsettingPolicy("CREATE_SUBSETTING_POLICY"), + UpdateSubsettingPolicy("UPDATE_SUBSETTING_POLICY"), + DeleteSubsettingPolicy("DELETE_SUBSETTING_POLICY"), + CreateSubsettingRule("CREATE_SUBSETTING_RULE"), + UpdateSubsettingRule("UPDATE_SUBSETTING_RULE"), + PatchSubsettingRules("PATCH_SUBSETTING_RULES"), + DeleteSubsettingRule("DELETE_SUBSETTING_RULE"), + SubsettingJob("SUBSETTING_JOB"), + DeleteSubsettingReport("DELETE_SUBSETTING_REPORT"), + SubsettingPolicyGenerateHealthReport("SUBSETTING_POLICY_GENERATE_HEALTH_REPORT"), + SubsettingPolicyDeleteHealthReport("SUBSETTING_POLICY_DELETE_HEALTH_REPORT"), + UploadSubsettingPolicy("UPLOAD_SUBSETTING_POLICY"), + ExportSubsettingPolicy("EXPORT_SUBSETTING_POLICY"), + GenerateSubsettingReport("GENERATE_SUBSETTING_REPORT"), + CreateSubsettingSchemaRelation("CREATE_SUBSETTING_SCHEMA_RELATION"), + DeleteSubsettingSchemaRelation("DELETE_SUBSETTING_SCHEMA_RELATION"), + UpdateProcChainObj("UPDATE_PROC_CHAIN_OBJ"), + EstimateSubsettingTableSizes("ESTIMATE_SUBSETTING_TABLE_SIZES"), /** * 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/WorkRequestSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java index 272b64250a9..fef220a5f0c 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 @@ -467,6 +467,28 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { UpdateAttributeSet("UPDATE_ATTRIBUTE_SET"), DeleteAttributeSet("DELETE_ATTRIBUTE_SET"), ChangeAttributeSetCompartment("CHANGE_ATTRIBUTE_SET_COMPARTMENT"), + CreateRegistrationPolicy("CREATE_REGISTRATION_POLICY"), + UpdateRegistrationPolicy("UPDATE_REGISTRATION_POLICY"), + DeleteRegistrationPolicy("DELETE_REGISTRATION_POLICY"), + ChangeRegistrationPolicyCompartment("CHANGE_REGISTRATION_POLICY_COMPARTMENT"), + CreateSubsettingPolicy("CREATE_SUBSETTING_POLICY"), + UpdateSubsettingPolicy("UPDATE_SUBSETTING_POLICY"), + DeleteSubsettingPolicy("DELETE_SUBSETTING_POLICY"), + CreateSubsettingRule("CREATE_SUBSETTING_RULE"), + UpdateSubsettingRule("UPDATE_SUBSETTING_RULE"), + PatchSubsettingRules("PATCH_SUBSETTING_RULES"), + DeleteSubsettingRule("DELETE_SUBSETTING_RULE"), + SubsettingJob("SUBSETTING_JOB"), + DeleteSubsettingReport("DELETE_SUBSETTING_REPORT"), + SubsettingPolicyGenerateHealthReport("SUBSETTING_POLICY_GENERATE_HEALTH_REPORT"), + SubsettingPolicyDeleteHealthReport("SUBSETTING_POLICY_DELETE_HEALTH_REPORT"), + UploadSubsettingPolicy("UPLOAD_SUBSETTING_POLICY"), + ExportSubsettingPolicy("EXPORT_SUBSETTING_POLICY"), + GenerateSubsettingReport("GENERATE_SUBSETTING_REPORT"), + CreateSubsettingSchemaRelation("CREATE_SUBSETTING_SCHEMA_RELATION"), + DeleteSubsettingSchemaRelation("DELETE_SUBSETTING_SCHEMA_RELATION"), + UpdateProcChainObj("UPDATE_PROC_CHAIN_OBJ"), + EstimateSubsettingTableSizes("ESTIMATE_SUBSETTING_TABLE_SIZES"), /** * 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/requests/ChangeRegistrationPolicyCompartmentRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeRegistrationPolicyCompartmentRequest.java new file mode 100644 index 00000000000..c611bbb7545 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeRegistrationPolicyCompartmentRequest.java @@ -0,0 +1,368 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ChangeRegistrationPolicyCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeRegistrationPolicyCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.ChangeRegistrationPolicyCompartmentDetails> { + + /** The OCID of the registration policy to be used for identification */ + private String registrationPolicyId; + + /** The OCID of the registration policy to be used for identification */ + public String getRegistrationPolicyId() { + return registrationPolicyId; + } + /** Details of the move compartment request. */ + private com.oracle.bmc.datasafe.model.ChangeRegistrationPolicyCompartmentDetails + changeRegistrationPolicyCompartmentDetails; + + /** Details of the move compartment request. */ + public com.oracle.bmc.datasafe.model.ChangeRegistrationPolicyCompartmentDetails + getChangeRegistrationPolicyCompartmentDetails() { + return changeRegistrationPolicyCompartmentDetails; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.ChangeRegistrationPolicyCompartmentDetails getBody$() { + return changeRegistrationPolicyCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeRegistrationPolicyCompartmentRequest, + com.oracle.bmc.datasafe.model.ChangeRegistrationPolicyCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the registration policy to be used for identification */ + private String registrationPolicyId = null; + + /** + * The OCID of the registration policy to be used for identification + * + * @param registrationPolicyId the value to set + * @return this builder instance + */ + public Builder registrationPolicyId(String registrationPolicyId) { + this.registrationPolicyId = registrationPolicyId; + return this; + } + + /** Details of the move compartment request. */ + private com.oracle.bmc.datasafe.model.ChangeRegistrationPolicyCompartmentDetails + changeRegistrationPolicyCompartmentDetails = null; + + /** + * Details of the move compartment request. + * + * @param changeRegistrationPolicyCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeRegistrationPolicyCompartmentDetails( + com.oracle.bmc.datasafe.model.ChangeRegistrationPolicyCompartmentDetails + changeRegistrationPolicyCompartmentDetails) { + this.changeRegistrationPolicyCompartmentDetails = + changeRegistrationPolicyCompartmentDetails; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeRegistrationPolicyCompartmentRequest o) { + registrationPolicyId(o.getRegistrationPolicyId()); + changeRegistrationPolicyCompartmentDetails( + o.getChangeRegistrationPolicyCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeRegistrationPolicyCompartmentRequest 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 ChangeRegistrationPolicyCompartmentRequest + */ + public ChangeRegistrationPolicyCompartmentRequest build() { + ChangeRegistrationPolicyCompartmentRequest 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.datasafe.model.ChangeRegistrationPolicyCompartmentDetails body) { + changeRegistrationPolicyCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeRegistrationPolicyCompartmentRequest 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 ChangeRegistrationPolicyCompartmentRequest + */ + public ChangeRegistrationPolicyCompartmentRequest buildWithoutInvocationCallback() { + ChangeRegistrationPolicyCompartmentRequest request = + new ChangeRegistrationPolicyCompartmentRequest(); + request.registrationPolicyId = registrationPolicyId; + request.changeRegistrationPolicyCompartmentDetails = + changeRegistrationPolicyCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeRegistrationPolicyCompartmentRequest(registrationPolicyId, + // changeRegistrationPolicyCompartmentDetails, 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() + .registrationPolicyId(registrationPolicyId) + .changeRegistrationPolicyCompartmentDetails( + changeRegistrationPolicyCompartmentDetails) + .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(",registrationPolicyId=").append(String.valueOf(this.registrationPolicyId)); + sb.append(",changeRegistrationPolicyCompartmentDetails=") + .append(String.valueOf(this.changeRegistrationPolicyCompartmentDetails)); + 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 ChangeRegistrationPolicyCompartmentRequest)) { + return false; + } + + ChangeRegistrationPolicyCompartmentRequest other = + (ChangeRegistrationPolicyCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.registrationPolicyId, other.registrationPolicyId) + && java.util.Objects.equals( + this.changeRegistrationPolicyCompartmentDetails, + other.changeRegistrationPolicyCompartmentDetails) + && 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.registrationPolicyId == null + ? 43 + : this.registrationPolicyId.hashCode()); + result = + (result * PRIME) + + (this.changeRegistrationPolicyCompartmentDetails == null + ? 43 + : this.changeRegistrationPolicyCompartmentDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeSubsettingPolicyCompartmentRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeSubsettingPolicyCompartmentRequest.java new file mode 100644 index 00000000000..cce1520420b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeSubsettingPolicyCompartmentRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ChangeSubsettingPolicyCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeSubsettingPolicyCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyCompartmentDetails> { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to change the compartment of a subsetting policy. */ + private com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyCompartmentDetails + changeSubsettingPolicyCompartmentDetails; + + /** Details to change the compartment of a subsetting policy. */ + public com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyCompartmentDetails + getChangeSubsettingPolicyCompartmentDetails() { + return changeSubsettingPolicyCompartmentDetails; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyCompartmentDetails getBody$() { + return changeSubsettingPolicyCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeSubsettingPolicyCompartmentRequest, + com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to change the compartment of a subsetting policy. */ + private com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyCompartmentDetails + changeSubsettingPolicyCompartmentDetails = null; + + /** + * Details to change the compartment of a subsetting policy. + * + * @param changeSubsettingPolicyCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeSubsettingPolicyCompartmentDetails( + com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyCompartmentDetails + changeSubsettingPolicyCompartmentDetails) { + this.changeSubsettingPolicyCompartmentDetails = + changeSubsettingPolicyCompartmentDetails; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeSubsettingPolicyCompartmentRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + changeSubsettingPolicyCompartmentDetails( + o.getChangeSubsettingPolicyCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeSubsettingPolicyCompartmentRequest 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 ChangeSubsettingPolicyCompartmentRequest + */ + public ChangeSubsettingPolicyCompartmentRequest build() { + ChangeSubsettingPolicyCompartmentRequest 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.datasafe.model.ChangeSubsettingPolicyCompartmentDetails body) { + changeSubsettingPolicyCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeSubsettingPolicyCompartmentRequest 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 ChangeSubsettingPolicyCompartmentRequest + */ + public ChangeSubsettingPolicyCompartmentRequest buildWithoutInvocationCallback() { + ChangeSubsettingPolicyCompartmentRequest request = + new ChangeSubsettingPolicyCompartmentRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.changeSubsettingPolicyCompartmentDetails = + changeSubsettingPolicyCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ChangeSubsettingPolicyCompartmentRequest(subsettingPolicyId, + // changeSubsettingPolicyCompartmentDetails, 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() + .subsettingPolicyId(subsettingPolicyId) + .changeSubsettingPolicyCompartmentDetails(changeSubsettingPolicyCompartmentDetails) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",changeSubsettingPolicyCompartmentDetails=") + .append(String.valueOf(this.changeSubsettingPolicyCompartmentDetails)); + 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 ChangeSubsettingPolicyCompartmentRequest)) { + return false; + } + + ChangeSubsettingPolicyCompartmentRequest other = + (ChangeSubsettingPolicyCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.changeSubsettingPolicyCompartmentDetails, + other.changeSubsettingPolicyCompartmentDetails) + && 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.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.changeSubsettingPolicyCompartmentDetails == null + ? 43 + : this.changeSubsettingPolicyCompartmentDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeSubsettingPolicyHealthReportCompartmentRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeSubsettingPolicyHealthReportCompartmentRequest.java new file mode 100644 index 00000000000..4f5eb393ee3 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeSubsettingPolicyHealthReportCompartmentRequest.java @@ -0,0 +1,327 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ChangeSubsettingPolicyHealthReportCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeSubsettingPolicyHealthReportCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model + .ChangeSubsettingPolicyHealthReportCompartmentDetails> { + + /** The OCID of the subsetting health report. */ + private String subsettingPolicyHealthReportId; + + /** The OCID of the subsetting health report. */ + public String getSubsettingPolicyHealthReportId() { + return subsettingPolicyHealthReportId; + } + /** Details to change the compartment of a subsetting policy. */ + private com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyHealthReportCompartmentDetails + changeSubsettingPolicyHealthReportCompartmentDetails; + + /** Details to change the compartment of a subsetting policy. */ + public com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyHealthReportCompartmentDetails + getChangeSubsettingPolicyHealthReportCompartmentDetails() { + return changeSubsettingPolicyHealthReportCompartmentDetails; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyHealthReportCompartmentDetails + getBody$() { + return changeSubsettingPolicyHealthReportCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeSubsettingPolicyHealthReportCompartmentRequest, + com.oracle.bmc.datasafe.model + .ChangeSubsettingPolicyHealthReportCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting health report. */ + private String subsettingPolicyHealthReportId = null; + + /** + * The OCID of the subsetting health report. + * + * @param subsettingPolicyHealthReportId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyHealthReportId(String subsettingPolicyHealthReportId) { + this.subsettingPolicyHealthReportId = subsettingPolicyHealthReportId; + return this; + } + + /** Details to change the compartment of a subsetting policy. */ + private com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyHealthReportCompartmentDetails + changeSubsettingPolicyHealthReportCompartmentDetails = null; + + /** + * Details to change the compartment of a subsetting policy. + * + * @param changeSubsettingPolicyHealthReportCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeSubsettingPolicyHealthReportCompartmentDetails( + com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyHealthReportCompartmentDetails + changeSubsettingPolicyHealthReportCompartmentDetails) { + this.changeSubsettingPolicyHealthReportCompartmentDetails = + changeSubsettingPolicyHealthReportCompartmentDetails; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeSubsettingPolicyHealthReportCompartmentRequest o) { + subsettingPolicyHealthReportId(o.getSubsettingPolicyHealthReportId()); + changeSubsettingPolicyHealthReportCompartmentDetails( + o.getChangeSubsettingPolicyHealthReportCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeSubsettingPolicyHealthReportCompartmentRequest 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 ChangeSubsettingPolicyHealthReportCompartmentRequest + */ + public ChangeSubsettingPolicyHealthReportCompartmentRequest build() { + ChangeSubsettingPolicyHealthReportCompartmentRequest 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.datasafe.model.ChangeSubsettingPolicyHealthReportCompartmentDetails + body) { + changeSubsettingPolicyHealthReportCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeSubsettingPolicyHealthReportCompartmentRequest 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 ChangeSubsettingPolicyHealthReportCompartmentRequest + */ + public ChangeSubsettingPolicyHealthReportCompartmentRequest + buildWithoutInvocationCallback() { + ChangeSubsettingPolicyHealthReportCompartmentRequest request = + new ChangeSubsettingPolicyHealthReportCompartmentRequest(); + request.subsettingPolicyHealthReportId = subsettingPolicyHealthReportId; + request.changeSubsettingPolicyHealthReportCompartmentDetails = + changeSubsettingPolicyHealthReportCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new + // ChangeSubsettingPolicyHealthReportCompartmentRequest(subsettingPolicyHealthReportId, + // changeSubsettingPolicyHealthReportCompartmentDetails, 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() + .subsettingPolicyHealthReportId(subsettingPolicyHealthReportId) + .changeSubsettingPolicyHealthReportCompartmentDetails( + changeSubsettingPolicyHealthReportCompartmentDetails) + .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(",subsettingPolicyHealthReportId=") + .append(String.valueOf(this.subsettingPolicyHealthReportId)); + sb.append(",changeSubsettingPolicyHealthReportCompartmentDetails=") + .append(String.valueOf(this.changeSubsettingPolicyHealthReportCompartmentDetails)); + 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 ChangeSubsettingPolicyHealthReportCompartmentRequest)) { + return false; + } + + ChangeSubsettingPolicyHealthReportCompartmentRequest other = + (ChangeSubsettingPolicyHealthReportCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.subsettingPolicyHealthReportId, other.subsettingPolicyHealthReportId) + && java.util.Objects.equals( + this.changeSubsettingPolicyHealthReportCompartmentDetails, + other.changeSubsettingPolicyHealthReportCompartmentDetails) + && 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.subsettingPolicyHealthReportId == null + ? 43 + : this.subsettingPolicyHealthReportId.hashCode()); + result = + (result * PRIME) + + (this.changeSubsettingPolicyHealthReportCompartmentDetails == null + ? 43 + : this.changeSubsettingPolicyHealthReportCompartmentDetails + .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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateRegistrationPolicyRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateRegistrationPolicyRequest.java new file mode 100644 index 00000000000..85f6b0fd6a9 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateRegistrationPolicyRequest.java @@ -0,0 +1,350 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * CreateRegistrationPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class CreateRegistrationPolicyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.CreateRegistrationPolicyDetails> { + + /** Details of the Registration Policy */ + private com.oracle.bmc.datasafe.model.CreateRegistrationPolicyDetails + createRegistrationPolicyDetails; + + /** Details of the Registration Policy */ + public com.oracle.bmc.datasafe.model.CreateRegistrationPolicyDetails + getCreateRegistrationPolicyDetails() { + return createRegistrationPolicyDetails; + } + /** + * Indicates that the request is a dry run, if set to "true". A dry run request does not modify + * the configuration item details and is used only to perform validation on the submitted data. + */ + private Boolean opcDryRun; + + /** + * Indicates that the request is a dry run, if set to "true". A dry run request does not modify + * the configuration item details and is used only to perform validation on the submitted data. + */ + public Boolean getOpcDryRun() { + return opcDryRun; + } + /** Identifier of the cluster of the CDB associated to the registration policy being created. */ + private String xClusterId; + + /** Identifier of the cluster of the CDB associated to the registration policy being created. */ + public String getXClusterId() { + return xClusterId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.CreateRegistrationPolicyDetails getBody$() { + return createRegistrationPolicyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateRegistrationPolicyRequest, + com.oracle.bmc.datasafe.model.CreateRegistrationPolicyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details of the Registration Policy */ + private com.oracle.bmc.datasafe.model.CreateRegistrationPolicyDetails + createRegistrationPolicyDetails = null; + + /** + * Details of the Registration Policy + * + * @param createRegistrationPolicyDetails the value to set + * @return this builder instance + */ + public Builder createRegistrationPolicyDetails( + com.oracle.bmc.datasafe.model.CreateRegistrationPolicyDetails + createRegistrationPolicyDetails) { + this.createRegistrationPolicyDetails = createRegistrationPolicyDetails; + return this; + } + + /** + * Indicates that the request is a dry run, if set to "true". A dry run request does not + * modify the configuration item details and is used only to perform validation on the + * submitted data. + */ + private Boolean opcDryRun = null; + + /** + * Indicates that the request is a dry run, if set to "true". A dry run request does not + * modify the configuration item details and is used only to perform validation on the + * submitted data. + * + * @param opcDryRun the value to set + * @return this builder instance + */ + public Builder opcDryRun(Boolean opcDryRun) { + this.opcDryRun = opcDryRun; + return this; + } + + /** + * Identifier of the cluster of the CDB associated to the registration policy being created. + */ + private String xClusterId = null; + + /** + * Identifier of the cluster of the CDB associated to the registration policy being created. + * + * @param xClusterId the value to set + * @return this builder instance + */ + public Builder xClusterId(String xClusterId) { + this.xClusterId = xClusterId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** 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(CreateRegistrationPolicyRequest o) { + createRegistrationPolicyDetails(o.getCreateRegistrationPolicyDetails()); + opcDryRun(o.getOpcDryRun()); + xClusterId(o.getXClusterId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateRegistrationPolicyRequest 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 CreateRegistrationPolicyRequest + */ + public CreateRegistrationPolicyRequest build() { + CreateRegistrationPolicyRequest 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.datasafe.model.CreateRegistrationPolicyDetails body) { + createRegistrationPolicyDetails(body); + return this; + } + + /** + * Build the instance of CreateRegistrationPolicyRequest 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 CreateRegistrationPolicyRequest + */ + public CreateRegistrationPolicyRequest buildWithoutInvocationCallback() { + CreateRegistrationPolicyRequest request = new CreateRegistrationPolicyRequest(); + request.createRegistrationPolicyDetails = createRegistrationPolicyDetails; + request.opcDryRun = opcDryRun; + request.xClusterId = xClusterId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateRegistrationPolicyRequest(createRegistrationPolicyDetails, opcDryRun, + // xClusterId, 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() + .createRegistrationPolicyDetails(createRegistrationPolicyDetails) + .opcDryRun(opcDryRun) + .xClusterId(xClusterId) + .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(",createRegistrationPolicyDetails=") + .append(String.valueOf(this.createRegistrationPolicyDetails)); + sb.append(",opcDryRun=").append(String.valueOf(this.opcDryRun)); + sb.append(",xClusterId=").append(String.valueOf(this.xClusterId)); + 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 CreateRegistrationPolicyRequest)) { + return false; + } + + CreateRegistrationPolicyRequest other = (CreateRegistrationPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createRegistrationPolicyDetails, other.createRegistrationPolicyDetails) + && java.util.Objects.equals(this.opcDryRun, other.opcDryRun) + && java.util.Objects.equals(this.xClusterId, other.xClusterId) + && 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.createRegistrationPolicyDetails == null + ? 43 + : this.createRegistrationPolicyDetails.hashCode()); + result = (result * PRIME) + (this.opcDryRun == null ? 43 : this.opcDryRun.hashCode()); + result = (result * PRIME) + (this.xClusterId == null ? 43 : this.xClusterId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingPolicyRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingPolicyRequest.java new file mode 100644 index 00000000000..8286b5e0eb8 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingPolicyRequest.java @@ -0,0 +1,282 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * CreateSubsettingPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class CreateSubsettingPolicyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.CreateSubsettingPolicyDetails> { + + /** Details to create a new subsetting policy. */ + private com.oracle.bmc.datasafe.model.CreateSubsettingPolicyDetails + createSubsettingPolicyDetails; + + /** Details to create a new subsetting policy. */ + public com.oracle.bmc.datasafe.model.CreateSubsettingPolicyDetails + getCreateSubsettingPolicyDetails() { + return createSubsettingPolicyDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.CreateSubsettingPolicyDetails getBody$() { + return createSubsettingPolicyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateSubsettingPolicyRequest, + com.oracle.bmc.datasafe.model.CreateSubsettingPolicyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details to create a new subsetting policy. */ + private com.oracle.bmc.datasafe.model.CreateSubsettingPolicyDetails + createSubsettingPolicyDetails = null; + + /** + * Details to create a new subsetting policy. + * + * @param createSubsettingPolicyDetails the value to set + * @return this builder instance + */ + public Builder createSubsettingPolicyDetails( + com.oracle.bmc.datasafe.model.CreateSubsettingPolicyDetails + createSubsettingPolicyDetails) { + this.createSubsettingPolicyDetails = createSubsettingPolicyDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** 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(CreateSubsettingPolicyRequest o) { + createSubsettingPolicyDetails(o.getCreateSubsettingPolicyDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateSubsettingPolicyRequest 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 CreateSubsettingPolicyRequest + */ + public CreateSubsettingPolicyRequest build() { + CreateSubsettingPolicyRequest 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.datasafe.model.CreateSubsettingPolicyDetails body) { + createSubsettingPolicyDetails(body); + return this; + } + + /** + * Build the instance of CreateSubsettingPolicyRequest 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 CreateSubsettingPolicyRequest + */ + public CreateSubsettingPolicyRequest buildWithoutInvocationCallback() { + CreateSubsettingPolicyRequest request = new CreateSubsettingPolicyRequest(); + request.createSubsettingPolicyDetails = createSubsettingPolicyDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateSubsettingPolicyRequest(createSubsettingPolicyDetails, 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() + .createSubsettingPolicyDetails(createSubsettingPolicyDetails) + .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(",createSubsettingPolicyDetails=") + .append(String.valueOf(this.createSubsettingPolicyDetails)); + 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 CreateSubsettingPolicyRequest)) { + return false; + } + + CreateSubsettingPolicyRequest other = (CreateSubsettingPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createSubsettingPolicyDetails, other.createSubsettingPolicyDetails) + && 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.createSubsettingPolicyDetails == null + ? 43 + : this.createSubsettingPolicyDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingRuleRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingRuleRequest.java new file mode 100644 index 00000000000..544797adc74 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingRuleRequest.java @@ -0,0 +1,311 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateSubsettingRuleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class CreateSubsettingRuleRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails> { + + /** Details to create a new subsetting rule. */ + private com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails createSubsettingRuleDetails; + + /** Details to create a new subsetting rule. */ + public com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails + getCreateSubsettingRuleDetails() { + return createSubsettingRuleDetails; + } + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails getBody$() { + return createSubsettingRuleDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateSubsettingRuleRequest, + com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details to create a new subsetting rule. */ + private com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails + createSubsettingRuleDetails = null; + + /** + * Details to create a new subsetting rule. + * + * @param createSubsettingRuleDetails the value to set + * @return this builder instance + */ + public Builder createSubsettingRuleDetails( + com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails + createSubsettingRuleDetails) { + this.createSubsettingRuleDetails = createSubsettingRuleDetails; + return this; + } + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** 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(CreateSubsettingRuleRequest o) { + createSubsettingRuleDetails(o.getCreateSubsettingRuleDetails()); + subsettingPolicyId(o.getSubsettingPolicyId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateSubsettingRuleRequest 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 CreateSubsettingRuleRequest + */ + public CreateSubsettingRuleRequest build() { + CreateSubsettingRuleRequest 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.datasafe.model.CreateSubsettingRuleDetails body) { + createSubsettingRuleDetails(body); + return this; + } + + /** + * Build the instance of CreateSubsettingRuleRequest 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 CreateSubsettingRuleRequest + */ + public CreateSubsettingRuleRequest buildWithoutInvocationCallback() { + CreateSubsettingRuleRequest request = new CreateSubsettingRuleRequest(); + request.createSubsettingRuleDetails = createSubsettingRuleDetails; + request.subsettingPolicyId = subsettingPolicyId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateSubsettingRuleRequest(createSubsettingRuleDetails, subsettingPolicyId, + // 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() + .createSubsettingRuleDetails(createSubsettingRuleDetails) + .subsettingPolicyId(subsettingPolicyId) + .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(",createSubsettingRuleDetails=") + .append(String.valueOf(this.createSubsettingRuleDetails)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + 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 CreateSubsettingRuleRequest)) { + return false; + } + + CreateSubsettingRuleRequest other = (CreateSubsettingRuleRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createSubsettingRuleDetails, other.createSubsettingRuleDetails) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && 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.createSubsettingRuleDetails == null + ? 43 + : this.createSubsettingRuleDetails.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingSchemaRelationRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingSchemaRelationRequest.java new file mode 100644 index 00000000000..b1537ac406a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/CreateSubsettingSchemaRelationRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * CreateSubsettingSchemaRelationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class CreateSubsettingSchemaRelationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.CreateSubsettingSchemaRelationDetails> { + + /** Details to create a new referential relation. */ + private com.oracle.bmc.datasafe.model.CreateSubsettingSchemaRelationDetails + createSubsettingSchemaRelationDetails; + + /** Details to create a new referential relation. */ + public com.oracle.bmc.datasafe.model.CreateSubsettingSchemaRelationDetails + getCreateSubsettingSchemaRelationDetails() { + return createSubsettingSchemaRelationDetails; + } + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.CreateSubsettingSchemaRelationDetails getBody$() { + return createSubsettingSchemaRelationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateSubsettingSchemaRelationRequest, + com.oracle.bmc.datasafe.model.CreateSubsettingSchemaRelationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details to create a new referential relation. */ + private com.oracle.bmc.datasafe.model.CreateSubsettingSchemaRelationDetails + createSubsettingSchemaRelationDetails = null; + + /** + * Details to create a new referential relation. + * + * @param createSubsettingSchemaRelationDetails the value to set + * @return this builder instance + */ + public Builder createSubsettingSchemaRelationDetails( + com.oracle.bmc.datasafe.model.CreateSubsettingSchemaRelationDetails + createSubsettingSchemaRelationDetails) { + this.createSubsettingSchemaRelationDetails = createSubsettingSchemaRelationDetails; + return this; + } + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** 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(CreateSubsettingSchemaRelationRequest o) { + createSubsettingSchemaRelationDetails(o.getCreateSubsettingSchemaRelationDetails()); + subsettingPolicyId(o.getSubsettingPolicyId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateSubsettingSchemaRelationRequest 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 CreateSubsettingSchemaRelationRequest + */ + public CreateSubsettingSchemaRelationRequest build() { + CreateSubsettingSchemaRelationRequest 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.datasafe.model.CreateSubsettingSchemaRelationDetails body) { + createSubsettingSchemaRelationDetails(body); + return this; + } + + /** + * Build the instance of CreateSubsettingSchemaRelationRequest 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 CreateSubsettingSchemaRelationRequest + */ + public CreateSubsettingSchemaRelationRequest buildWithoutInvocationCallback() { + CreateSubsettingSchemaRelationRequest request = + new CreateSubsettingSchemaRelationRequest(); + request.createSubsettingSchemaRelationDetails = createSubsettingSchemaRelationDetails; + request.subsettingPolicyId = subsettingPolicyId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateSubsettingSchemaRelationRequest(createSubsettingSchemaRelationDetails, + // subsettingPolicyId, 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() + .createSubsettingSchemaRelationDetails(createSubsettingSchemaRelationDetails) + .subsettingPolicyId(subsettingPolicyId) + .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(",createSubsettingSchemaRelationDetails=") + .append(String.valueOf(this.createSubsettingSchemaRelationDetails)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + 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 CreateSubsettingSchemaRelationRequest)) { + return false; + } + + CreateSubsettingSchemaRelationRequest other = (CreateSubsettingSchemaRelationRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createSubsettingSchemaRelationDetails, + other.createSubsettingSchemaRelationDetails) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && 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.createSubsettingSchemaRelationDetails == null + ? 43 + : this.createSubsettingSchemaRelationDetails.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteRegistrationPolicyRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteRegistrationPolicyRequest.java new file mode 100644 index 00000000000..2032c8ae521 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteRegistrationPolicyRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * DeleteRegistrationPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteRegistrationPolicyRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the registration policy to be used for identification */ + private String registrationPolicyId; + + /** The OCID of the registration policy to be used for identification */ + public String getRegistrationPolicyId() { + return registrationPolicyId; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteRegistrationPolicyRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the registration policy to be used for identification */ + private String registrationPolicyId = null; + + /** + * The OCID of the registration policy to be used for identification + * + * @param registrationPolicyId the value to set + * @return this builder instance + */ + public Builder registrationPolicyId(String registrationPolicyId) { + this.registrationPolicyId = registrationPolicyId; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteRegistrationPolicyRequest o) { + registrationPolicyId(o.getRegistrationPolicyId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteRegistrationPolicyRequest 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 DeleteRegistrationPolicyRequest + */ + public DeleteRegistrationPolicyRequest build() { + DeleteRegistrationPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteRegistrationPolicyRequest 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 DeleteRegistrationPolicyRequest + */ + public DeleteRegistrationPolicyRequest buildWithoutInvocationCallback() { + DeleteRegistrationPolicyRequest request = new DeleteRegistrationPolicyRequest(); + request.registrationPolicyId = registrationPolicyId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteRegistrationPolicyRequest(registrationPolicyId, 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() + .registrationPolicyId(registrationPolicyId) + .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(",registrationPolicyId=").append(String.valueOf(this.registrationPolicyId)); + 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 DeleteRegistrationPolicyRequest)) { + return false; + } + + DeleteRegistrationPolicyRequest other = (DeleteRegistrationPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.registrationPolicyId, other.registrationPolicyId) + && 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.registrationPolicyId == null + ? 43 + : this.registrationPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingPolicyHealthReportRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingPolicyHealthReportRequest.java new file mode 100644 index 00000000000..17dc37437a9 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingPolicyHealthReportRequest.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * DeleteSubsettingPolicyHealthReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteSubsettingPolicyHealthReportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting health report. */ + private String subsettingPolicyHealthReportId; + + /** The OCID of the subsetting health report. */ + public String getSubsettingPolicyHealthReportId() { + return subsettingPolicyHealthReportId; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteSubsettingPolicyHealthReportRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting health report. */ + private String subsettingPolicyHealthReportId = null; + + /** + * The OCID of the subsetting health report. + * + * @param subsettingPolicyHealthReportId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyHealthReportId(String subsettingPolicyHealthReportId) { + this.subsettingPolicyHealthReportId = subsettingPolicyHealthReportId; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteSubsettingPolicyHealthReportRequest o) { + subsettingPolicyHealthReportId(o.getSubsettingPolicyHealthReportId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteSubsettingPolicyHealthReportRequest 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 DeleteSubsettingPolicyHealthReportRequest + */ + public DeleteSubsettingPolicyHealthReportRequest build() { + DeleteSubsettingPolicyHealthReportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteSubsettingPolicyHealthReportRequest 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 DeleteSubsettingPolicyHealthReportRequest + */ + public DeleteSubsettingPolicyHealthReportRequest buildWithoutInvocationCallback() { + DeleteSubsettingPolicyHealthReportRequest request = + new DeleteSubsettingPolicyHealthReportRequest(); + request.subsettingPolicyHealthReportId = subsettingPolicyHealthReportId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteSubsettingPolicyHealthReportRequest(subsettingPolicyHealthReportId, + // 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() + .subsettingPolicyHealthReportId(subsettingPolicyHealthReportId) + .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(",subsettingPolicyHealthReportId=") + .append(String.valueOf(this.subsettingPolicyHealthReportId)); + 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 DeleteSubsettingPolicyHealthReportRequest)) { + return false; + } + + DeleteSubsettingPolicyHealthReportRequest other = + (DeleteSubsettingPolicyHealthReportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.subsettingPolicyHealthReportId, other.subsettingPolicyHealthReportId) + && 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.subsettingPolicyHealthReportId == null + ? 43 + : this.subsettingPolicyHealthReportId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingPolicyRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingPolicyRequest.java new file mode 100644 index 00000000000..5782390df3e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingPolicyRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * DeleteSubsettingPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteSubsettingPolicyRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteSubsettingPolicyRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteSubsettingPolicyRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteSubsettingPolicyRequest 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 DeleteSubsettingPolicyRequest + */ + public DeleteSubsettingPolicyRequest build() { + DeleteSubsettingPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteSubsettingPolicyRequest 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 DeleteSubsettingPolicyRequest + */ + public DeleteSubsettingPolicyRequest buildWithoutInvocationCallback() { + DeleteSubsettingPolicyRequest request = new DeleteSubsettingPolicyRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteSubsettingPolicyRequest(subsettingPolicyId, 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() + .subsettingPolicyId(subsettingPolicyId) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + 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 DeleteSubsettingPolicyRequest)) { + return false; + } + + DeleteSubsettingPolicyRequest other = (DeleteSubsettingPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && 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.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingReportRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingReportRequest.java new file mode 100644 index 00000000000..ba9368cc652 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingReportRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * DeleteSubsettingReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteSubsettingReportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting report. */ + private String subsettingReportId; + + /** The OCID of the subsetting report. */ + public String getSubsettingReportId() { + return subsettingReportId; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteSubsettingReportRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting report. */ + private String subsettingReportId = null; + + /** + * The OCID of the subsetting report. + * + * @param subsettingReportId the value to set + * @return this builder instance + */ + public Builder subsettingReportId(String subsettingReportId) { + this.subsettingReportId = subsettingReportId; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteSubsettingReportRequest o) { + subsettingReportId(o.getSubsettingReportId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteSubsettingReportRequest 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 DeleteSubsettingReportRequest + */ + public DeleteSubsettingReportRequest build() { + DeleteSubsettingReportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteSubsettingReportRequest 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 DeleteSubsettingReportRequest + */ + public DeleteSubsettingReportRequest buildWithoutInvocationCallback() { + DeleteSubsettingReportRequest request = new DeleteSubsettingReportRequest(); + request.subsettingReportId = subsettingReportId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteSubsettingReportRequest(subsettingReportId, 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() + .subsettingReportId(subsettingReportId) + .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(",subsettingReportId=").append(String.valueOf(this.subsettingReportId)); + 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 DeleteSubsettingReportRequest)) { + return false; + } + + DeleteSubsettingReportRequest other = (DeleteSubsettingReportRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingReportId, other.subsettingReportId) + && 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.subsettingReportId == null + ? 43 + : this.subsettingReportId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingRuleRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingRuleRequest.java new file mode 100644 index 00000000000..82205385e0f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingRuleRequest.java @@ -0,0 +1,282 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 DeleteSubsettingRuleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteSubsettingRuleRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingRuleKey; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + public String getSubsettingRuleKey() { + return subsettingRuleKey; + } + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteSubsettingRuleRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingRuleKey = null; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + * + * @param subsettingRuleKey the value to set + * @return this builder instance + */ + public Builder subsettingRuleKey(String subsettingRuleKey) { + this.subsettingRuleKey = subsettingRuleKey; + return this; + } + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteSubsettingRuleRequest o) { + subsettingRuleKey(o.getSubsettingRuleKey()); + subsettingPolicyId(o.getSubsettingPolicyId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteSubsettingRuleRequest 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 DeleteSubsettingRuleRequest + */ + public DeleteSubsettingRuleRequest build() { + DeleteSubsettingRuleRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteSubsettingRuleRequest 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 DeleteSubsettingRuleRequest + */ + public DeleteSubsettingRuleRequest buildWithoutInvocationCallback() { + DeleteSubsettingRuleRequest request = new DeleteSubsettingRuleRequest(); + request.subsettingRuleKey = subsettingRuleKey; + request.subsettingPolicyId = subsettingPolicyId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteSubsettingRuleRequest(subsettingRuleKey, subsettingPolicyId, 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() + .subsettingRuleKey(subsettingRuleKey) + .subsettingPolicyId(subsettingPolicyId) + .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(",subsettingRuleKey=").append(String.valueOf(this.subsettingRuleKey)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + 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 DeleteSubsettingRuleRequest)) { + return false; + } + + DeleteSubsettingRuleRequest other = (DeleteSubsettingRuleRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingRuleKey, other.subsettingRuleKey) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && 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.subsettingRuleKey == null ? 43 : this.subsettingRuleKey.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingSchemaRelationRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingSchemaRelationRequest.java new file mode 100644 index 00000000000..bfdb8e79899 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteSubsettingSchemaRelationRequest.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * DeleteSubsettingSchemaRelationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteSubsettingSchemaRelationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique key that identifies the subsetting relation. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingSchemaRelationKey; + + /** + * The unique key that identifies the subsetting relation. It's numeric and unique within a + * subsetting policy. + */ + public String getSubsettingSchemaRelationKey() { + return subsettingSchemaRelationKey; + } + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteSubsettingSchemaRelationRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique key that identifies the subsetting relation. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingSchemaRelationKey = null; + + /** + * The unique key that identifies the subsetting relation. It's numeric and unique within a + * subsetting policy. + * + * @param subsettingSchemaRelationKey the value to set + * @return this builder instance + */ + public Builder subsettingSchemaRelationKey(String subsettingSchemaRelationKey) { + this.subsettingSchemaRelationKey = subsettingSchemaRelationKey; + return this; + } + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteSubsettingSchemaRelationRequest o) { + subsettingSchemaRelationKey(o.getSubsettingSchemaRelationKey()); + subsettingPolicyId(o.getSubsettingPolicyId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteSubsettingSchemaRelationRequest 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 DeleteSubsettingSchemaRelationRequest + */ + public DeleteSubsettingSchemaRelationRequest build() { + DeleteSubsettingSchemaRelationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteSubsettingSchemaRelationRequest 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 DeleteSubsettingSchemaRelationRequest + */ + public DeleteSubsettingSchemaRelationRequest buildWithoutInvocationCallback() { + DeleteSubsettingSchemaRelationRequest request = + new DeleteSubsettingSchemaRelationRequest(); + request.subsettingSchemaRelationKey = subsettingSchemaRelationKey; + request.subsettingPolicyId = subsettingPolicyId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteSubsettingSchemaRelationRequest(subsettingSchemaRelationKey, + // subsettingPolicyId, 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() + .subsettingSchemaRelationKey(subsettingSchemaRelationKey) + .subsettingPolicyId(subsettingPolicyId) + .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(",subsettingSchemaRelationKey=") + .append(String.valueOf(this.subsettingSchemaRelationKey)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + 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 DeleteSubsettingSchemaRelationRequest)) { + return false; + } + + DeleteSubsettingSchemaRelationRequest other = (DeleteSubsettingSchemaRelationRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.subsettingSchemaRelationKey, other.subsettingSchemaRelationKey) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && 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.subsettingSchemaRelationKey == null + ? 43 + : this.subsettingSchemaRelationKey.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadSubsettingLogRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadSubsettingLogRequest.java new file mode 100644 index 00000000000..93099a5695e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadSubsettingLogRequest.java @@ -0,0 +1,261 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * DownloadSubsettingLogRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DownloadSubsettingLogRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.DownloadSubsettingLogDetails> { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to download subsetting log. */ + private com.oracle.bmc.datasafe.model.DownloadSubsettingLogDetails downloadSubsettingLogDetails; + + /** Details to download subsetting log. */ + public com.oracle.bmc.datasafe.model.DownloadSubsettingLogDetails + getDownloadSubsettingLogDetails() { + return downloadSubsettingLogDetails; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.DownloadSubsettingLogDetails getBody$() { + return downloadSubsettingLogDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DownloadSubsettingLogRequest, + com.oracle.bmc.datasafe.model.DownloadSubsettingLogDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to download subsetting log. */ + private com.oracle.bmc.datasafe.model.DownloadSubsettingLogDetails + downloadSubsettingLogDetails = null; + + /** + * Details to download subsetting log. + * + * @param downloadSubsettingLogDetails the value to set + * @return this builder instance + */ + public Builder downloadSubsettingLogDetails( + com.oracle.bmc.datasafe.model.DownloadSubsettingLogDetails + downloadSubsettingLogDetails) { + this.downloadSubsettingLogDetails = downloadSubsettingLogDetails; + 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(DownloadSubsettingLogRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + downloadSubsettingLogDetails(o.getDownloadSubsettingLogDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DownloadSubsettingLogRequest 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 DownloadSubsettingLogRequest + */ + public DownloadSubsettingLogRequest build() { + DownloadSubsettingLogRequest 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.datasafe.model.DownloadSubsettingLogDetails body) { + downloadSubsettingLogDetails(body); + return this; + } + + /** + * Build the instance of DownloadSubsettingLogRequest 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 DownloadSubsettingLogRequest + */ + public DownloadSubsettingLogRequest buildWithoutInvocationCallback() { + DownloadSubsettingLogRequest request = new DownloadSubsettingLogRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.downloadSubsettingLogDetails = downloadSubsettingLogDetails; + request.opcRequestId = opcRequestId; + return request; + // new DownloadSubsettingLogRequest(subsettingPolicyId, downloadSubsettingLogDetails, + // 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() + .subsettingPolicyId(subsettingPolicyId) + .downloadSubsettingLogDetails(downloadSubsettingLogDetails) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",downloadSubsettingLogDetails=") + .append(String.valueOf(this.downloadSubsettingLogDetails)); + 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 DownloadSubsettingLogRequest)) { + return false; + } + + DownloadSubsettingLogRequest other = (DownloadSubsettingLogRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.downloadSubsettingLogDetails, other.downloadSubsettingLogDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.downloadSubsettingLogDetails == null + ? 43 + : this.downloadSubsettingLogDetails.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/DownloadSubsettingPolicyRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadSubsettingPolicyRequest.java new file mode 100644 index 00000000000..499d84aa1ca --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadSubsettingPolicyRequest.java @@ -0,0 +1,262 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * DownloadSubsettingPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DownloadSubsettingPolicyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.DownloadSubsettingPolicyDetails> { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to download a subsetting policy file. */ + private com.oracle.bmc.datasafe.model.DownloadSubsettingPolicyDetails + downloadSubsettingPolicyDetails; + + /** Details to download a subsetting policy file. */ + public com.oracle.bmc.datasafe.model.DownloadSubsettingPolicyDetails + getDownloadSubsettingPolicyDetails() { + return downloadSubsettingPolicyDetails; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.DownloadSubsettingPolicyDetails getBody$() { + return downloadSubsettingPolicyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DownloadSubsettingPolicyRequest, + com.oracle.bmc.datasafe.model.DownloadSubsettingPolicyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to download a subsetting policy file. */ + private com.oracle.bmc.datasafe.model.DownloadSubsettingPolicyDetails + downloadSubsettingPolicyDetails = null; + + /** + * Details to download a subsetting policy file. + * + * @param downloadSubsettingPolicyDetails the value to set + * @return this builder instance + */ + public Builder downloadSubsettingPolicyDetails( + com.oracle.bmc.datasafe.model.DownloadSubsettingPolicyDetails + downloadSubsettingPolicyDetails) { + this.downloadSubsettingPolicyDetails = downloadSubsettingPolicyDetails; + 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(DownloadSubsettingPolicyRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + downloadSubsettingPolicyDetails(o.getDownloadSubsettingPolicyDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DownloadSubsettingPolicyRequest 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 DownloadSubsettingPolicyRequest + */ + public DownloadSubsettingPolicyRequest build() { + DownloadSubsettingPolicyRequest 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.datasafe.model.DownloadSubsettingPolicyDetails body) { + downloadSubsettingPolicyDetails(body); + return this; + } + + /** + * Build the instance of DownloadSubsettingPolicyRequest 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 DownloadSubsettingPolicyRequest + */ + public DownloadSubsettingPolicyRequest buildWithoutInvocationCallback() { + DownloadSubsettingPolicyRequest request = new DownloadSubsettingPolicyRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.downloadSubsettingPolicyDetails = downloadSubsettingPolicyDetails; + request.opcRequestId = opcRequestId; + return request; + // new DownloadSubsettingPolicyRequest(subsettingPolicyId, + // downloadSubsettingPolicyDetails, 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() + .subsettingPolicyId(subsettingPolicyId) + .downloadSubsettingPolicyDetails(downloadSubsettingPolicyDetails) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",downloadSubsettingPolicyDetails=") + .append(String.valueOf(this.downloadSubsettingPolicyDetails)); + 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 DownloadSubsettingPolicyRequest)) { + return false; + } + + DownloadSubsettingPolicyRequest other = (DownloadSubsettingPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.downloadSubsettingPolicyDetails, other.downloadSubsettingPolicyDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.downloadSubsettingPolicyDetails == null + ? 43 + : this.downloadSubsettingPolicyDetails.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/DownloadSubsettingReportRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadSubsettingReportRequest.java new file mode 100644 index 00000000000..b6110ba5fe3 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadSubsettingReportRequest.java @@ -0,0 +1,262 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * DownloadSubsettingReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DownloadSubsettingReportRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.DownloadSubsettingReportDetails> { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to download a subsetting report. */ + private com.oracle.bmc.datasafe.model.DownloadSubsettingReportDetails + downloadSubsettingReportDetails; + + /** Details to download a subsetting report. */ + public com.oracle.bmc.datasafe.model.DownloadSubsettingReportDetails + getDownloadSubsettingReportDetails() { + return downloadSubsettingReportDetails; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.DownloadSubsettingReportDetails getBody$() { + return downloadSubsettingReportDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DownloadSubsettingReportRequest, + com.oracle.bmc.datasafe.model.DownloadSubsettingReportDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to download a subsetting report. */ + private com.oracle.bmc.datasafe.model.DownloadSubsettingReportDetails + downloadSubsettingReportDetails = null; + + /** + * Details to download a subsetting report. + * + * @param downloadSubsettingReportDetails the value to set + * @return this builder instance + */ + public Builder downloadSubsettingReportDetails( + com.oracle.bmc.datasafe.model.DownloadSubsettingReportDetails + downloadSubsettingReportDetails) { + this.downloadSubsettingReportDetails = downloadSubsettingReportDetails; + 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(DownloadSubsettingReportRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + downloadSubsettingReportDetails(o.getDownloadSubsettingReportDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DownloadSubsettingReportRequest 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 DownloadSubsettingReportRequest + */ + public DownloadSubsettingReportRequest build() { + DownloadSubsettingReportRequest 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.datasafe.model.DownloadSubsettingReportDetails body) { + downloadSubsettingReportDetails(body); + return this; + } + + /** + * Build the instance of DownloadSubsettingReportRequest 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 DownloadSubsettingReportRequest + */ + public DownloadSubsettingReportRequest buildWithoutInvocationCallback() { + DownloadSubsettingReportRequest request = new DownloadSubsettingReportRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.downloadSubsettingReportDetails = downloadSubsettingReportDetails; + request.opcRequestId = opcRequestId; + return request; + // new DownloadSubsettingReportRequest(subsettingPolicyId, + // downloadSubsettingReportDetails, 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() + .subsettingPolicyId(subsettingPolicyId) + .downloadSubsettingReportDetails(downloadSubsettingReportDetails) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",downloadSubsettingReportDetails=") + .append(String.valueOf(this.downloadSubsettingReportDetails)); + 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 DownloadSubsettingReportRequest)) { + return false; + } + + DownloadSubsettingReportRequest other = (DownloadSubsettingReportRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.downloadSubsettingReportDetails, other.downloadSubsettingReportDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.downloadSubsettingReportDetails == null + ? 43 + : this.downloadSubsettingReportDetails.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/EstimateTableSizesRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/EstimateTableSizesRequest.java new file mode 100644 index 00000000000..a8660082b9a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/EstimateTableSizesRequest.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 EstimateTableSizesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class EstimateTableSizesRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.EstimateTableSizesDetails> { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to estimate table sizes. */ + private com.oracle.bmc.datasafe.model.EstimateTableSizesDetails estimateTableSizesDetails; + + /** Details to estimate table sizes. */ + public com.oracle.bmc.datasafe.model.EstimateTableSizesDetails getEstimateTableSizesDetails() { + return estimateTableSizesDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.EstimateTableSizesDetails getBody$() { + return estimateTableSizesDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EstimateTableSizesRequest, + com.oracle.bmc.datasafe.model.EstimateTableSizesDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to estimate table sizes. */ + private com.oracle.bmc.datasafe.model.EstimateTableSizesDetails estimateTableSizesDetails = + null; + + /** + * Details to estimate table sizes. + * + * @param estimateTableSizesDetails the value to set + * @return this builder instance + */ + public Builder estimateTableSizesDetails( + com.oracle.bmc.datasafe.model.EstimateTableSizesDetails estimateTableSizesDetails) { + this.estimateTableSizesDetails = estimateTableSizesDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** 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(EstimateTableSizesRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + estimateTableSizesDetails(o.getEstimateTableSizesDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EstimateTableSizesRequest 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 EstimateTableSizesRequest + */ + public EstimateTableSizesRequest build() { + EstimateTableSizesRequest 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.datasafe.model.EstimateTableSizesDetails body) { + estimateTableSizesDetails(body); + return this; + } + + /** + * Build the instance of EstimateTableSizesRequest 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 EstimateTableSizesRequest + */ + public EstimateTableSizesRequest buildWithoutInvocationCallback() { + EstimateTableSizesRequest request = new EstimateTableSizesRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.estimateTableSizesDetails = estimateTableSizesDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new EstimateTableSizesRequest(subsettingPolicyId, estimateTableSizesDetails, + // 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() + .subsettingPolicyId(subsettingPolicyId) + .estimateTableSizesDetails(estimateTableSizesDetails) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",estimateTableSizesDetails=") + .append(String.valueOf(this.estimateTableSizesDetails)); + 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 EstimateTableSizesRequest)) { + return false; + } + + EstimateTableSizesRequest other = (EstimateTableSizesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.estimateTableSizesDetails, other.estimateTableSizesDetails) + && 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.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.estimateTableSizesDetails == null + ? 43 + : this.estimateTableSizesDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingHealthReportRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingHealthReportRequest.java new file mode 100644 index 00000000000..08fba49dba4 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingHealthReportRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * GenerateSubsettingHealthReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateSubsettingHealthReportRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.GenerateSubsettingHealthReportDetails> { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to perform an health check. */ + private com.oracle.bmc.datasafe.model.GenerateSubsettingHealthReportDetails + generateSubsettingHealthReportDetails; + + /** Details to perform an health check. */ + public com.oracle.bmc.datasafe.model.GenerateSubsettingHealthReportDetails + getGenerateSubsettingHealthReportDetails() { + return generateSubsettingHealthReportDetails; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.GenerateSubsettingHealthReportDetails getBody$() { + return generateSubsettingHealthReportDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateSubsettingHealthReportRequest, + com.oracle.bmc.datasafe.model.GenerateSubsettingHealthReportDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to perform an health check. */ + private com.oracle.bmc.datasafe.model.GenerateSubsettingHealthReportDetails + generateSubsettingHealthReportDetails = null; + + /** + * Details to perform an health check. + * + * @param generateSubsettingHealthReportDetails the value to set + * @return this builder instance + */ + public Builder generateSubsettingHealthReportDetails( + com.oracle.bmc.datasafe.model.GenerateSubsettingHealthReportDetails + generateSubsettingHealthReportDetails) { + this.generateSubsettingHealthReportDetails = generateSubsettingHealthReportDetails; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GenerateSubsettingHealthReportRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + generateSubsettingHealthReportDetails(o.getGenerateSubsettingHealthReportDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateSubsettingHealthReportRequest 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 GenerateSubsettingHealthReportRequest + */ + public GenerateSubsettingHealthReportRequest build() { + GenerateSubsettingHealthReportRequest 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.datasafe.model.GenerateSubsettingHealthReportDetails body) { + generateSubsettingHealthReportDetails(body); + return this; + } + + /** + * Build the instance of GenerateSubsettingHealthReportRequest 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 GenerateSubsettingHealthReportRequest + */ + public GenerateSubsettingHealthReportRequest buildWithoutInvocationCallback() { + GenerateSubsettingHealthReportRequest request = + new GenerateSubsettingHealthReportRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.generateSubsettingHealthReportDetails = generateSubsettingHealthReportDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new GenerateSubsettingHealthReportRequest(subsettingPolicyId, + // generateSubsettingHealthReportDetails, 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() + .subsettingPolicyId(subsettingPolicyId) + .generateSubsettingHealthReportDetails(generateSubsettingHealthReportDetails) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",generateSubsettingHealthReportDetails=") + .append(String.valueOf(this.generateSubsettingHealthReportDetails)); + 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 GenerateSubsettingHealthReportRequest)) { + return false; + } + + GenerateSubsettingHealthReportRequest other = (GenerateSubsettingHealthReportRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.generateSubsettingHealthReportDetails, + other.generateSubsettingHealthReportDetails) + && 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.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.generateSubsettingHealthReportDetails == null + ? 43 + : this.generateSubsettingHealthReportDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingPolicyForDownloadRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingPolicyForDownloadRequest.java new file mode 100644 index 00000000000..84a56ce079f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingPolicyForDownloadRequest.java @@ -0,0 +1,272 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * GenerateSubsettingPolicyForDownloadRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateSubsettingPolicyForDownloadRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.GenerateSubsettingPolicyForDownloadDetails> { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to generate a subsetting policy file. */ + private com.oracle.bmc.datasafe.model.GenerateSubsettingPolicyForDownloadDetails + generateSubsettingPolicyForDownloadDetails; + + /** Details to generate a subsetting policy file. */ + public com.oracle.bmc.datasafe.model.GenerateSubsettingPolicyForDownloadDetails + getGenerateSubsettingPolicyForDownloadDetails() { + return generateSubsettingPolicyForDownloadDetails; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.GenerateSubsettingPolicyForDownloadDetails getBody$() { + return generateSubsettingPolicyForDownloadDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateSubsettingPolicyForDownloadRequest, + com.oracle.bmc.datasafe.model.GenerateSubsettingPolicyForDownloadDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to generate a subsetting policy file. */ + private com.oracle.bmc.datasafe.model.GenerateSubsettingPolicyForDownloadDetails + generateSubsettingPolicyForDownloadDetails = null; + + /** + * Details to generate a subsetting policy file. + * + * @param generateSubsettingPolicyForDownloadDetails the value to set + * @return this builder instance + */ + public Builder generateSubsettingPolicyForDownloadDetails( + com.oracle.bmc.datasafe.model.GenerateSubsettingPolicyForDownloadDetails + generateSubsettingPolicyForDownloadDetails) { + this.generateSubsettingPolicyForDownloadDetails = + generateSubsettingPolicyForDownloadDetails; + 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(GenerateSubsettingPolicyForDownloadRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + generateSubsettingPolicyForDownloadDetails( + o.getGenerateSubsettingPolicyForDownloadDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateSubsettingPolicyForDownloadRequest 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 GenerateSubsettingPolicyForDownloadRequest + */ + public GenerateSubsettingPolicyForDownloadRequest build() { + GenerateSubsettingPolicyForDownloadRequest 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.datasafe.model.GenerateSubsettingPolicyForDownloadDetails body) { + generateSubsettingPolicyForDownloadDetails(body); + return this; + } + + /** + * Build the instance of GenerateSubsettingPolicyForDownloadRequest 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 GenerateSubsettingPolicyForDownloadRequest + */ + public GenerateSubsettingPolicyForDownloadRequest buildWithoutInvocationCallback() { + GenerateSubsettingPolicyForDownloadRequest request = + new GenerateSubsettingPolicyForDownloadRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.generateSubsettingPolicyForDownloadDetails = + generateSubsettingPolicyForDownloadDetails; + request.opcRequestId = opcRequestId; + return request; + // new GenerateSubsettingPolicyForDownloadRequest(subsettingPolicyId, + // generateSubsettingPolicyForDownloadDetails, 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() + .subsettingPolicyId(subsettingPolicyId) + .generateSubsettingPolicyForDownloadDetails( + generateSubsettingPolicyForDownloadDetails) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",generateSubsettingPolicyForDownloadDetails=") + .append(String.valueOf(this.generateSubsettingPolicyForDownloadDetails)); + 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 GenerateSubsettingPolicyForDownloadRequest)) { + return false; + } + + GenerateSubsettingPolicyForDownloadRequest other = + (GenerateSubsettingPolicyForDownloadRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.generateSubsettingPolicyForDownloadDetails, + other.generateSubsettingPolicyForDownloadDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.generateSubsettingPolicyForDownloadDetails == null + ? 43 + : this.generateSubsettingPolicyForDownloadDetails.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/GenerateSubsettingReportForDownloadRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingReportForDownloadRequest.java new file mode 100644 index 00000000000..d16861e5be1 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateSubsettingReportForDownloadRequest.java @@ -0,0 +1,272 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * GenerateSubsettingReportForDownloadRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateSubsettingReportForDownloadRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.GenerateSubsettingReportForDownloadDetails> { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to generate a downloadable subsetting report. */ + private com.oracle.bmc.datasafe.model.GenerateSubsettingReportForDownloadDetails + generateSubsettingReportForDownloadDetails; + + /** Details to generate a downloadable subsetting report. */ + public com.oracle.bmc.datasafe.model.GenerateSubsettingReportForDownloadDetails + getGenerateSubsettingReportForDownloadDetails() { + return generateSubsettingReportForDownloadDetails; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.GenerateSubsettingReportForDownloadDetails getBody$() { + return generateSubsettingReportForDownloadDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateSubsettingReportForDownloadRequest, + com.oracle.bmc.datasafe.model.GenerateSubsettingReportForDownloadDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to generate a downloadable subsetting report. */ + private com.oracle.bmc.datasafe.model.GenerateSubsettingReportForDownloadDetails + generateSubsettingReportForDownloadDetails = null; + + /** + * Details to generate a downloadable subsetting report. + * + * @param generateSubsettingReportForDownloadDetails the value to set + * @return this builder instance + */ + public Builder generateSubsettingReportForDownloadDetails( + com.oracle.bmc.datasafe.model.GenerateSubsettingReportForDownloadDetails + generateSubsettingReportForDownloadDetails) { + this.generateSubsettingReportForDownloadDetails = + generateSubsettingReportForDownloadDetails; + 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(GenerateSubsettingReportForDownloadRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + generateSubsettingReportForDownloadDetails( + o.getGenerateSubsettingReportForDownloadDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateSubsettingReportForDownloadRequest 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 GenerateSubsettingReportForDownloadRequest + */ + public GenerateSubsettingReportForDownloadRequest build() { + GenerateSubsettingReportForDownloadRequest 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.datasafe.model.GenerateSubsettingReportForDownloadDetails body) { + generateSubsettingReportForDownloadDetails(body); + return this; + } + + /** + * Build the instance of GenerateSubsettingReportForDownloadRequest 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 GenerateSubsettingReportForDownloadRequest + */ + public GenerateSubsettingReportForDownloadRequest buildWithoutInvocationCallback() { + GenerateSubsettingReportForDownloadRequest request = + new GenerateSubsettingReportForDownloadRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.generateSubsettingReportForDownloadDetails = + generateSubsettingReportForDownloadDetails; + request.opcRequestId = opcRequestId; + return request; + // new GenerateSubsettingReportForDownloadRequest(subsettingPolicyId, + // generateSubsettingReportForDownloadDetails, 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() + .subsettingPolicyId(subsettingPolicyId) + .generateSubsettingReportForDownloadDetails( + generateSubsettingReportForDownloadDetails) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",generateSubsettingReportForDownloadDetails=") + .append(String.valueOf(this.generateSubsettingReportForDownloadDetails)); + 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 GenerateSubsettingReportForDownloadRequest)) { + return false; + } + + GenerateSubsettingReportForDownloadRequest other = + (GenerateSubsettingReportForDownloadRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.generateSubsettingReportForDownloadDetails, + other.generateSubsettingReportForDownloadDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.generateSubsettingReportForDownloadDetails == null + ? 43 + : this.generateSubsettingReportForDownloadDetails.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/GetRegistrationPolicyRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetRegistrationPolicyRequest.java new file mode 100644 index 00000000000..bff1ddb785f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetRegistrationPolicyRequest.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * GetRegistrationPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetRegistrationPolicyRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the registration policy to be used for identification */ + private String registrationPolicyId; + + /** The OCID of the registration policy to be used for identification */ + public String getRegistrationPolicyId() { + return registrationPolicyId; + } + /** 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< + GetRegistrationPolicyRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the registration policy to be used for identification */ + private String registrationPolicyId = null; + + /** + * The OCID of the registration policy to be used for identification + * + * @param registrationPolicyId the value to set + * @return this builder instance + */ + public Builder registrationPolicyId(String registrationPolicyId) { + this.registrationPolicyId = registrationPolicyId; + 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(GetRegistrationPolicyRequest o) { + registrationPolicyId(o.getRegistrationPolicyId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetRegistrationPolicyRequest 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 GetRegistrationPolicyRequest + */ + public GetRegistrationPolicyRequest build() { + GetRegistrationPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetRegistrationPolicyRequest 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 GetRegistrationPolicyRequest + */ + public GetRegistrationPolicyRequest buildWithoutInvocationCallback() { + GetRegistrationPolicyRequest request = new GetRegistrationPolicyRequest(); + request.registrationPolicyId = registrationPolicyId; + request.opcRequestId = opcRequestId; + return request; + // new GetRegistrationPolicyRequest(registrationPolicyId, 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().registrationPolicyId(registrationPolicyId).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(",registrationPolicyId=").append(String.valueOf(this.registrationPolicyId)); + 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 GetRegistrationPolicyRequest)) { + return false; + } + + GetRegistrationPolicyRequest other = (GetRegistrationPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.registrationPolicyId, other.registrationPolicyId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.registrationPolicyId == null + ? 43 + : this.registrationPolicyId.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/GetSubsettingPolicyHealthReportRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingPolicyHealthReportRequest.java new file mode 100644 index 00000000000..98033490e45 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingPolicyHealthReportRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * GetSubsettingPolicyHealthReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetSubsettingPolicyHealthReportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting health report. */ + private String subsettingPolicyHealthReportId; + + /** The OCID of the subsetting health report. */ + public String getSubsettingPolicyHealthReportId() { + return subsettingPolicyHealthReportId; + } + /** 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< + GetSubsettingPolicyHealthReportRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting health report. */ + private String subsettingPolicyHealthReportId = null; + + /** + * The OCID of the subsetting health report. + * + * @param subsettingPolicyHealthReportId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyHealthReportId(String subsettingPolicyHealthReportId) { + this.subsettingPolicyHealthReportId = subsettingPolicyHealthReportId; + 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(GetSubsettingPolicyHealthReportRequest o) { + subsettingPolicyHealthReportId(o.getSubsettingPolicyHealthReportId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSubsettingPolicyHealthReportRequest 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 GetSubsettingPolicyHealthReportRequest + */ + public GetSubsettingPolicyHealthReportRequest build() { + GetSubsettingPolicyHealthReportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetSubsettingPolicyHealthReportRequest 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 GetSubsettingPolicyHealthReportRequest + */ + public GetSubsettingPolicyHealthReportRequest buildWithoutInvocationCallback() { + GetSubsettingPolicyHealthReportRequest request = + new GetSubsettingPolicyHealthReportRequest(); + request.subsettingPolicyHealthReportId = subsettingPolicyHealthReportId; + request.opcRequestId = opcRequestId; + return request; + // new GetSubsettingPolicyHealthReportRequest(subsettingPolicyHealthReportId, + // 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() + .subsettingPolicyHealthReportId(subsettingPolicyHealthReportId) + .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(",subsettingPolicyHealthReportId=") + .append(String.valueOf(this.subsettingPolicyHealthReportId)); + 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 GetSubsettingPolicyHealthReportRequest)) { + return false; + } + + GetSubsettingPolicyHealthReportRequest other = (GetSubsettingPolicyHealthReportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.subsettingPolicyHealthReportId, other.subsettingPolicyHealthReportId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyHealthReportId == null + ? 43 + : this.subsettingPolicyHealthReportId.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/GetSubsettingPolicyRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingPolicyRequest.java new file mode 100644 index 00000000000..479b5d532e1 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingPolicyRequest.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GetSubsettingPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetSubsettingPolicyRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** 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< + GetSubsettingPolicyRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + 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(GetSubsettingPolicyRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSubsettingPolicyRequest 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 GetSubsettingPolicyRequest + */ + public GetSubsettingPolicyRequest build() { + GetSubsettingPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetSubsettingPolicyRequest 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 GetSubsettingPolicyRequest + */ + public GetSubsettingPolicyRequest buildWithoutInvocationCallback() { + GetSubsettingPolicyRequest request = new GetSubsettingPolicyRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.opcRequestId = opcRequestId; + return request; + // new GetSubsettingPolicyRequest(subsettingPolicyId, 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().subsettingPolicyId(subsettingPolicyId).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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + 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 GetSubsettingPolicyRequest)) { + return false; + } + + GetSubsettingPolicyRequest other = (GetSubsettingPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.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/GetSubsettingReportRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingReportRequest.java new file mode 100644 index 00000000000..74fe04b7a90 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingReportRequest.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GetSubsettingReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetSubsettingReportRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting report. */ + private String subsettingReportId; + + /** The OCID of the subsetting report. */ + public String getSubsettingReportId() { + return subsettingReportId; + } + /** 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< + GetSubsettingReportRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting report. */ + private String subsettingReportId = null; + + /** + * The OCID of the subsetting report. + * + * @param subsettingReportId the value to set + * @return this builder instance + */ + public Builder subsettingReportId(String subsettingReportId) { + this.subsettingReportId = subsettingReportId; + 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(GetSubsettingReportRequest o) { + subsettingReportId(o.getSubsettingReportId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSubsettingReportRequest 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 GetSubsettingReportRequest + */ + public GetSubsettingReportRequest build() { + GetSubsettingReportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetSubsettingReportRequest 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 GetSubsettingReportRequest + */ + public GetSubsettingReportRequest buildWithoutInvocationCallback() { + GetSubsettingReportRequest request = new GetSubsettingReportRequest(); + request.subsettingReportId = subsettingReportId; + request.opcRequestId = opcRequestId; + return request; + // new GetSubsettingReportRequest(subsettingReportId, 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().subsettingReportId(subsettingReportId).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(",subsettingReportId=").append(String.valueOf(this.subsettingReportId)); + 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 GetSubsettingReportRequest)) { + return false; + } + + GetSubsettingReportRequest other = (GetSubsettingReportRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingReportId, other.subsettingReportId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingReportId == null + ? 43 + : this.subsettingReportId.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/GetSubsettingRuleRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingRuleRequest.java new file mode 100644 index 00000000000..dd75375fe59 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingRuleRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use GetSubsettingRuleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetSubsettingRuleRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingRuleKey; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + public String getSubsettingRuleKey() { + return subsettingRuleKey; + } + /** 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< + GetSubsettingRuleRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingRuleKey = null; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + * + * @param subsettingRuleKey the value to set + * @return this builder instance + */ + public Builder subsettingRuleKey(String subsettingRuleKey) { + this.subsettingRuleKey = subsettingRuleKey; + 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(GetSubsettingRuleRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + subsettingRuleKey(o.getSubsettingRuleKey()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSubsettingRuleRequest 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 GetSubsettingRuleRequest + */ + public GetSubsettingRuleRequest build() { + GetSubsettingRuleRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetSubsettingRuleRequest 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 GetSubsettingRuleRequest + */ + public GetSubsettingRuleRequest buildWithoutInvocationCallback() { + GetSubsettingRuleRequest request = new GetSubsettingRuleRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.subsettingRuleKey = subsettingRuleKey; + request.opcRequestId = opcRequestId; + return request; + // new GetSubsettingRuleRequest(subsettingPolicyId, subsettingRuleKey, 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() + .subsettingPolicyId(subsettingPolicyId) + .subsettingRuleKey(subsettingRuleKey) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",subsettingRuleKey=").append(String.valueOf(this.subsettingRuleKey)); + 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 GetSubsettingRuleRequest)) { + return false; + } + + GetSubsettingRuleRequest other = (GetSubsettingRuleRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.subsettingRuleKey, other.subsettingRuleKey) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.subsettingRuleKey == null ? 43 : this.subsettingRuleKey.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/GetSubsettingSchemaRelationRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingSchemaRelationRequest.java new file mode 100644 index 00000000000..8dd06f46112 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetSubsettingSchemaRelationRequest.java @@ -0,0 +1,242 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * GetSubsettingSchemaRelationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetSubsettingSchemaRelationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * The unique key that identifies the subsetting relation. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingSchemaRelationKey; + + /** + * The unique key that identifies the subsetting relation. It's numeric and unique within a + * subsetting policy. + */ + public String getSubsettingSchemaRelationKey() { + return subsettingSchemaRelationKey; + } + /** 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< + GetSubsettingSchemaRelationRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** + * The unique key that identifies the subsetting relation. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingSchemaRelationKey = null; + + /** + * The unique key that identifies the subsetting relation. It's numeric and unique within a + * subsetting policy. + * + * @param subsettingSchemaRelationKey the value to set + * @return this builder instance + */ + public Builder subsettingSchemaRelationKey(String subsettingSchemaRelationKey) { + this.subsettingSchemaRelationKey = subsettingSchemaRelationKey; + 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(GetSubsettingSchemaRelationRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + subsettingSchemaRelationKey(o.getSubsettingSchemaRelationKey()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSubsettingSchemaRelationRequest 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 GetSubsettingSchemaRelationRequest + */ + public GetSubsettingSchemaRelationRequest build() { + GetSubsettingSchemaRelationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetSubsettingSchemaRelationRequest 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 GetSubsettingSchemaRelationRequest + */ + public GetSubsettingSchemaRelationRequest buildWithoutInvocationCallback() { + GetSubsettingSchemaRelationRequest request = new GetSubsettingSchemaRelationRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.subsettingSchemaRelationKey = subsettingSchemaRelationKey; + request.opcRequestId = opcRequestId; + return request; + // new GetSubsettingSchemaRelationRequest(subsettingPolicyId, + // subsettingSchemaRelationKey, 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() + .subsettingPolicyId(subsettingPolicyId) + .subsettingSchemaRelationKey(subsettingSchemaRelationKey) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",subsettingSchemaRelationKey=") + .append(String.valueOf(this.subsettingSchemaRelationKey)); + 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 GetSubsettingSchemaRelationRequest)) { + return false; + } + + GetSubsettingSchemaRelationRequest other = (GetSubsettingSchemaRelationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.subsettingSchemaRelationKey, other.subsettingSchemaRelationKey) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.subsettingSchemaRelationKey == null + ? 43 + : this.subsettingSchemaRelationKey.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/ListRegistrationPoliciesRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListRegistrationPoliciesRequest.java new file mode 100644 index 00000000000..a78eee3e1d5 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListRegistrationPoliciesRequest.java @@ -0,0 +1,885 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListRegistrationPoliciesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListRegistrationPoliciesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** 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; + } + /** A filter to return only resources that match the specified display name. */ + private String displayName; + + /** A filter to return only resources that match the specified display name. */ + public String getDisplayName() { + return displayName; + } + /** + * Field to sort the registration policies by. Only one sort order (sortOrder) can be specified. + * Defaults to sorting by {@code timeCreated} in descending order + */ + private SortBy sortBy; + + /** + * Field to sort the registration policies by. Only one sort order (sortOrder) can be specified. + * Defaults to sorting by {@code timeCreated} in descending order + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + EnablementLevel("enablementLevel"), + 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); + } + }; + + /** + * Field to sort the registration policies by. Only one sort order (sortOrder) can be specified. + * Defaults to sorting by {@code timeCreated} in descending order + */ + public SortBy getSortBy() { + return sortBy; + } + /** Filter registration policies by their lifecycle state. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy.LifecycleState lifecycleState; + + /** Filter registration policies by their lifecycle state. */ + public com.oracle.bmc.datasafe.model.RegistrationPolicy.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** Filter registration policies by resource type. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy.EnablementLevel enablementLevel; + + /** Filter registration policies by resource type. */ + public com.oracle.bmc.datasafe.model.RegistrationPolicy.EnablementLevel getEnablementLevel() { + return enablementLevel; + } + /** Filter to return the registration policy matching the specified resource OCID. */ + private String resourceId; + + /** Filter to return the registration policy matching the specified resource OCID. */ + public String getResourceId() { + return resourceId; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** 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; + } + /** + * A filter to return only the resources that were created after the specified date and time, as + * defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedGreaterThanOrEqualTo; + + /** + * A filter to return only the resources that were created after the specified date and time, as + * defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + public java.util.Date getTimeCreatedGreaterThanOrEqualTo() { + return timeCreatedGreaterThanOrEqualTo; + } + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined + * by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedLessThan; + + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined + * by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + public java.util.Date getTimeCreatedLessThan() { + return timeCreatedLessThan; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** Filter to return the registration policy matching the specified OCID. */ + private String registrationPolicyId; + + /** Filter to return the registration policy matching the specified OCID. */ + public String getRegistrationPolicyId() { + return registrationPolicyId; + } + /** + * Filter to return the registration policies matching the specified connectionType i.e + * ONPREM_CONNECTOR or PRIVATE_ENDPOINT. + */ + private com.oracle.bmc.datasafe.model.PolicyConnectionOption.ConnectionType connectionType; + + /** + * Filter to return the registration policies matching the specified connectionType i.e + * ONPREM_CONNECTOR or PRIVATE_ENDPOINT. + */ + public com.oracle.bmc.datasafe.model.PolicyConnectionOption.ConnectionType getConnectionType() { + return connectionType; + } + /** Filter to return the registration policies matching the specified connection ID. */ + private String connectionId; + + /** Filter to return the registration policies matching the specified connection ID. */ + public String getConnectionId() { + return connectionId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListRegistrationPoliciesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** 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; + } + + /** A filter to return only resources that match the specified display name. */ + private String displayName = null; + + /** + * A filter to return only resources that match the specified display name. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Field to sort the registration policies by. Only one sort order (sortOrder) can be + * specified. Defaults to sorting by {@code timeCreated} in descending order + */ + private SortBy sortBy = null; + + /** + * Field to sort the registration policies by. Only one sort order (sortOrder) can be + * specified. Defaults to sorting by {@code timeCreated} in descending order + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** Filter registration policies by their lifecycle state. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy.LifecycleState lifecycleState = + null; + + /** + * Filter registration policies by their lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.datasafe.model.RegistrationPolicy.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** Filter registration policies by resource type. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy.EnablementLevel enablementLevel = + null; + + /** + * Filter registration policies by resource type. + * + * @param enablementLevel the value to set + * @return this builder instance + */ + public Builder enablementLevel( + com.oracle.bmc.datasafe.model.RegistrationPolicy.EnablementLevel enablementLevel) { + this.enablementLevel = enablementLevel; + return this; + } + + /** Filter to return the registration policy matching the specified resource OCID. */ + private String resourceId = null; + + /** + * Filter to return the registration policy matching the specified resource OCID. + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + 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; + } + + /** + * A filter to return only the resources that were created after the specified date and + * time, as defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedGreaterThanOrEqualTo = null; + + /** + * A filter to return only the resources that were created after the specified date and + * time, as defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + * + * @param timeCreatedGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeCreatedGreaterThanOrEqualTo( + java.util.Date timeCreatedGreaterThanOrEqualTo) { + this.timeCreatedGreaterThanOrEqualTo = timeCreatedGreaterThanOrEqualTo; + return this; + } + + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + * defined by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedLessThan = null; + + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + * defined by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + * + * @param timeCreatedLessThan the value to set + * @return this builder instance + */ + public Builder timeCreatedLessThan(java.util.Date timeCreatedLessThan) { + this.timeCreatedLessThan = timeCreatedLessThan; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For 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; + } + + /** Filter to return the registration policy matching the specified OCID. */ + private String registrationPolicyId = null; + + /** + * Filter to return the registration policy matching the specified OCID. + * + * @param registrationPolicyId the value to set + * @return this builder instance + */ + public Builder registrationPolicyId(String registrationPolicyId) { + this.registrationPolicyId = registrationPolicyId; + return this; + } + + /** + * Filter to return the registration policies matching the specified connectionType i.e + * ONPREM_CONNECTOR or PRIVATE_ENDPOINT. + */ + private com.oracle.bmc.datasafe.model.PolicyConnectionOption.ConnectionType connectionType = + null; + + /** + * Filter to return the registration policies matching the specified connectionType i.e + * ONPREM_CONNECTOR or PRIVATE_ENDPOINT. + * + * @param connectionType the value to set + * @return this builder instance + */ + public Builder connectionType( + com.oracle.bmc.datasafe.model.PolicyConnectionOption.ConnectionType + connectionType) { + this.connectionType = connectionType; + return this; + } + + /** Filter to return the registration policies matching the specified connection ID. */ + private String connectionId = null; + + /** + * Filter to return the registration policies matching the specified connection ID. + * + * @param connectionId the value to set + * @return this builder instance + */ + public Builder connectionId(String connectionId) { + this.connectionId = connectionId; + 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(ListRegistrationPoliciesRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + sortBy(o.getSortBy()); + lifecycleState(o.getLifecycleState()); + enablementLevel(o.getEnablementLevel()); + resourceId(o.getResourceId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + sortOrder(o.getSortOrder()); + timeCreatedGreaterThanOrEqualTo(o.getTimeCreatedGreaterThanOrEqualTo()); + timeCreatedLessThan(o.getTimeCreatedLessThan()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + registrationPolicyId(o.getRegistrationPolicyId()); + connectionType(o.getConnectionType()); + connectionId(o.getConnectionId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListRegistrationPoliciesRequest 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 ListRegistrationPoliciesRequest + */ + public ListRegistrationPoliciesRequest build() { + ListRegistrationPoliciesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListRegistrationPoliciesRequest 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 ListRegistrationPoliciesRequest + */ + public ListRegistrationPoliciesRequest buildWithoutInvocationCallback() { + ListRegistrationPoliciesRequest request = new ListRegistrationPoliciesRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.sortBy = sortBy; + request.lifecycleState = lifecycleState; + request.enablementLevel = enablementLevel; + request.resourceId = resourceId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.sortOrder = sortOrder; + request.timeCreatedGreaterThanOrEqualTo = timeCreatedGreaterThanOrEqualTo; + request.timeCreatedLessThan = timeCreatedLessThan; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.registrationPolicyId = registrationPolicyId; + request.connectionType = connectionType; + request.connectionId = connectionId; + return request; + // new ListRegistrationPoliciesRequest(compartmentId, displayName, sortBy, + // lifecycleState, enablementLevel, resourceId, compartmentIdInSubtree, accessLevel, + // sortOrder, timeCreatedGreaterThanOrEqualTo, timeCreatedLessThan, opcRequestId, limit, + // page, registrationPolicyId, connectionType, connectionId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayName(displayName) + .sortBy(sortBy) + .lifecycleState(lifecycleState) + .enablementLevel(enablementLevel) + .resourceId(resourceId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .accessLevel(accessLevel) + .sortOrder(sortOrder) + .timeCreatedGreaterThanOrEqualTo(timeCreatedGreaterThanOrEqualTo) + .timeCreatedLessThan(timeCreatedLessThan) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .registrationPolicyId(registrationPolicyId) + .connectionType(connectionType) + .connectionId(connectionId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",enablementLevel=").append(String.valueOf(this.enablementLevel)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",timeCreatedGreaterThanOrEqualTo=") + .append(String.valueOf(this.timeCreatedGreaterThanOrEqualTo)); + sb.append(",timeCreatedLessThan=").append(String.valueOf(this.timeCreatedLessThan)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",registrationPolicyId=").append(String.valueOf(this.registrationPolicyId)); + sb.append(",connectionType=").append(String.valueOf(this.connectionType)); + sb.append(",connectionId=").append(String.valueOf(this.connectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRegistrationPoliciesRequest)) { + return false; + } + + ListRegistrationPoliciesRequest other = (ListRegistrationPoliciesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.enablementLevel, other.enablementLevel) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.accessLevel, other.accessLevel) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals( + this.timeCreatedGreaterThanOrEqualTo, other.timeCreatedGreaterThanOrEqualTo) + && java.util.Objects.equals(this.timeCreatedLessThan, other.timeCreatedLessThan) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.registrationPolicyId, other.registrationPolicyId) + && java.util.Objects.equals(this.connectionType, other.connectionType) + && java.util.Objects.equals(this.connectionId, other.connectionId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.enablementLevel == null ? 43 : this.enablementLevel.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = (result * PRIME) + (this.accessLevel == null ? 43 : this.accessLevel.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.timeCreatedGreaterThanOrEqualTo == null + ? 43 + : this.timeCreatedGreaterThanOrEqualTo.hashCode()); + result = + (result * PRIME) + + (this.timeCreatedLessThan == null + ? 43 + : this.timeCreatedLessThan.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = + (result * PRIME) + + (this.registrationPolicyId == null + ? 43 + : this.registrationPolicyId.hashCode()); + result = + (result * PRIME) + + (this.connectionType == null ? 43 : this.connectionType.hashCode()); + result = (result * PRIME) + (this.connectionId == null ? 43 : this.connectionId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListRegistrationPolicyTargetDatabasesRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListRegistrationPolicyTargetDatabasesRequest.java new file mode 100644 index 00000000000..30dcee17828 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListRegistrationPolicyTargetDatabasesRequest.java @@ -0,0 +1,436 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListRegistrationPolicyTargetDatabasesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListRegistrationPolicyTargetDatabasesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the registration policy to be used for identification */ + private String registrationPolicyId; + + /** The OCID of the registration policy to be used for identification */ + public String getRegistrationPolicyId() { + return registrationPolicyId; + } + /** 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; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return the target database only if it is registered via the registration policy. + */ + private String targetDatabaseId; + + /** + * A filter to return the target database only if it is registered via the registration policy. + */ + public String getTargetDatabaseId() { + return targetDatabaseId; + } + /** + * Filters registered targets associated with this registration policy by membership status. - + * OPTIN: returns targets that are included (opted in) by the policy. - OPTOUT: returns targets + * that are explicitly excluded (opted out) by the policy. + */ + private MembershipStatus membershipStatus; + + /** + * Filters registered targets associated with this registration policy by membership status. - + * OPTIN: returns targets that are included (opted in) by the policy. - OPTOUT: returns targets + * that are explicitly excluded (opted out) by the policy. + */ + public enum MembershipStatus implements com.oracle.bmc.http.internal.BmcEnum { + Optin("OPTIN"), + Optout("OPTOUT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MembershipStatus v : MembershipStatus.values()) { + map.put(v.getValue(), v); + } + } + + MembershipStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MembershipStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid MembershipStatus: " + key); + } + }; + + /** + * Filters registered targets associated with this registration policy by membership status. - + * OPTIN: returns targets that are included (opted in) by the policy. - OPTOUT: returns targets + * that are explicitly excluded (opted out) by the policy. + */ + public MembershipStatus getMembershipStatus() { + return membershipStatus; + } + /** + * 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListRegistrationPolicyTargetDatabasesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the registration policy to be used for identification */ + private String registrationPolicyId = null; + + /** + * The OCID of the registration policy to be used for identification + * + * @param registrationPolicyId the value to set + * @return this builder instance + */ + public Builder registrationPolicyId(String registrationPolicyId) { + this.registrationPolicyId = registrationPolicyId; + 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; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return the target database only if it is registered via the registration + * policy. + */ + private String targetDatabaseId = null; + + /** + * A filter to return the target database only if it is registered via the registration + * policy. + * + * @param targetDatabaseId the value to set + * @return this builder instance + */ + public Builder targetDatabaseId(String targetDatabaseId) { + this.targetDatabaseId = targetDatabaseId; + return this; + } + + /** + * Filters registered targets associated with this registration policy by membership status. + * - OPTIN: returns targets that are included (opted in) by the policy. - OPTOUT: returns + * targets that are explicitly excluded (opted out) by the policy. + */ + private MembershipStatus membershipStatus = null; + + /** + * Filters registered targets associated with this registration policy by membership status. + * - OPTIN: returns targets that are included (opted in) by the policy. - OPTOUT: returns + * targets that are explicitly excluded (opted out) by the policy. + * + * @param membershipStatus the value to set + * @return this builder instance + */ + public Builder membershipStatus(MembershipStatus membershipStatus) { + this.membershipStatus = membershipStatus; + 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; + } + + /** + * 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(ListRegistrationPolicyTargetDatabasesRequest o) { + registrationPolicyId(o.getRegistrationPolicyId()); + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + targetDatabaseId(o.getTargetDatabaseId()); + membershipStatus(o.getMembershipStatus()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListRegistrationPolicyTargetDatabasesRequest 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 ListRegistrationPolicyTargetDatabasesRequest + */ + public ListRegistrationPolicyTargetDatabasesRequest build() { + ListRegistrationPolicyTargetDatabasesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListRegistrationPolicyTargetDatabasesRequest 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 ListRegistrationPolicyTargetDatabasesRequest + */ + public ListRegistrationPolicyTargetDatabasesRequest buildWithoutInvocationCallback() { + ListRegistrationPolicyTargetDatabasesRequest request = + new ListRegistrationPolicyTargetDatabasesRequest(); + request.registrationPolicyId = registrationPolicyId; + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.targetDatabaseId = targetDatabaseId; + request.membershipStatus = membershipStatus; + request.limit = limit; + request.page = page; + return request; + // new ListRegistrationPolicyTargetDatabasesRequest(registrationPolicyId, compartmentId, + // opcRequestId, targetDatabaseId, membershipStatus, limit, page); + } + } + + /** + * 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() + .registrationPolicyId(registrationPolicyId) + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .targetDatabaseId(targetDatabaseId) + .membershipStatus(membershipStatus) + .limit(limit) + .page(page); + } + + /** + * 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(",registrationPolicyId=").append(String.valueOf(this.registrationPolicyId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",targetDatabaseId=").append(String.valueOf(this.targetDatabaseId)); + sb.append(",membershipStatus=").append(String.valueOf(this.membershipStatus)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRegistrationPolicyTargetDatabasesRequest)) { + return false; + } + + ListRegistrationPolicyTargetDatabasesRequest other = + (ListRegistrationPolicyTargetDatabasesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.registrationPolicyId, other.registrationPolicyId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.targetDatabaseId, other.targetDatabaseId) + && java.util.Objects.equals(this.membershipStatus, other.membershipStatus) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.registrationPolicyId == null + ? 43 + : this.registrationPolicyId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.targetDatabaseId == null ? 43 : this.targetDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.membershipStatus == null ? 43 : this.membershipStatus.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettedObjectsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettedObjectsRequest.java new file mode 100644 index 00000000000..a3b1c96f20d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettedObjectsRequest.java @@ -0,0 +1,493 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListSubsettedObjectsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettedObjectsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting report. */ + private String subsettingReportId; + + /** The OCID of the subsetting report. */ + public String getSubsettingReportId() { + return subsettingReportId; + } + /** + * 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 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; + } + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for all the fields is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for all the fields is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + SchemaName("schemaName"), + ObjectName("objectName"), + ; + + 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 specify only one sorting parameter (sortOrder). The default + * order for all the fields is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName; + + /** A filter to return only items related to specific schema name. */ + public java.util.List getSchemaName() { + return schemaName; + } + /** A filter to return only items related to a specific object name. */ + private java.util.List objectName; + + /** A filter to return only items related to a specific object name. */ + public java.util.List getObjectName() { + return objectName; + } + /** 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< + ListSubsettedObjectsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting report. */ + private String subsettingReportId = null; + + /** + * The OCID of the subsetting report. + * + * @param subsettingReportId the value to set + * @return this builder instance + */ + public Builder subsettingReportId(String subsettingReportId) { + this.subsettingReportId = subsettingReportId; + 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 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; + } + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for all the fields is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for all the fields is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName = null; + + /** + * A filter to return only items related to specific schema name. + * + * @param schemaName the value to set + * @return this builder instance + */ + public Builder schemaName(java.util.List schemaName) { + this.schemaName = schemaName; + return this; + } + + /** + * Singular setter. A filter to return only items related to specific schema name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder schemaName(String singularValue) { + return this.schemaName(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only items related to a specific object name. */ + private java.util.List objectName = null; + + /** + * A filter to return only items related to a specific object name. + * + * @param objectName the value to set + * @return this builder instance + */ + public Builder objectName(java.util.List objectName) { + this.objectName = objectName; + return this; + } + + /** + * Singular setter. A filter to return only items related to a specific object name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder objectName(String singularValue) { + return this.objectName(java.util.Arrays.asList(singularValue)); + } + + /** 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(ListSubsettedObjectsRequest o) { + subsettingReportId(o.getSubsettingReportId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + schemaName(o.getSchemaName()); + objectName(o.getObjectName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettedObjectsRequest 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 ListSubsettedObjectsRequest + */ + public ListSubsettedObjectsRequest build() { + ListSubsettedObjectsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettedObjectsRequest 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 ListSubsettedObjectsRequest + */ + public ListSubsettedObjectsRequest buildWithoutInvocationCallback() { + ListSubsettedObjectsRequest request = new ListSubsettedObjectsRequest(); + request.subsettingReportId = subsettingReportId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.schemaName = schemaName; + request.objectName = objectName; + request.opcRequestId = opcRequestId; + return request; + // new ListSubsettedObjectsRequest(subsettingReportId, limit, page, sortOrder, sortBy, + // schemaName, objectName, 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() + .subsettingReportId(subsettingReportId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .schemaName(schemaName) + .objectName(objectName) + .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(",subsettingReportId=").append(String.valueOf(this.subsettingReportId)); + 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(",schemaName=").append(String.valueOf(this.schemaName)); + sb.append(",objectName=").append(String.valueOf(this.objectName)); + 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 ListSubsettedObjectsRequest)) { + return false; + } + + ListSubsettedObjectsRequest other = (ListSubsettedObjectsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingReportId, other.subsettingReportId) + && 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.schemaName, other.schemaName) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingReportId == null + ? 43 + : this.subsettingReportId.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.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.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/ListSubsettingAnalyticsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingAnalyticsRequest.java new file mode 100644 index 00000000000..78375efebca --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingAnalyticsRequest.java @@ -0,0 +1,734 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListSubsettingAnalyticsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingAnalyticsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** 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; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** Attribute by which the subsetting analytics data should be grouped. */ + private GroupBy groupBy; + + /** Attribute by which the subsetting analytics data should be grouped. */ + public enum GroupBy implements com.oracle.bmc.http.internal.BmcEnum { + TargetId("targetId"), + PolicyId("policyId"), + TargetIdAndPolicyId("targetIdAndPolicyId"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (GroupBy v : GroupBy.values()) { + map.put(v.getValue(), v); + } + } + + GroupBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static GroupBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid GroupBy: " + key); + } + }; + + /** Attribute by which the subsetting analytics data should be grouped. */ + public GroupBy getGroupBy() { + return groupBy; + } + /** A filter to return only items related to a specific target OCID. */ + private String targetId; + + /** A filter to return only items related to a specific target OCID. */ + public String getTargetId() { + return targetId; + } + /** A filter to return only the resources that match the specified subsetting policy OCID. */ + private String subsettingPolicyId; + + /** A filter to return only the resources that match the specified subsetting policy OCID. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** A filter to return the target database group that matches the specified OCID. */ + private String targetDatabaseGroupId; + + /** A filter to return the target database group that matches the specified OCID. */ + public String getTargetDatabaseGroupId() { + return targetDatabaseGroupId; + } + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for all the fields is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for all the fields is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeLastSubsetted("timeLastSubsetted"), + ; + + 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 specify only one sorting parameter (sortOrder). The default + * order for all the fields is ascending. + */ + 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; + } + /** + * A filter to return only the resources that were created after the specified date and time, as + * defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedGreaterThanOrEqualTo; + + /** + * A filter to return only the resources that were created after the specified date and time, as + * defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + public java.util.Date getTimeCreatedGreaterThanOrEqualTo() { + return timeCreatedGreaterThanOrEqualTo; + } + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined + * by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedLessThan; + + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined + * by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + public java.util.Date getTimeCreatedLessThan() { + return timeCreatedLessThan; + } + /** + * 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; + } + /** 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< + ListSubsettingAnalyticsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** 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; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** Attribute by which the subsetting analytics data should be grouped. */ + private GroupBy groupBy = null; + + /** + * Attribute by which the subsetting analytics data should be grouped. + * + * @param groupBy the value to set + * @return this builder instance + */ + public Builder groupBy(GroupBy groupBy) { + this.groupBy = groupBy; + return this; + } + + /** A filter to return only items related to a specific target OCID. */ + private String targetId = null; + + /** + * A filter to return only items related to a specific target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** + * A filter to return only the resources that match the specified subsetting policy OCID. + */ + private String subsettingPolicyId = null; + + /** + * A filter to return only the resources that match the specified subsetting policy OCID. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** A filter to return the target database group that matches the specified OCID. */ + private String targetDatabaseGroupId = null; + + /** + * A filter to return the target database group that matches the specified OCID. + * + * @param targetDatabaseGroupId the value to set + * @return this builder instance + */ + public Builder targetDatabaseGroupId(String targetDatabaseGroupId) { + this.targetDatabaseGroupId = targetDatabaseGroupId; + return this; + } + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for all the fields is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for all the fields is ascending. + * + * @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; + } + + /** + * A filter to return only the resources that were created after the specified date and + * time, as defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedGreaterThanOrEqualTo = null; + + /** + * A filter to return only the resources that were created after the specified date and + * time, as defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + * + * @param timeCreatedGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeCreatedGreaterThanOrEqualTo( + java.util.Date timeCreatedGreaterThanOrEqualTo) { + this.timeCreatedGreaterThanOrEqualTo = timeCreatedGreaterThanOrEqualTo; + return this; + } + + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + * defined by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedLessThan = null; + + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + * defined by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + * + * @param timeCreatedLessThan the value to set + * @return this builder instance + */ + public Builder timeCreatedLessThan(java.util.Date timeCreatedLessThan) { + this.timeCreatedLessThan = timeCreatedLessThan; + 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; + } + + /** 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(ListSubsettingAnalyticsRequest o) { + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + groupBy(o.getGroupBy()); + targetId(o.getTargetId()); + subsettingPolicyId(o.getSubsettingPolicyId()); + targetDatabaseGroupId(o.getTargetDatabaseGroupId()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + timeCreatedGreaterThanOrEqualTo(o.getTimeCreatedGreaterThanOrEqualTo()); + timeCreatedLessThan(o.getTimeCreatedLessThan()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettingAnalyticsRequest 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 ListSubsettingAnalyticsRequest + */ + public ListSubsettingAnalyticsRequest build() { + ListSubsettingAnalyticsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingAnalyticsRequest 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 ListSubsettingAnalyticsRequest + */ + public ListSubsettingAnalyticsRequest buildWithoutInvocationCallback() { + ListSubsettingAnalyticsRequest request = new ListSubsettingAnalyticsRequest(); + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.groupBy = groupBy; + request.targetId = targetId; + request.subsettingPolicyId = subsettingPolicyId; + request.targetDatabaseGroupId = targetDatabaseGroupId; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.timeCreatedGreaterThanOrEqualTo = timeCreatedGreaterThanOrEqualTo; + request.timeCreatedLessThan = timeCreatedLessThan; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListSubsettingAnalyticsRequest(compartmentId, compartmentIdInSubtree, groupBy, + // targetId, subsettingPolicyId, targetDatabaseGroupId, sortBy, sortOrder, + // timeCreatedGreaterThanOrEqualTo, timeCreatedLessThan, limit, page, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .groupBy(groupBy) + .targetId(targetId) + .subsettingPolicyId(subsettingPolicyId) + .targetDatabaseGroupId(targetDatabaseGroupId) + .sortBy(sortBy) + .sortOrder(sortOrder) + .timeCreatedGreaterThanOrEqualTo(timeCreatedGreaterThanOrEqualTo) + .timeCreatedLessThan(timeCreatedLessThan) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",groupBy=").append(String.valueOf(this.groupBy)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",targetDatabaseGroupId=").append(String.valueOf(this.targetDatabaseGroupId)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",timeCreatedGreaterThanOrEqualTo=") + .append(String.valueOf(this.timeCreatedGreaterThanOrEqualTo)); + sb.append(",timeCreatedLessThan=").append(String.valueOf(this.timeCreatedLessThan)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingAnalyticsRequest)) { + return false; + } + + ListSubsettingAnalyticsRequest other = (ListSubsettingAnalyticsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.groupBy, other.groupBy) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.targetDatabaseGroupId, other.targetDatabaseGroupId) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals( + this.timeCreatedGreaterThanOrEqualTo, other.timeCreatedGreaterThanOrEqualTo) + && java.util.Objects.equals(this.timeCreatedLessThan, other.timeCreatedLessThan) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = (result * PRIME) + (this.groupBy == null ? 43 : this.groupBy.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.targetDatabaseGroupId == null + ? 43 + : this.targetDatabaseGroupId.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.timeCreatedGreaterThanOrEqualTo == null + ? 43 + : this.timeCreatedGreaterThanOrEqualTo.hashCode()); + result = + (result * PRIME) + + (this.timeCreatedLessThan == null + ? 43 + : this.timeCreatedLessThan.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingErrorsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingErrorsRequest.java new file mode 100644 index 00000000000..5baa40f4099 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingErrorsRequest.java @@ -0,0 +1,471 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListSubsettingErrorsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting report. */ + private String subsettingReportId; + + /** The OCID of the subsetting report. */ + public String getSubsettingReportId() { + return subsettingReportId; + } + /** A filter to return only subsetting errors that match the specified step name. */ + private StepName stepName; + + /** A filter to return only subsetting errors that match the specified step name. */ + public enum StepName implements com.oracle.bmc.http.internal.BmcEnum { + Validate("VALIDATE"), + IdentifyRowsForSubset("IDENTIFY_ROWS_FOR_SUBSET"), + GenerateScript("GENERATE_SCRIPT"), + ExecuteSubsetting("EXECUTE_SUBSETTING"), + PreSubsetting("PRE_SUBSETTING"), + PostSubsetting("POST_SUBSETTING"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StepName v : StepName.values()) { + map.put(v.getValue(), v); + } + } + + StepName(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StepName create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StepName: " + key); + } + }; + + /** A filter to return only subsetting errors that match the specified step name. */ + public StepName getStepName() { + return stepName; + } + /** The field to sort by. The default order will be ascending. */ + private SortBy sortBy; + + /** The field to sort by. The default order will be ascending. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + StepName("stepName"), + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** The field to sort by. The default order will be ascending. */ + public SortBy getSortBy() { + return sortBy; + } + /** + * 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 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< + ListSubsettingErrorsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting report. */ + private String subsettingReportId = null; + + /** + * The OCID of the subsetting report. + * + * @param subsettingReportId the value to set + * @return this builder instance + */ + public Builder subsettingReportId(String subsettingReportId) { + this.subsettingReportId = subsettingReportId; + return this; + } + + /** A filter to return only subsetting errors that match the specified step name. */ + private StepName stepName = null; + + /** + * A filter to return only subsetting errors that match the specified step name. + * + * @param stepName the value to set + * @return this builder instance + */ + public Builder stepName(StepName stepName) { + this.stepName = stepName; + return this; + } + + /** The field to sort by. The default order will be ascending. */ + private SortBy sortBy = null; + + /** + * The field to sort by. The default order will be ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + 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 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(ListSubsettingErrorsRequest o) { + subsettingReportId(o.getSubsettingReportId()); + stepName(o.getStepName()); + sortBy(o.getSortBy()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettingErrorsRequest 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 ListSubsettingErrorsRequest + */ + public ListSubsettingErrorsRequest build() { + ListSubsettingErrorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingErrorsRequest 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 ListSubsettingErrorsRequest + */ + public ListSubsettingErrorsRequest buildWithoutInvocationCallback() { + ListSubsettingErrorsRequest request = new ListSubsettingErrorsRequest(); + request.subsettingReportId = subsettingReportId; + request.stepName = stepName; + request.sortBy = sortBy; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListSubsettingErrorsRequest(subsettingReportId, stepName, sortBy, limit, page, + // 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() + .subsettingReportId(subsettingReportId) + .stepName(stepName) + .sortBy(sortBy) + .limit(limit) + .page(page) + .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(",subsettingReportId=").append(String.valueOf(this.subsettingReportId)); + sb.append(",stepName=").append(String.valueOf(this.stepName)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + 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(",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 ListSubsettingErrorsRequest)) { + return false; + } + + ListSubsettingErrorsRequest other = (ListSubsettingErrorsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingReportId, other.subsettingReportId) + && java.util.Objects.equals(this.stepName, other.stepName) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && 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.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingReportId == null + ? 43 + : this.subsettingReportId.hashCode()); + result = (result * PRIME) + (this.stepName == null ? 43 : this.stepName.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPoliciesRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPoliciesRequest.java new file mode 100644 index 00000000000..eedb79104d8 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPoliciesRequest.java @@ -0,0 +1,889 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListSubsettingPoliciesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingPoliciesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** 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; + } + /** A filter to return only the resources that match the specified subsetting policy OCID. */ + private String subsettingPolicyId; + + /** A filter to return only the resources that match the specified subsetting policy OCID. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** A filter to return only the resources that match the specified masking policy OCID. */ + private String maskingPolicyId; + + /** A filter to return only the resources that match the specified masking policy OCID. */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + /** A filter to return only resources that match the specified display name. */ + private String displayName; + + /** A filter to return only resources that match the specified display name. */ + public String getDisplayName() { + return displayName; + } + /** + * 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; + } + /** A filter to return only the resources that match the specified lifecycle states. */ + private LifecycleState lifecycleState; + + /** A filter to return only the resources that match the specified lifecycle states. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + NeedsAttention("NEEDS_ATTENTION"), + Failed("FAILED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + map.put(v.getValue(), v); + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + + /** A filter to return only the resources that match the specified lifecycle states. */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + /** 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; + } + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for displayName is ascending. The + * displayName sort order is case sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for displayName is ascending. The + * displayName sort order is case sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for displayName is ascending. The + * displayName sort order is case sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return only the resources that match the specified sensitive data model OCID. */ + private String sensitiveDataModelId; + + /** A filter to return only the resources that match the specified sensitive data model OCID. */ + public String getSensitiveDataModelId() { + return sensitiveDataModelId; + } + /** A filter to return only items related to a specific target OCID. */ + private String targetId; + + /** A filter to return only items related to a specific target OCID. */ + public String getTargetId() { + return targetId; + } + /** + * A filter to return only the resources that were created after the specified date and time, as + * defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedGreaterThanOrEqualTo; + + /** + * A filter to return only the resources that were created after the specified date and time, as + * defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + public java.util.Date getTimeCreatedGreaterThanOrEqualTo() { + return timeCreatedGreaterThanOrEqualTo; + } + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined + * by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedLessThan; + + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined + * by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + public java.util.Date getTimeCreatedLessThan() { + return timeCreatedLessThan; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** 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< + ListSubsettingPoliciesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** 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; + } + + /** + * A filter to return only the resources that match the specified subsetting policy OCID. + */ + private String subsettingPolicyId = null; + + /** + * A filter to return only the resources that match the specified subsetting policy OCID. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** A filter to return only the resources that match the specified masking policy OCID. */ + private String maskingPolicyId = null; + + /** + * A filter to return only the resources that match the specified masking policy OCID. + * + * @param maskingPolicyId the value to set + * @return this builder instance + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + return this; + } + + /** A filter to return only resources that match the specified display name. */ + private String displayName = null; + + /** + * A filter to return only resources that match the specified display name. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + 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; + } + + /** A filter to return only the resources that match the specified lifecycle states. */ + private LifecycleState lifecycleState = null; + + /** + * A filter to return only the resources that match the specified lifecycle states. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + 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; + } + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for displayName is ascending. The + * displayName sort order is case sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for displayName is ascending. The + * displayName sort order is case sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * A filter to return only the resources that match the specified sensitive data model OCID. + */ + private String sensitiveDataModelId = null; + + /** + * A filter to return only the resources that match the specified sensitive data model OCID. + * + * @param sensitiveDataModelId the value to set + * @return this builder instance + */ + public Builder sensitiveDataModelId(String sensitiveDataModelId) { + this.sensitiveDataModelId = sensitiveDataModelId; + return this; + } + + /** A filter to return only items related to a specific target OCID. */ + private String targetId = null; + + /** + * A filter to return only items related to a specific target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** + * A filter to return only the resources that were created after the specified date and + * time, as defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedGreaterThanOrEqualTo = null; + + /** + * A filter to return only the resources that were created after the specified date and + * time, as defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using + * TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after + * that date. + * + *

*Example:** 2016-12-19T16:39:57.600Z + * + * @param timeCreatedGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeCreatedGreaterThanOrEqualTo( + java.util.Date timeCreatedGreaterThanOrEqualTo) { + this.timeCreatedGreaterThanOrEqualTo = timeCreatedGreaterThanOrEqualTo; + return this; + } + + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + * defined by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + */ + private java.util.Date timeCreatedLessThan = null; + + /** + * Search for resources that were created before a specific date. Specifying this parameter + * corresponding {@code timeCreatedLessThan} parameter will retrieve all resources created + * before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + * defined by RFC 3339. + * + *

*Example:** 2016-12-19T16:39:57.600Z + * + * @param timeCreatedLessThan the value to set + * @return this builder instance + */ + public Builder timeCreatedLessThan(java.util.Date timeCreatedLessThan) { + this.timeCreatedLessThan = timeCreatedLessThan; + return this; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + 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(ListSubsettingPoliciesRequest o) { + compartmentId(o.getCompartmentId()); + subsettingPolicyId(o.getSubsettingPolicyId()); + maskingPolicyId(o.getMaskingPolicyId()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + lifecycleState(o.getLifecycleState()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + sensitiveDataModelId(o.getSensitiveDataModelId()); + targetId(o.getTargetId()); + timeCreatedGreaterThanOrEqualTo(o.getTimeCreatedGreaterThanOrEqualTo()); + timeCreatedLessThan(o.getTimeCreatedLessThan()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettingPoliciesRequest 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 ListSubsettingPoliciesRequest + */ + public ListSubsettingPoliciesRequest build() { + ListSubsettingPoliciesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingPoliciesRequest 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 ListSubsettingPoliciesRequest + */ + public ListSubsettingPoliciesRequest buildWithoutInvocationCallback() { + ListSubsettingPoliciesRequest request = new ListSubsettingPoliciesRequest(); + request.compartmentId = compartmentId; + request.subsettingPolicyId = subsettingPolicyId; + request.maskingPolicyId = maskingPolicyId; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.lifecycleState = lifecycleState; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.sensitiveDataModelId = sensitiveDataModelId; + request.targetId = targetId; + request.timeCreatedGreaterThanOrEqualTo = timeCreatedGreaterThanOrEqualTo; + request.timeCreatedLessThan = timeCreatedLessThan; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.opcRequestId = opcRequestId; + return request; + // new ListSubsettingPoliciesRequest(compartmentId, subsettingPolicyId, maskingPolicyId, + // displayName, limit, page, lifecycleState, sortOrder, sortBy, sensitiveDataModelId, + // targetId, timeCreatedGreaterThanOrEqualTo, timeCreatedLessThan, + // compartmentIdInSubtree, accessLevel, 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) + .subsettingPolicyId(subsettingPolicyId) + .maskingPolicyId(maskingPolicyId) + .displayName(displayName) + .limit(limit) + .page(page) + .lifecycleState(lifecycleState) + .sortOrder(sortOrder) + .sortBy(sortBy) + .sensitiveDataModelId(sensitiveDataModelId) + .targetId(targetId) + .timeCreatedGreaterThanOrEqualTo(timeCreatedGreaterThanOrEqualTo) + .timeCreatedLessThan(timeCreatedLessThan) + .compartmentIdInSubtree(compartmentIdInSubtree) + .accessLevel(accessLevel) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sensitiveDataModelId=").append(String.valueOf(this.sensitiveDataModelId)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",timeCreatedGreaterThanOrEqualTo=") + .append(String.valueOf(this.timeCreatedGreaterThanOrEqualTo)); + sb.append(",timeCreatedLessThan=").append(String.valueOf(this.timeCreatedLessThan)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",accessLevel=").append(String.valueOf(this.accessLevel)); + 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 ListSubsettingPoliciesRequest)) { + return false; + } + + ListSubsettingPoliciesRequest other = (ListSubsettingPoliciesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sensitiveDataModelId, other.sensitiveDataModelId) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals( + this.timeCreatedGreaterThanOrEqualTo, other.timeCreatedGreaterThanOrEqualTo) + && java.util.Objects.equals(this.timeCreatedLessThan, other.timeCreatedLessThan) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.accessLevel, other.accessLevel) + && 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.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.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.sensitiveDataModelId == null + ? 43 + : this.sensitiveDataModelId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.timeCreatedGreaterThanOrEqualTo == null + ? 43 + : this.timeCreatedGreaterThanOrEqualTo.hashCode()); + result = + (result * PRIME) + + (this.timeCreatedLessThan == null + ? 43 + : this.timeCreatedLessThan.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = (result * PRIME) + (this.accessLevel == null ? 43 : this.accessLevel.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/ListSubsettingPolicyHealthReportLogsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPolicyHealthReportLogsRequest.java new file mode 100644 index 00000000000..e4397e47866 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPolicyHealthReportLogsRequest.java @@ -0,0 +1,487 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListSubsettingPolicyHealthReportLogsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingPolicyHealthReportLogsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting health report. */ + private String subsettingPolicyHealthReportId; + + /** The OCID of the subsetting health report. */ + public String getSubsettingPolicyHealthReportId() { + return subsettingPolicyHealthReportId; + } + /** + * 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 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; + } + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for messageType is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for messageType is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + MessageType("messageType"), + ; + + 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 specify only one sorting parameter (sortOrder). The default + * order for messageType is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return only the resources that match the specified log message type. */ + private MessageType messageType; + + /** A filter to return only the resources that match the specified log message type. */ + public enum MessageType implements com.oracle.bmc.http.internal.BmcEnum { + Pass("PASS"), + Warning("WARNING"), + Error("ERROR"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MessageType v : MessageType.values()) { + map.put(v.getValue(), v); + } + } + + MessageType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MessageType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid MessageType: " + key); + } + }; + + /** A filter to return only the resources that match the specified log message type. */ + public MessageType getMessageType() { + return messageType; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListSubsettingPolicyHealthReportLogsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting health report. */ + private String subsettingPolicyHealthReportId = null; + + /** + * The OCID of the subsetting health report. + * + * @param subsettingPolicyHealthReportId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyHealthReportId(String subsettingPolicyHealthReportId) { + this.subsettingPolicyHealthReportId = subsettingPolicyHealthReportId; + 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 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; + } + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for messageType is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for messageType is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** A filter to return only the resources that match the specified log message type. */ + private MessageType messageType = null; + + /** + * A filter to return only the resources that match the specified log message type. + * + * @param messageType the value to set + * @return this builder instance + */ + public Builder messageType(MessageType messageType) { + this.messageType = messageType; + 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(ListSubsettingPolicyHealthReportLogsRequest o) { + subsettingPolicyHealthReportId(o.getSubsettingPolicyHealthReportId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + sortBy(o.getSortBy()); + messageType(o.getMessageType()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettingPolicyHealthReportLogsRequest 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 ListSubsettingPolicyHealthReportLogsRequest + */ + public ListSubsettingPolicyHealthReportLogsRequest build() { + ListSubsettingPolicyHealthReportLogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingPolicyHealthReportLogsRequest 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 ListSubsettingPolicyHealthReportLogsRequest + */ + public ListSubsettingPolicyHealthReportLogsRequest buildWithoutInvocationCallback() { + ListSubsettingPolicyHealthReportLogsRequest request = + new ListSubsettingPolicyHealthReportLogsRequest(); + request.subsettingPolicyHealthReportId = subsettingPolicyHealthReportId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.sortBy = sortBy; + request.messageType = messageType; + return request; + // new ListSubsettingPolicyHealthReportLogsRequest(subsettingPolicyHealthReportId, + // limit, page, sortOrder, opcRequestId, sortBy, messageType); + } + } + + /** + * 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() + .subsettingPolicyHealthReportId(subsettingPolicyHealthReportId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .sortBy(sortBy) + .messageType(messageType); + } + + /** + * 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(",subsettingPolicyHealthReportId=") + .append(String.valueOf(this.subsettingPolicyHealthReportId)); + 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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",messageType=").append(String.valueOf(this.messageType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingPolicyHealthReportLogsRequest)) { + return false; + } + + ListSubsettingPolicyHealthReportLogsRequest other = + (ListSubsettingPolicyHealthReportLogsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.subsettingPolicyHealthReportId, other.subsettingPolicyHealthReportId) + && 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.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.messageType, other.messageType); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyHealthReportId == null + ? 43 + : this.subsettingPolicyHealthReportId.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.messageType == null ? 43 : this.messageType.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPolicyHealthReportsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPolicyHealthReportsRequest.java new file mode 100644 index 00000000000..3c07ab17bb2 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingPolicyHealthReportsRequest.java @@ -0,0 +1,739 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListSubsettingPolicyHealthReportsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingPolicyHealthReportsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** 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; + } + /** + * A filter to return only the resources that match the specified subsetting policy health + * report OCID. + */ + private String subsettingPolicyHealthReportId; + + /** + * A filter to return only the resources that match the specified subsetting policy health + * report OCID. + */ + public String getSubsettingPolicyHealthReportId() { + return subsettingPolicyHealthReportId; + } + /** + * 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; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** sort by */ + private SortBy sortBy; + + /** sort by */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** sort by */ + 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; + } + /** A filter to return only resources that match the specified display name. */ + private String displayName; + + /** A filter to return only resources that match the specified display name. */ + public String getDisplayName() { + return displayName; + } + /** A filter to return only items related to a specific target OCID. */ + private String targetId; + + /** A filter to return only items related to a specific target OCID. */ + public String getTargetId() { + return targetId; + } + /** A filter to return only the resources that match the specified subsetting policy OCID. */ + private String subsettingPolicyId; + + /** A filter to return only the resources that match the specified subsetting policy OCID. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** A filter to return only the resources that match the specified lifecycle states. */ + private LifecycleState lifecycleState; + + /** A filter to return only the resources that match the specified lifecycle states. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + NeedsAttention("NEEDS_ATTENTION"), + Failed("FAILED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + map.put(v.getValue(), v); + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + + /** A filter to return only the resources that match the specified lifecycle states. */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListSubsettingPolicyHealthReportsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** 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; + } + + /** + * A filter to return only the resources that match the specified subsetting policy health + * report OCID. + */ + private String subsettingPolicyHealthReportId = null; + + /** + * A filter to return only the resources that match the specified subsetting policy health + * report OCID. + * + * @param subsettingPolicyHealthReportId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyHealthReportId(String subsettingPolicyHealthReportId) { + this.subsettingPolicyHealthReportId = subsettingPolicyHealthReportId; + 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; + } + + /** 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; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** sort by */ + private SortBy sortBy = null; + + /** + * sort by + * + * @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; + } + + /** A filter to return only resources that match the specified display name. */ + private String displayName = null; + + /** + * A filter to return only resources that match the specified display name. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** A filter to return only items related to a specific target OCID. */ + private String targetId = null; + + /** + * A filter to return only items related to a specific target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** + * A filter to return only the resources that match the specified subsetting policy OCID. + */ + private String subsettingPolicyId = null; + + /** + * A filter to return only the resources that match the specified subsetting policy OCID. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** A filter to return only the resources that match the specified lifecycle states. */ + private LifecycleState lifecycleState = null; + + /** + * A filter to return only the resources that match the specified lifecycle states. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListSubsettingPolicyHealthReportsRequest o) { + compartmentId(o.getCompartmentId()); + subsettingPolicyHealthReportId(o.getSubsettingPolicyHealthReportId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + targetId(o.getTargetId()); + subsettingPolicyId(o.getSubsettingPolicyId()); + lifecycleState(o.getLifecycleState()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettingPolicyHealthReportsRequest 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 ListSubsettingPolicyHealthReportsRequest + */ + public ListSubsettingPolicyHealthReportsRequest build() { + ListSubsettingPolicyHealthReportsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingPolicyHealthReportsRequest 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 ListSubsettingPolicyHealthReportsRequest + */ + public ListSubsettingPolicyHealthReportsRequest buildWithoutInvocationCallback() { + ListSubsettingPolicyHealthReportsRequest request = + new ListSubsettingPolicyHealthReportsRequest(); + request.compartmentId = compartmentId; + request.subsettingPolicyHealthReportId = subsettingPolicyHealthReportId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.displayName = displayName; + request.targetId = targetId; + request.subsettingPolicyId = subsettingPolicyId; + request.lifecycleState = lifecycleState; + return request; + // new ListSubsettingPolicyHealthReportsRequest(compartmentId, + // subsettingPolicyHealthReportId, limit, page, opcRequestId, compartmentIdInSubtree, + // accessLevel, sortBy, sortOrder, displayName, targetId, subsettingPolicyId, + // lifecycleState); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .subsettingPolicyHealthReportId(subsettingPolicyHealthReportId) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .accessLevel(accessLevel) + .sortBy(sortBy) + .sortOrder(sortOrder) + .displayName(displayName) + .targetId(targetId) + .subsettingPolicyId(subsettingPolicyId) + .lifecycleState(lifecycleState); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",subsettingPolicyHealthReportId=") + .append(String.valueOf(this.subsettingPolicyHealthReportId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingPolicyHealthReportsRequest)) { + return false; + } + + ListSubsettingPolicyHealthReportsRequest other = + (ListSubsettingPolicyHealthReportsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.subsettingPolicyHealthReportId, other.subsettingPolicyHealthReportId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.accessLevel, other.accessLevel) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyHealthReportId == null + ? 43 + : this.subsettingPolicyHealthReportId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = (result * PRIME) + (this.accessLevel == null ? 43 : this.accessLevel.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingReportsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingReportsRequest.java new file mode 100644 index 00000000000..5d9f414e597 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingReportsRequest.java @@ -0,0 +1,639 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListSubsettingReportsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingReportsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** 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; + } + /** + * 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; + } + /** A filter to return only the resources that match the specified subsetting policy OCID. */ + private String subsettingPolicyId; + + /** A filter to return only the resources that match the specified subsetting policy OCID. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** A filter to return only items related to a specific target OCID. */ + private String targetId; + + /** A filter to return only items related to a specific target OCID. */ + public String getTargetId() { + return targetId; + } + /** A filter to return the target database group that matches the specified OCID. */ + private String targetDatabaseGroupId; + + /** A filter to return the target database group that matches the specified OCID. */ + public String getTargetDatabaseGroupId() { + return targetDatabaseGroupId; + } + /** 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; + } + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeSubsettingFinished is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeSubsettingFinished is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeSubsettingFinished("timeSubsettingFinished"), + ; + + 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 specify only one sorting parameter (sortOrder). The default + * order for timeSubsettingFinished is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListSubsettingReportsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** 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; + } + + /** + * 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; + } + + /** + * A filter to return only the resources that match the specified subsetting policy OCID. + */ + private String subsettingPolicyId = null; + + /** + * A filter to return only the resources that match the specified subsetting policy OCID. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** A filter to return only items related to a specific target OCID. */ + private String targetId = null; + + /** + * A filter to return only items related to a specific target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** A filter to return the target database group that matches the specified OCID. */ + private String targetDatabaseGroupId = null; + + /** + * A filter to return the target database group that matches the specified OCID. + * + * @param targetDatabaseGroupId the value to set + * @return this builder instance + */ + public Builder targetDatabaseGroupId(String targetDatabaseGroupId) { + this.targetDatabaseGroupId = targetDatabaseGroupId; + 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; + } + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeSubsettingFinished is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeSubsettingFinished is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + 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; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + 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(ListSubsettingReportsRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + subsettingPolicyId(o.getSubsettingPolicyId()); + targetId(o.getTargetId()); + targetDatabaseGroupId(o.getTargetDatabaseGroupId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettingReportsRequest 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 ListSubsettingReportsRequest + */ + public ListSubsettingReportsRequest build() { + ListSubsettingReportsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingReportsRequest 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 ListSubsettingReportsRequest + */ + public ListSubsettingReportsRequest buildWithoutInvocationCallback() { + ListSubsettingReportsRequest request = new ListSubsettingReportsRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.subsettingPolicyId = subsettingPolicyId; + request.targetId = targetId; + request.targetDatabaseGroupId = targetDatabaseGroupId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + return request; + // new ListSubsettingReportsRequest(compartmentId, limit, page, subsettingPolicyId, + // targetId, targetDatabaseGroupId, sortOrder, sortBy, opcRequestId, + // compartmentIdInSubtree, accessLevel); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .subsettingPolicyId(subsettingPolicyId) + .targetId(targetId) + .targetDatabaseGroupId(targetDatabaseGroupId) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .accessLevel(accessLevel); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",targetDatabaseGroupId=").append(String.valueOf(this.targetDatabaseGroupId)); + 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(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingReportsRequest)) { + return false; + } + + ListSubsettingReportsRequest other = (ListSubsettingReportsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetDatabaseGroupId, other.targetDatabaseGroupId) + && 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.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.accessLevel, other.accessLevel); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.targetDatabaseGroupId == null + ? 43 + : this.targetDatabaseGroupId.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.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = (result * PRIME) + (this.accessLevel == null ? 43 : this.accessLevel.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingRuleProcessingChainObjectsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingRuleProcessingChainObjectsRequest.java new file mode 100644 index 00000000000..05222c25f32 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingRuleProcessingChainObjectsRequest.java @@ -0,0 +1,496 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListSubsettingRuleProcessingChainObjectsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingRuleProcessingChainObjectsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingRuleKey; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + public String getSubsettingRuleKey() { + return subsettingRuleKey; + } + /** + * 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; + } + /** + * 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; + } + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for key is ascending. The default order for other fields is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for key is ascending. The default order for other fields is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Key("key"), + ; + + 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 specify only one sorting parameter (sortOrder). The default + * order for key is ascending. The default order for other fields is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return the processing chain objects which are enabled for processing. */ + private Boolean isEnabledForProcessing; + + /** A filter to return the processing chain objects which are enabled for processing. */ + public Boolean getIsEnabledForProcessing() { + return isEnabledForProcessing; + } + /** 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< + ListSubsettingRuleProcessingChainObjectsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingRuleKey = null; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + * + * @param subsettingRuleKey the value to set + * @return this builder instance + */ + public Builder subsettingRuleKey(String subsettingRuleKey) { + this.subsettingRuleKey = subsettingRuleKey; + 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; + } + + /** + * 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; + } + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for key is ascending. The default order for other fields is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for key is ascending. The default order for other fields is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** A filter to return the processing chain objects which are enabled for processing. */ + private Boolean isEnabledForProcessing = null; + + /** + * A filter to return the processing chain objects which are enabled for processing. + * + * @param isEnabledForProcessing the value to set + * @return this builder instance + */ + public Builder isEnabledForProcessing(Boolean isEnabledForProcessing) { + this.isEnabledForProcessing = isEnabledForProcessing; + 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(ListSubsettingRuleProcessingChainObjectsRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + subsettingRuleKey(o.getSubsettingRuleKey()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + isEnabledForProcessing(o.getIsEnabledForProcessing()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettingRuleProcessingChainObjectsRequest 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 ListSubsettingRuleProcessingChainObjectsRequest + */ + public ListSubsettingRuleProcessingChainObjectsRequest build() { + ListSubsettingRuleProcessingChainObjectsRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingRuleProcessingChainObjectsRequest 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 ListSubsettingRuleProcessingChainObjectsRequest + */ + public ListSubsettingRuleProcessingChainObjectsRequest buildWithoutInvocationCallback() { + ListSubsettingRuleProcessingChainObjectsRequest request = + new ListSubsettingRuleProcessingChainObjectsRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.subsettingRuleKey = subsettingRuleKey; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.isEnabledForProcessing = isEnabledForProcessing; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListSubsettingRuleProcessingChainObjectsRequest(subsettingPolicyId, + // subsettingRuleKey, page, limit, sortBy, isEnabledForProcessing, 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() + .subsettingPolicyId(subsettingPolicyId) + .subsettingRuleKey(subsettingRuleKey) + .page(page) + .limit(limit) + .sortBy(sortBy) + .isEnabledForProcessing(isEnabledForProcessing) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",subsettingRuleKey=").append(String.valueOf(this.subsettingRuleKey)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",isEnabledForProcessing=").append(String.valueOf(this.isEnabledForProcessing)); + 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 ListSubsettingRuleProcessingChainObjectsRequest)) { + return false; + } + + ListSubsettingRuleProcessingChainObjectsRequest other = + (ListSubsettingRuleProcessingChainObjectsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.subsettingRuleKey, other.subsettingRuleKey) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals( + this.isEnabledForProcessing, other.isEnabledForProcessing) + && 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.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.subsettingRuleKey == null ? 43 : this.subsettingRuleKey.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = + (result * PRIME) + + (this.isEnabledForProcessing == null + ? 43 + : this.isEnabledForProcessing.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/ListSubsettingRulesRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingRulesRequest.java new file mode 100644 index 00000000000..8bb13e74f44 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingRulesRequest.java @@ -0,0 +1,493 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListSubsettingRulesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingRulesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * 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 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; + } + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for other fields is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for other fields is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + SchemaName("schemaName"), + ObjectName("objectName"), + ; + + 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 specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for other fields is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName; + + /** A filter to return only items related to specific schema name. */ + public java.util.List getSchemaName() { + return schemaName; + } + /** A filter to return only items related to a specific object name. */ + private java.util.List objectName; + + /** A filter to return only items related to a specific object name. */ + public java.util.List getObjectName() { + return objectName; + } + /** 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< + ListSubsettingRulesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + 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 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; + } + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for other fields is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for other fields is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName = null; + + /** + * A filter to return only items related to specific schema name. + * + * @param schemaName the value to set + * @return this builder instance + */ + public Builder schemaName(java.util.List schemaName) { + this.schemaName = schemaName; + return this; + } + + /** + * Singular setter. A filter to return only items related to specific schema name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder schemaName(String singularValue) { + return this.schemaName(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only items related to a specific object name. */ + private java.util.List objectName = null; + + /** + * A filter to return only items related to a specific object name. + * + * @param objectName the value to set + * @return this builder instance + */ + public Builder objectName(java.util.List objectName) { + this.objectName = objectName; + return this; + } + + /** + * Singular setter. A filter to return only items related to a specific object name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder objectName(String singularValue) { + return this.objectName(java.util.Arrays.asList(singularValue)); + } + + /** 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(ListSubsettingRulesRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + schemaName(o.getSchemaName()); + objectName(o.getObjectName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettingRulesRequest 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 ListSubsettingRulesRequest + */ + public ListSubsettingRulesRequest build() { + ListSubsettingRulesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingRulesRequest 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 ListSubsettingRulesRequest + */ + public ListSubsettingRulesRequest buildWithoutInvocationCallback() { + ListSubsettingRulesRequest request = new ListSubsettingRulesRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.schemaName = schemaName; + request.objectName = objectName; + request.opcRequestId = opcRequestId; + return request; + // new ListSubsettingRulesRequest(subsettingPolicyId, limit, page, sortOrder, sortBy, + // schemaName, objectName, 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() + .subsettingPolicyId(subsettingPolicyId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .schemaName(schemaName) + .objectName(objectName) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + 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(",schemaName=").append(String.valueOf(this.schemaName)); + sb.append(",objectName=").append(String.valueOf(this.objectName)); + 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 ListSubsettingRulesRequest)) { + return false; + } + + ListSubsettingRulesRequest other = (ListSubsettingRulesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && 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.schemaName, other.schemaName) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.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.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.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/ListSubsettingSchemaObjectsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemaObjectsRequest.java new file mode 100644 index 00000000000..776a407beb4 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemaObjectsRequest.java @@ -0,0 +1,495 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListSubsettingSchemaObjectsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingSchemaObjectsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName; + + /** A filter to return only items related to specific schema name. */ + public java.util.List getSchemaName() { + return schemaName; + } + /** A filter to return only items related to a specific object name. */ + private java.util.List objectName; + + /** A filter to return only items related to a specific object name. */ + public java.util.List getObjectName() { + return objectName; + } + /** + * 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; + } + /** + * 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; + } + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for other fields is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for other fields is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + SchemaName("schemaName"), + ObjectName("objectName"), + ; + + 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 specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for other fields is ascending. + */ + 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< + ListSubsettingSchemaObjectsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName = null; + + /** + * A filter to return only items related to specific schema name. + * + * @param schemaName the value to set + * @return this builder instance + */ + public Builder schemaName(java.util.List schemaName) { + this.schemaName = schemaName; + return this; + } + + /** + * Singular setter. A filter to return only items related to specific schema name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder schemaName(String singularValue) { + return this.schemaName(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only items related to a specific object name. */ + private java.util.List objectName = null; + + /** + * A filter to return only items related to a specific object name. + * + * @param objectName the value to set + * @return this builder instance + */ + public Builder objectName(java.util.List objectName) { + this.objectName = objectName; + return this; + } + + /** + * Singular setter. A filter to return only items related to a specific object name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder objectName(String singularValue) { + return this.objectName(java.util.Arrays.asList(singularValue)); + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for other fields is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for timeCreated is descending. The default order for other fields is ascending. + * + * @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(ListSubsettingSchemaObjectsRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + schemaName(o.getSchemaName()); + objectName(o.getObjectName()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettingSchemaObjectsRequest 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 ListSubsettingSchemaObjectsRequest + */ + public ListSubsettingSchemaObjectsRequest build() { + ListSubsettingSchemaObjectsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingSchemaObjectsRequest 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 ListSubsettingSchemaObjectsRequest + */ + public ListSubsettingSchemaObjectsRequest buildWithoutInvocationCallback() { + ListSubsettingSchemaObjectsRequest request = new ListSubsettingSchemaObjectsRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.schemaName = schemaName; + request.objectName = objectName; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListSubsettingSchemaObjectsRequest(subsettingPolicyId, schemaName, objectName, + // page, limit, 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() + .subsettingPolicyId(subsettingPolicyId) + .schemaName(schemaName) + .objectName(objectName) + .page(page) + .limit(limit) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",schemaName=").append(String.valueOf(this.schemaName)); + sb.append(",objectName=").append(String.valueOf(this.objectName)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",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 ListSubsettingSchemaObjectsRequest)) { + return false; + } + + ListSubsettingSchemaObjectsRequest other = (ListSubsettingSchemaObjectsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemaRelationsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemaRelationsRequest.java new file mode 100644 index 00000000000..27780a781f1 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemaRelationsRequest.java @@ -0,0 +1,569 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListSubsettingSchemaRelationsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingSchemaRelationsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName; + + /** A filter to return only items related to specific schema name. */ + public java.util.List getSchemaName() { + return schemaName; + } + /** A filter to return only items related to a specific object name. */ + private java.util.List objectName; + + /** A filter to return only items related to a specific object name. */ + public java.util.List getObjectName() { + return objectName; + } + /** + * A filter to return columns based on their relationship with their parent columns. If set to + * APP_DEFINED, it returns all the child columns that have application-level (non-dictionary) + * relationship with their parents. If set to DB_DEFINED, it returns all the child columns that + * have database-level (dictionary-defined) relationship with their parents. + */ + private RelationType relationType; + + /** + * A filter to return columns based on their relationship with their parent columns. If set to + * APP_DEFINED, it returns all the child columns that have application-level (non-dictionary) + * relationship with their parents. If set to DB_DEFINED, it returns all the child columns that + * have database-level (dictionary-defined) relationship with their parents. + */ + public enum RelationType implements com.oracle.bmc.http.internal.BmcEnum { + AppDefined("APP_DEFINED"), + DbDefined("DB_DEFINED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RelationType v : RelationType.values()) { + map.put(v.getValue(), v); + } + } + + RelationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RelationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RelationType: " + key); + } + }; + + /** + * A filter to return columns based on their relationship with their parent columns. If set to + * APP_DEFINED, it returns all the child columns that have application-level (non-dictionary) + * relationship with their parents. If set to DB_DEFINED, it returns all the child columns that + * have database-level (dictionary-defined) relationship with their parents. + */ + public RelationType getRelationType() { + return relationType; + } + /** + * 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 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; + } + /** The field to sort by. You can specify only one sorting parameter (sortOrder). */ + private SortBy sortBy; + + /** The field to sort by. You can specify only one sorting parameter (sortOrder). */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + RelationType("relationType"), + SchemaName("schemaName"), + ObjectName("objectName"), + ; + + 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 specify only one sorting parameter (sortOrder). */ + public SortBy getSortBy() { + return sortBy; + } + /** 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< + ListSubsettingSchemaRelationsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName = null; + + /** + * A filter to return only items related to specific schema name. + * + * @param schemaName the value to set + * @return this builder instance + */ + public Builder schemaName(java.util.List schemaName) { + this.schemaName = schemaName; + return this; + } + + /** + * Singular setter. A filter to return only items related to specific schema name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder schemaName(String singularValue) { + return this.schemaName(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only items related to a specific object name. */ + private java.util.List objectName = null; + + /** + * A filter to return only items related to a specific object name. + * + * @param objectName the value to set + * @return this builder instance + */ + public Builder objectName(java.util.List objectName) { + this.objectName = objectName; + return this; + } + + /** + * Singular setter. A filter to return only items related to a specific object name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder objectName(String singularValue) { + return this.objectName(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return columns based on their relationship with their parent columns. If set + * to APP_DEFINED, it returns all the child columns that have application-level + * (non-dictionary) relationship with their parents. If set to DB_DEFINED, it returns all + * the child columns that have database-level (dictionary-defined) relationship with their + * parents. + */ + private RelationType relationType = null; + + /** + * A filter to return columns based on their relationship with their parent columns. If set + * to APP_DEFINED, it returns all the child columns that have application-level + * (non-dictionary) relationship with their parents. If set to DB_DEFINED, it returns all + * the child columns that have database-level (dictionary-defined) relationship with their + * parents. + * + * @param relationType the value to set + * @return this builder instance + */ + public Builder relationType(RelationType relationType) { + this.relationType = relationType; + 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 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; + } + + /** The field to sort by. You can specify only one sorting parameter (sortOrder). */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + 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(ListSubsettingSchemaRelationsRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + schemaName(o.getSchemaName()); + objectName(o.getObjectName()); + relationType(o.getRelationType()); + 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 ListSubsettingSchemaRelationsRequest 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 ListSubsettingSchemaRelationsRequest + */ + public ListSubsettingSchemaRelationsRequest build() { + ListSubsettingSchemaRelationsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingSchemaRelationsRequest 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 ListSubsettingSchemaRelationsRequest + */ + public ListSubsettingSchemaRelationsRequest buildWithoutInvocationCallback() { + ListSubsettingSchemaRelationsRequest request = + new ListSubsettingSchemaRelationsRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.schemaName = schemaName; + request.objectName = objectName; + request.relationType = relationType; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListSubsettingSchemaRelationsRequest(subsettingPolicyId, schemaName, objectName, + // relationType, 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() + .subsettingPolicyId(subsettingPolicyId) + .schemaName(schemaName) + .objectName(objectName) + .relationType(relationType) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",schemaName=").append(String.valueOf(this.schemaName)); + sb.append(",objectName=").append(String.valueOf(this.objectName)); + sb.append(",relationType=").append(String.valueOf(this.relationType)); + 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 ListSubsettingSchemaRelationsRequest)) { + return false; + } + + ListSubsettingSchemaRelationsRequest other = (ListSubsettingSchemaRelationsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.relationType, other.relationType) + && 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.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + (this.relationType == null ? 43 : this.relationType.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemasRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemasRequest.java new file mode 100644 index 00000000000..ba44c942952 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListSubsettingSchemasRequest.java @@ -0,0 +1,495 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListSubsettingSchemasRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingSchemasRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * 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 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; + } + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + SchemaName("schemaName"), + ; + + 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 specify only one sorting parameter (sortOrder). The default + * order is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName; + + /** A filter to return only items related to specific schema name. */ + public java.util.List getSchemaName() { + return schemaName; + } + /** + * A filter to return the schemas which are derived. A schema is derived if it is related to a + * input schema. + */ + private Boolean isDerivedSchema; + + /** + * A filter to return the schemas which are derived. A schema is derived if it is related to a + * input schema. + */ + public Boolean getIsDerivedSchema() { + return isDerivedSchema; + } + /** 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< + ListSubsettingSchemasRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + 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 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; + } + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName = null; + + /** + * A filter to return only items related to specific schema name. + * + * @param schemaName the value to set + * @return this builder instance + */ + public Builder schemaName(java.util.List schemaName) { + this.schemaName = schemaName; + return this; + } + + /** + * Singular setter. A filter to return only items related to specific schema name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder schemaName(String singularValue) { + return this.schemaName(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return the schemas which are derived. A schema is derived if it is related to + * a input schema. + */ + private Boolean isDerivedSchema = null; + + /** + * A filter to return the schemas which are derived. A schema is derived if it is related to + * a input schema. + * + * @param isDerivedSchema the value to set + * @return this builder instance + */ + public Builder isDerivedSchema(Boolean isDerivedSchema) { + this.isDerivedSchema = isDerivedSchema; + 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(ListSubsettingSchemasRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + schemaName(o.getSchemaName()); + isDerivedSchema(o.getIsDerivedSchema()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSubsettingSchemasRequest 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 ListSubsettingSchemasRequest + */ + public ListSubsettingSchemasRequest build() { + ListSubsettingSchemasRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSubsettingSchemasRequest 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 ListSubsettingSchemasRequest + */ + public ListSubsettingSchemasRequest buildWithoutInvocationCallback() { + ListSubsettingSchemasRequest request = new ListSubsettingSchemasRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.schemaName = schemaName; + request.isDerivedSchema = isDerivedSchema; + request.opcRequestId = opcRequestId; + return request; + // new ListSubsettingSchemasRequest(subsettingPolicyId, limit, page, sortOrder, sortBy, + // schemaName, isDerivedSchema, 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() + .subsettingPolicyId(subsettingPolicyId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .schemaName(schemaName) + .isDerivedSchema(isDerivedSchema) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + 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(",schemaName=").append(String.valueOf(this.schemaName)); + sb.append(",isDerivedSchema=").append(String.valueOf(this.isDerivedSchema)); + 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 ListSubsettingSchemasRequest)) { + return false; + } + + ListSubsettingSchemasRequest other = (ListSubsettingSchemasRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && 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.schemaName, other.schemaName) + && java.util.Objects.equals(this.isDerivedSchema, other.isDerivedSchema) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.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.schemaName == null ? 43 : this.schemaName.hashCode()); + result = + (result * PRIME) + + (this.isDerivedSchema == null ? 43 : this.isDerivedSchema.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/ListTableEstimatesRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTableEstimatesRequest.java new file mode 100644 index 00000000000..4500e352e78 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTableEstimatesRequest.java @@ -0,0 +1,519 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListTableEstimatesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListTableEstimatesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName; + + /** A filter to return only items related to specific schema name. */ + public java.util.List getSchemaName() { + return schemaName; + } + /** A filter to return only items related to a specific object name. */ + private java.util.List objectName; + + /** A filter to return only items related to a specific object name. */ + public java.util.List getObjectName() { + return objectName; + } + /** A filter to return only items related to a specific target OCID. */ + private String targetId; + + /** A filter to return only items related to a specific target OCID. */ + public String getTargetId() { + return targetId; + } + /** 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; + } + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for schemaName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for schemaName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + SchemaName("schemaName"), + TableName("tableName"), + ; + + 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 specify only one sorting parameter (sortOrder). The default + * order for schemaName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * 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; + } + /** 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< + ListTableEstimatesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** A filter to return only items related to specific schema name. */ + private java.util.List schemaName = null; + + /** + * A filter to return only items related to specific schema name. + * + * @param schemaName the value to set + * @return this builder instance + */ + public Builder schemaName(java.util.List schemaName) { + this.schemaName = schemaName; + return this; + } + + /** + * Singular setter. A filter to return only items related to specific schema name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder schemaName(String singularValue) { + return this.schemaName(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only items related to a specific object name. */ + private java.util.List objectName = null; + + /** + * A filter to return only items related to a specific object name. + * + * @param objectName the value to set + * @return this builder instance + */ + public Builder objectName(java.util.List objectName) { + this.objectName = objectName; + return this; + } + + /** + * Singular setter. A filter to return only items related to a specific object name. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder objectName(String singularValue) { + return this.objectName(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only items related to a specific target OCID. */ + private String targetId = null; + + /** + * A filter to return only items related to a specific target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + 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; + } + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for schemaName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can specify only one sorting parameter (sortOrder). The default + * order for schemaName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + 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; + } + + /** 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(ListTableEstimatesRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + schemaName(o.getSchemaName()); + objectName(o.getObjectName()); + targetId(o.getTargetId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListTableEstimatesRequest 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 ListTableEstimatesRequest + */ + public ListTableEstimatesRequest build() { + ListTableEstimatesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListTableEstimatesRequest 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 ListTableEstimatesRequest + */ + public ListTableEstimatesRequest buildWithoutInvocationCallback() { + ListTableEstimatesRequest request = new ListTableEstimatesRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.schemaName = schemaName; + request.objectName = objectName; + request.targetId = targetId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListTableEstimatesRequest(subsettingPolicyId, schemaName, objectName, targetId, + // sortOrder, sortBy, limit, page, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .subsettingPolicyId(subsettingPolicyId) + .schemaName(schemaName) + .objectName(objectName) + .targetId(targetId) + .sortOrder(sortOrder) + .sortBy(sortBy) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",schemaName=").append(String.valueOf(this.schemaName)); + sb.append(",objectName=").append(String.valueOf(this.objectName)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListTableEstimatesRequest)) { + return false; + } + + ListTableEstimatesRequest other = (ListTableEstimatesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.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.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetDatabasesRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetDatabasesRequest.java index 8b32837a169..7213b1164bd 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetDatabasesRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetDatabasesRequest.java @@ -33,6 +33,19 @@ public String getCompartmentId() { public String getAssociatedResourceId() { return associatedResourceId; } + /** + * A filter to return target databases filtered by the enablementResourceOcid column (always a + * DbaasDatabase OCID). + */ + private String enablementResourceOcid; + + /** + * A filter to return target databases filtered by the enablementResourceOcid column (always a + * DbaasDatabase OCID). + */ + public String getEnablementResourceOcid() { + return enablementResourceOcid; + } /** A filter to return the target database that matches the specified OCID. */ private String targetDatabaseId; @@ -311,6 +324,24 @@ public Builder associatedResourceId(String associatedResourceId) { return this; } + /** + * A filter to return target databases filtered by the enablementResourceOcid column (always + * a DbaasDatabase OCID). + */ + private String enablementResourceOcid = null; + + /** + * A filter to return target databases filtered by the enablementResourceOcid column (always + * a DbaasDatabase OCID). + * + * @param enablementResourceOcid the value to set + * @return this builder instance + */ + public Builder enablementResourceOcid(String enablementResourceOcid) { + this.enablementResourceOcid = enablementResourceOcid; + return this; + } + /** A filter to return the target database that matches the specified OCID. */ private String targetDatabaseId = null; @@ -549,6 +580,7 @@ public Builder retryConfiguration( public Builder copy(ListTargetDatabasesRequest o) { compartmentId(o.getCompartmentId()); associatedResourceId(o.getAssociatedResourceId()); + enablementResourceOcid(o.getEnablementResourceOcid()); targetDatabaseId(o.getTargetDatabaseId()); displayName(o.getDisplayName()); lifecycleState(o.getLifecycleState()); @@ -597,6 +629,7 @@ public ListTargetDatabasesRequest buildWithoutInvocationCallback() { ListTargetDatabasesRequest request = new ListTargetDatabasesRequest(); request.compartmentId = compartmentId; request.associatedResourceId = associatedResourceId; + request.enablementResourceOcid = enablementResourceOcid; request.targetDatabaseId = targetDatabaseId; request.displayName = displayName; request.lifecycleState = lifecycleState; @@ -610,9 +643,10 @@ public ListTargetDatabasesRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListTargetDatabasesRequest(compartmentId, associatedResourceId, targetDatabaseId, - // displayName, lifecycleState, databaseType, infrastructureType, limit, page, - // compartmentIdInSubtree, accessLevel, sortOrder, sortBy, opcRequestId); + // new ListTargetDatabasesRequest(compartmentId, associatedResourceId, + // enablementResourceOcid, targetDatabaseId, displayName, lifecycleState, databaseType, + // infrastructureType, limit, page, compartmentIdInSubtree, accessLevel, sortOrder, + // sortBy, opcRequestId); } } @@ -625,6 +659,7 @@ public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) .associatedResourceId(associatedResourceId) + .enablementResourceOcid(enablementResourceOcid) .targetDatabaseId(targetDatabaseId) .displayName(displayName) .lifecycleState(lifecycleState) @@ -655,6 +690,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",associatedResourceId=").append(String.valueOf(this.associatedResourceId)); + sb.append(",enablementResourceOcid=").append(String.valueOf(this.enablementResourceOcid)); sb.append(",targetDatabaseId=").append(String.valueOf(this.targetDatabaseId)); sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -684,6 +720,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.associatedResourceId, other.associatedResourceId) + && java.util.Objects.equals( + this.enablementResourceOcid, other.enablementResourceOcid) && java.util.Objects.equals(this.targetDatabaseId, other.targetDatabaseId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -711,6 +749,11 @@ public int hashCode() { + (this.associatedResourceId == null ? 43 : this.associatedResourceId.hashCode()); + result = + (result * PRIME) + + (this.enablementResourceOcid == null + ? 43 + : this.enablementResourceOcid.hashCode()); result = (result * PRIME) + (this.targetDatabaseId == null ? 43 : this.targetDatabaseId.hashCode()); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ManagePrivilegesRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ManagePrivilegesRequest.java new file mode 100644 index 00000000000..cec06cd5890 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ManagePrivilegesRequest.java @@ -0,0 +1,351 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ManagePrivilegesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ManagePrivilegesRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.ManagePrivilegesDetails> { + + /** The OCID of the Data Safe target database. */ + private String targetDatabaseId; + + /** The OCID of the Data Safe target database. */ + public String getTargetDatabaseId() { + return targetDatabaseId; + } + /** Details of the manage target database privileges request. */ + private com.oracle.bmc.datasafe.model.ManagePrivilegesDetails managePrivilegesDetails; + + /** Details of the manage target database privileges request. */ + public com.oracle.bmc.datasafe.model.ManagePrivilegesDetails getManagePrivilegesDetails() { + return managePrivilegesDetails; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.ManagePrivilegesDetails getBody$() { + return managePrivilegesDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ManagePrivilegesRequest, + com.oracle.bmc.datasafe.model.ManagePrivilegesDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the Data Safe target database. */ + private String targetDatabaseId = null; + + /** + * The OCID of the Data Safe target database. + * + * @param targetDatabaseId the value to set + * @return this builder instance + */ + public Builder targetDatabaseId(String targetDatabaseId) { + this.targetDatabaseId = targetDatabaseId; + return this; + } + + /** Details of the manage target database privileges request. */ + private com.oracle.bmc.datasafe.model.ManagePrivilegesDetails managePrivilegesDetails = + null; + + /** + * Details of the manage target database privileges request. + * + * @param managePrivilegesDetails the value to set + * @return this builder instance + */ + public Builder managePrivilegesDetails( + com.oracle.bmc.datasafe.model.ManagePrivilegesDetails managePrivilegesDetails) { + this.managePrivilegesDetails = managePrivilegesDetails; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ManagePrivilegesRequest o) { + targetDatabaseId(o.getTargetDatabaseId()); + managePrivilegesDetails(o.getManagePrivilegesDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ManagePrivilegesRequest 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 ManagePrivilegesRequest + */ + public ManagePrivilegesRequest build() { + ManagePrivilegesRequest 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.datasafe.model.ManagePrivilegesDetails body) { + managePrivilegesDetails(body); + return this; + } + + /** + * Build the instance of ManagePrivilegesRequest 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 ManagePrivilegesRequest + */ + public ManagePrivilegesRequest buildWithoutInvocationCallback() { + ManagePrivilegesRequest request = new ManagePrivilegesRequest(); + request.targetDatabaseId = targetDatabaseId; + request.managePrivilegesDetails = managePrivilegesDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ManagePrivilegesRequest(targetDatabaseId, managePrivilegesDetails, 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() + .targetDatabaseId(targetDatabaseId) + .managePrivilegesDetails(managePrivilegesDetails) + .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(",targetDatabaseId=").append(String.valueOf(this.targetDatabaseId)); + sb.append(",managePrivilegesDetails=").append(String.valueOf(this.managePrivilegesDetails)); + 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 ManagePrivilegesRequest)) { + return false; + } + + ManagePrivilegesRequest other = (ManagePrivilegesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.targetDatabaseId, other.targetDatabaseId) + && java.util.Objects.equals( + this.managePrivilegesDetails, other.managePrivilegesDetails) + && 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.targetDatabaseId == null ? 43 : this.targetDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.managePrivilegesDetails == null + ? 43 + : this.managePrivilegesDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/PatchSubsettingRulesRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/PatchSubsettingRulesRequest.java new file mode 100644 index 00000000000..a76a3571646 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/PatchSubsettingRulesRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use PatchSubsettingRulesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class PatchSubsettingRulesRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.PatchSubsettingRulesDetails> { + + /** Details to patch subsetting rules. */ + private com.oracle.bmc.datasafe.model.PatchSubsettingRulesDetails patchSubsettingRulesDetails; + + /** Details to patch subsetting rules. */ + public com.oracle.bmc.datasafe.model.PatchSubsettingRulesDetails + getPatchSubsettingRulesDetails() { + return patchSubsettingRulesDetails; + } + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.PatchSubsettingRulesDetails getBody$() { + return patchSubsettingRulesDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PatchSubsettingRulesRequest, + com.oracle.bmc.datasafe.model.PatchSubsettingRulesDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details to patch subsetting rules. */ + private com.oracle.bmc.datasafe.model.PatchSubsettingRulesDetails + patchSubsettingRulesDetails = null; + + /** + * Details to patch subsetting rules. + * + * @param patchSubsettingRulesDetails the value to set + * @return this builder instance + */ + public Builder patchSubsettingRulesDetails( + com.oracle.bmc.datasafe.model.PatchSubsettingRulesDetails + patchSubsettingRulesDetails) { + this.patchSubsettingRulesDetails = patchSubsettingRulesDetails; + return this; + } + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(PatchSubsettingRulesRequest o) { + patchSubsettingRulesDetails(o.getPatchSubsettingRulesDetails()); + subsettingPolicyId(o.getSubsettingPolicyId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PatchSubsettingRulesRequest 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 PatchSubsettingRulesRequest + */ + public PatchSubsettingRulesRequest build() { + PatchSubsettingRulesRequest 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.datasafe.model.PatchSubsettingRulesDetails body) { + patchSubsettingRulesDetails(body); + return this; + } + + /** + * Build the instance of PatchSubsettingRulesRequest 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 PatchSubsettingRulesRequest + */ + public PatchSubsettingRulesRequest buildWithoutInvocationCallback() { + PatchSubsettingRulesRequest request = new PatchSubsettingRulesRequest(); + request.patchSubsettingRulesDetails = patchSubsettingRulesDetails; + request.subsettingPolicyId = subsettingPolicyId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new PatchSubsettingRulesRequest(patchSubsettingRulesDetails, subsettingPolicyId, + // 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() + .patchSubsettingRulesDetails(patchSubsettingRulesDetails) + .subsettingPolicyId(subsettingPolicyId) + .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(",patchSubsettingRulesDetails=") + .append(String.valueOf(this.patchSubsettingRulesDetails)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + 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 PatchSubsettingRulesRequest)) { + return false; + } + + PatchSubsettingRulesRequest other = (PatchSubsettingRulesRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.patchSubsettingRulesDetails, other.patchSubsettingRulesDetails) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && 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.patchSubsettingRulesDetails == null + ? 43 + : this.patchSubsettingRulesDetails.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/SubsetDataRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/SubsetDataRequest.java new file mode 100644 index 00000000000..a2ba8de7fc2 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/SubsetDataRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use SubsetDataRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class SubsetDataRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.SubsetDataDetails> { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to subset data. */ + private com.oracle.bmc.datasafe.model.SubsetDataDetails subsetDataDetails; + + /** Details to subset data. */ + public com.oracle.bmc.datasafe.model.SubsetDataDetails getSubsetDataDetails() { + return subsetDataDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.SubsetDataDetails getBody$() { + return subsetDataDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SubsetDataRequest, com.oracle.bmc.datasafe.model.SubsetDataDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to subset data. */ + private com.oracle.bmc.datasafe.model.SubsetDataDetails subsetDataDetails = null; + + /** + * Details to subset data. + * + * @param subsetDataDetails the value to set + * @return this builder instance + */ + public Builder subsetDataDetails( + com.oracle.bmc.datasafe.model.SubsetDataDetails subsetDataDetails) { + this.subsetDataDetails = subsetDataDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** 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(SubsetDataRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + subsetDataDetails(o.getSubsetDataDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SubsetDataRequest 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 SubsetDataRequest + */ + public SubsetDataRequest build() { + SubsetDataRequest 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.datasafe.model.SubsetDataDetails body) { + subsetDataDetails(body); + return this; + } + + /** + * Build the instance of SubsetDataRequest 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 SubsetDataRequest + */ + public SubsetDataRequest buildWithoutInvocationCallback() { + SubsetDataRequest request = new SubsetDataRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.subsetDataDetails = subsetDataDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new SubsetDataRequest(subsettingPolicyId, subsetDataDetails, 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() + .subsettingPolicyId(subsettingPolicyId) + .subsetDataDetails(subsetDataDetails) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",subsetDataDetails=").append(String.valueOf(this.subsetDataDetails)); + 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 SubsetDataRequest)) { + return false; + } + + SubsetDataRequest other = (SubsetDataRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals(this.subsetDataDetails, other.subsetDataDetails) + && 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.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.subsetDataDetails == null ? 43 : this.subsetDataDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateProcessingChainObjectRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateProcessingChainObjectRequest.java new file mode 100644 index 00000000000..c6e60cb3948 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateProcessingChainObjectRequest.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.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * UpdateProcessingChainObjectRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateProcessingChainObjectRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.UpdateProcessingChainObjectDetails> { + + /** + * The unique key that identifies the processing chain object. It's numeric and unique within a + * processing chain. + */ + private String processingChainObjectKey; + + /** + * The unique key that identifies the processing chain object. It's numeric and unique within a + * processing chain. + */ + public String getProcessingChainObjectKey() { + return processingChainObjectKey; + } + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingRuleKey; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + public String getSubsettingRuleKey() { + return subsettingRuleKey; + } + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to update a processing chain object. */ + private com.oracle.bmc.datasafe.model.UpdateProcessingChainObjectDetails + updateProcessingChainObjectDetails; + + /** Details to update a processing chain object. */ + public com.oracle.bmc.datasafe.model.UpdateProcessingChainObjectDetails + getUpdateProcessingChainObjectDetails() { + return updateProcessingChainObjectDetails; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.UpdateProcessingChainObjectDetails getBody$() { + return updateProcessingChainObjectDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateProcessingChainObjectRequest, + com.oracle.bmc.datasafe.model.UpdateProcessingChainObjectDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique key that identifies the processing chain object. It's numeric and unique + * within a processing chain. + */ + private String processingChainObjectKey = null; + + /** + * The unique key that identifies the processing chain object. It's numeric and unique + * within a processing chain. + * + * @param processingChainObjectKey the value to set + * @return this builder instance + */ + public Builder processingChainObjectKey(String processingChainObjectKey) { + this.processingChainObjectKey = processingChainObjectKey; + return this; + } + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingRuleKey = null; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + * + * @param subsettingRuleKey the value to set + * @return this builder instance + */ + public Builder subsettingRuleKey(String subsettingRuleKey) { + this.subsettingRuleKey = subsettingRuleKey; + return this; + } + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to update a processing chain object. */ + private com.oracle.bmc.datasafe.model.UpdateProcessingChainObjectDetails + updateProcessingChainObjectDetails = null; + + /** + * Details to update a processing chain object. + * + * @param updateProcessingChainObjectDetails the value to set + * @return this builder instance + */ + public Builder updateProcessingChainObjectDetails( + com.oracle.bmc.datasafe.model.UpdateProcessingChainObjectDetails + updateProcessingChainObjectDetails) { + this.updateProcessingChainObjectDetails = updateProcessingChainObjectDetails; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateProcessingChainObjectRequest o) { + processingChainObjectKey(o.getProcessingChainObjectKey()); + subsettingRuleKey(o.getSubsettingRuleKey()); + subsettingPolicyId(o.getSubsettingPolicyId()); + updateProcessingChainObjectDetails(o.getUpdateProcessingChainObjectDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateProcessingChainObjectRequest 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 UpdateProcessingChainObjectRequest + */ + public UpdateProcessingChainObjectRequest build() { + UpdateProcessingChainObjectRequest 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.datasafe.model.UpdateProcessingChainObjectDetails body) { + updateProcessingChainObjectDetails(body); + return this; + } + + /** + * Build the instance of UpdateProcessingChainObjectRequest 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 UpdateProcessingChainObjectRequest + */ + public UpdateProcessingChainObjectRequest buildWithoutInvocationCallback() { + UpdateProcessingChainObjectRequest request = new UpdateProcessingChainObjectRequest(); + request.processingChainObjectKey = processingChainObjectKey; + request.subsettingRuleKey = subsettingRuleKey; + request.subsettingPolicyId = subsettingPolicyId; + request.updateProcessingChainObjectDetails = updateProcessingChainObjectDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateProcessingChainObjectRequest(processingChainObjectKey, subsettingRuleKey, + // subsettingPolicyId, updateProcessingChainObjectDetails, 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() + .processingChainObjectKey(processingChainObjectKey) + .subsettingRuleKey(subsettingRuleKey) + .subsettingPolicyId(subsettingPolicyId) + .updateProcessingChainObjectDetails(updateProcessingChainObjectDetails) + .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(",processingChainObjectKey=") + .append(String.valueOf(this.processingChainObjectKey)); + sb.append(",subsettingRuleKey=").append(String.valueOf(this.subsettingRuleKey)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",updateProcessingChainObjectDetails=") + .append(String.valueOf(this.updateProcessingChainObjectDetails)); + 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 UpdateProcessingChainObjectRequest)) { + return false; + } + + UpdateProcessingChainObjectRequest other = (UpdateProcessingChainObjectRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.processingChainObjectKey, other.processingChainObjectKey) + && java.util.Objects.equals(this.subsettingRuleKey, other.subsettingRuleKey) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.updateProcessingChainObjectDetails, + other.updateProcessingChainObjectDetails) + && 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.processingChainObjectKey == null + ? 43 + : this.processingChainObjectKey.hashCode()); + result = + (result * PRIME) + + (this.subsettingRuleKey == null ? 43 : this.subsettingRuleKey.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.updateProcessingChainObjectDetails == null + ? 43 + : this.updateProcessingChainObjectDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateRegistrationPolicyRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateRegistrationPolicyRequest.java new file mode 100644 index 00000000000..dfe8d1c89fb --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateRegistrationPolicyRequest.java @@ -0,0 +1,358 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * UpdateRegistrationPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateRegistrationPolicyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.UpdateRegistrationPolicyDetails> { + + /** The OCID of the registration policy to be used for identification */ + private String registrationPolicyId; + + /** The OCID of the registration policy to be used for identification */ + public String getRegistrationPolicyId() { + return registrationPolicyId; + } + /** Details used to update the registration policy. */ + private com.oracle.bmc.datasafe.model.UpdateRegistrationPolicyDetails + updateRegistrationPolicyDetails; + + /** Details used to update the registration policy. */ + public com.oracle.bmc.datasafe.model.UpdateRegistrationPolicyDetails + getUpdateRegistrationPolicyDetails() { + return updateRegistrationPolicyDetails; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.UpdateRegistrationPolicyDetails getBody$() { + return updateRegistrationPolicyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateRegistrationPolicyRequest, + com.oracle.bmc.datasafe.model.UpdateRegistrationPolicyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the registration policy to be used for identification */ + private String registrationPolicyId = null; + + /** + * The OCID of the registration policy to be used for identification + * + * @param registrationPolicyId the value to set + * @return this builder instance + */ + public Builder registrationPolicyId(String registrationPolicyId) { + this.registrationPolicyId = registrationPolicyId; + return this; + } + + /** Details used to update the registration policy. */ + private com.oracle.bmc.datasafe.model.UpdateRegistrationPolicyDetails + updateRegistrationPolicyDetails = null; + + /** + * Details used to update the registration policy. + * + * @param updateRegistrationPolicyDetails the value to set + * @return this builder instance + */ + public Builder updateRegistrationPolicyDetails( + com.oracle.bmc.datasafe.model.UpdateRegistrationPolicyDetails + updateRegistrationPolicyDetails) { + this.updateRegistrationPolicyDetails = updateRegistrationPolicyDetails; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateRegistrationPolicyRequest o) { + registrationPolicyId(o.getRegistrationPolicyId()); + updateRegistrationPolicyDetails(o.getUpdateRegistrationPolicyDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateRegistrationPolicyRequest 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 UpdateRegistrationPolicyRequest + */ + public UpdateRegistrationPolicyRequest build() { + UpdateRegistrationPolicyRequest 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.datasafe.model.UpdateRegistrationPolicyDetails body) { + updateRegistrationPolicyDetails(body); + return this; + } + + /** + * Build the instance of UpdateRegistrationPolicyRequest 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 UpdateRegistrationPolicyRequest + */ + public UpdateRegistrationPolicyRequest buildWithoutInvocationCallback() { + UpdateRegistrationPolicyRequest request = new UpdateRegistrationPolicyRequest(); + request.registrationPolicyId = registrationPolicyId; + request.updateRegistrationPolicyDetails = updateRegistrationPolicyDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new UpdateRegistrationPolicyRequest(registrationPolicyId, + // updateRegistrationPolicyDetails, opcRequestId, ifMatch, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .registrationPolicyId(registrationPolicyId) + .updateRegistrationPolicyDetails(updateRegistrationPolicyDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",registrationPolicyId=").append(String.valueOf(this.registrationPolicyId)); + sb.append(",updateRegistrationPolicyDetails=") + .append(String.valueOf(this.updateRegistrationPolicyDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateRegistrationPolicyRequest)) { + return false; + } + + UpdateRegistrationPolicyRequest other = (UpdateRegistrationPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.registrationPolicyId, other.registrationPolicyId) + && java.util.Objects.equals( + this.updateRegistrationPolicyDetails, other.updateRegistrationPolicyDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.registrationPolicyId == null + ? 43 + : this.registrationPolicyId.hashCode()); + result = + (result * PRIME) + + (this.updateRegistrationPolicyDetails == null + ? 43 + : this.updateRegistrationPolicyDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateSubsettingPolicyRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateSubsettingPolicyRequest.java new file mode 100644 index 00000000000..deea7978ac4 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateSubsettingPolicyRequest.java @@ -0,0 +1,307 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * UpdateSubsettingPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateSubsettingPolicyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.UpdateSubsettingPolicyDetails> { + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to update a subsetting policy. */ + private com.oracle.bmc.datasafe.model.UpdateSubsettingPolicyDetails + updateSubsettingPolicyDetails; + + /** Details to update a subsetting policy. */ + public com.oracle.bmc.datasafe.model.UpdateSubsettingPolicyDetails + getUpdateSubsettingPolicyDetails() { + return updateSubsettingPolicyDetails; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.UpdateSubsettingPolicyDetails getBody$() { + return updateSubsettingPolicyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateSubsettingPolicyRequest, + com.oracle.bmc.datasafe.model.UpdateSubsettingPolicyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to update a subsetting policy. */ + private com.oracle.bmc.datasafe.model.UpdateSubsettingPolicyDetails + updateSubsettingPolicyDetails = null; + + /** + * Details to update a subsetting policy. + * + * @param updateSubsettingPolicyDetails the value to set + * @return this builder instance + */ + public Builder updateSubsettingPolicyDetails( + com.oracle.bmc.datasafe.model.UpdateSubsettingPolicyDetails + updateSubsettingPolicyDetails) { + this.updateSubsettingPolicyDetails = updateSubsettingPolicyDetails; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateSubsettingPolicyRequest o) { + subsettingPolicyId(o.getSubsettingPolicyId()); + updateSubsettingPolicyDetails(o.getUpdateSubsettingPolicyDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateSubsettingPolicyRequest 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 UpdateSubsettingPolicyRequest + */ + public UpdateSubsettingPolicyRequest build() { + UpdateSubsettingPolicyRequest 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.datasafe.model.UpdateSubsettingPolicyDetails body) { + updateSubsettingPolicyDetails(body); + return this; + } + + /** + * Build the instance of UpdateSubsettingPolicyRequest 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 UpdateSubsettingPolicyRequest + */ + public UpdateSubsettingPolicyRequest buildWithoutInvocationCallback() { + UpdateSubsettingPolicyRequest request = new UpdateSubsettingPolicyRequest(); + request.subsettingPolicyId = subsettingPolicyId; + request.updateSubsettingPolicyDetails = updateSubsettingPolicyDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateSubsettingPolicyRequest(subsettingPolicyId, updateSubsettingPolicyDetails, + // 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() + .subsettingPolicyId(subsettingPolicyId) + .updateSubsettingPolicyDetails(updateSubsettingPolicyDetails) + .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(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",updateSubsettingPolicyDetails=") + .append(String.valueOf(this.updateSubsettingPolicyDetails)); + 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 UpdateSubsettingPolicyRequest)) { + return false; + } + + UpdateSubsettingPolicyRequest other = (UpdateSubsettingPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.updateSubsettingPolicyDetails, other.updateSubsettingPolicyDetails) + && 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.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.updateSubsettingPolicyDetails == null + ? 43 + : this.updateSubsettingPolicyDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateSubsettingRuleRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateSubsettingRuleRequest.java new file mode 100644 index 00000000000..4f05a298954 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateSubsettingRuleRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use UpdateSubsettingRuleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateSubsettingRuleRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails> { + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingRuleKey; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + public String getSubsettingRuleKey() { + return subsettingRuleKey; + } + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** Details to update a subsetting rule. */ + private com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails updateSubsettingRuleDetails; + + /** Details to update a subsetting rule. */ + public com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails + getUpdateSubsettingRuleDetails() { + return updateSubsettingRuleDetails; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails getBody$() { + return updateSubsettingRuleDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateSubsettingRuleRequest, + com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + */ + private String subsettingRuleKey = null; + + /** + * The unique key that identifies the subsetting rule. It's numeric and unique within a + * subsetting policy. + * + * @param subsettingRuleKey the value to set + * @return this builder instance + */ + public Builder subsettingRuleKey(String subsettingRuleKey) { + this.subsettingRuleKey = subsettingRuleKey; + return this; + } + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + return this; + } + + /** Details to update a subsetting rule. */ + private com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails + updateSubsettingRuleDetails = null; + + /** + * Details to update a subsetting rule. + * + * @param updateSubsettingRuleDetails the value to set + * @return this builder instance + */ + public Builder updateSubsettingRuleDetails( + com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails + updateSubsettingRuleDetails) { + this.updateSubsettingRuleDetails = updateSubsettingRuleDetails; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateSubsettingRuleRequest o) { + subsettingRuleKey(o.getSubsettingRuleKey()); + subsettingPolicyId(o.getSubsettingPolicyId()); + updateSubsettingRuleDetails(o.getUpdateSubsettingRuleDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateSubsettingRuleRequest 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 UpdateSubsettingRuleRequest + */ + public UpdateSubsettingRuleRequest build() { + UpdateSubsettingRuleRequest 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.datasafe.model.UpdateSubsettingRuleDetails body) { + updateSubsettingRuleDetails(body); + return this; + } + + /** + * Build the instance of UpdateSubsettingRuleRequest 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 UpdateSubsettingRuleRequest + */ + public UpdateSubsettingRuleRequest buildWithoutInvocationCallback() { + UpdateSubsettingRuleRequest request = new UpdateSubsettingRuleRequest(); + request.subsettingRuleKey = subsettingRuleKey; + request.subsettingPolicyId = subsettingPolicyId; + request.updateSubsettingRuleDetails = updateSubsettingRuleDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateSubsettingRuleRequest(subsettingRuleKey, subsettingPolicyId, + // updateSubsettingRuleDetails, 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() + .subsettingRuleKey(subsettingRuleKey) + .subsettingPolicyId(subsettingPolicyId) + .updateSubsettingRuleDetails(updateSubsettingRuleDetails) + .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(",subsettingRuleKey=").append(String.valueOf(this.subsettingRuleKey)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + sb.append(",updateSubsettingRuleDetails=") + .append(String.valueOf(this.updateSubsettingRuleDetails)); + 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 UpdateSubsettingRuleRequest)) { + return false; + } + + UpdateSubsettingRuleRequest other = (UpdateSubsettingRuleRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subsettingRuleKey, other.subsettingRuleKey) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && java.util.Objects.equals( + this.updateSubsettingRuleDetails, other.updateSubsettingRuleDetails) + && 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.subsettingRuleKey == null ? 43 : this.subsettingRuleKey.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.updateSubsettingRuleDetails == null + ? 43 + : this.updateSubsettingRuleDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UploadSubsettingPolicyRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UploadSubsettingPolicyRequest.java new file mode 100644 index 00000000000..117c9f00c83 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UploadSubsettingPolicyRequest.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * UploadSubsettingPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UploadSubsettingPolicyRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Details to upload a subsetting policy file. */ + private java.io.InputStream uploadSubsettingPolicyDetails; + + /** Details to upload a subsetting policy file. */ + public java.io.InputStream getUploadSubsettingPolicyDetails() { + return uploadSubsettingPolicyDetails; + } + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId; + + /** The OCID of the subsetting policy. */ + public String getSubsettingPolicyId() { + return subsettingPolicyId; + } + /** + * 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public java.io.InputStream getBody$() { + return uploadSubsettingPolicyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UploadSubsettingPolicyRequest, java.io.InputStream> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details to upload a subsetting policy file. */ + private java.io.InputStream uploadSubsettingPolicyDetails = null; + + /** + * Details to upload a subsetting policy file. + * + * @param uploadSubsettingPolicyDetails the value to set + * @return this builder instance + */ + public Builder uploadSubsettingPolicyDetails( + java.io.InputStream uploadSubsettingPolicyDetails) { + this.uploadSubsettingPolicyDetails = uploadSubsettingPolicyDetails; + return this; + } + + /** The OCID of the subsetting policy. */ + private String subsettingPolicyId = null; + + /** + * The OCID of the subsetting policy. + * + * @param subsettingPolicyId the value to set + * @return this builder instance + */ + public Builder subsettingPolicyId(String subsettingPolicyId) { + this.subsettingPolicyId = subsettingPolicyId; + 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 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UploadSubsettingPolicyRequest o) { + uploadSubsettingPolicyDetails(o.getUploadSubsettingPolicyDetails()); + subsettingPolicyId(o.getSubsettingPolicyId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UploadSubsettingPolicyRequest 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 UploadSubsettingPolicyRequest + */ + public UploadSubsettingPolicyRequest build() { + UploadSubsettingPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(java.io.InputStream body) { + uploadSubsettingPolicyDetails(body); + return this; + } + + /** + * Build the instance of UploadSubsettingPolicyRequest 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 UploadSubsettingPolicyRequest + */ + public UploadSubsettingPolicyRequest buildWithoutInvocationCallback() { + UploadSubsettingPolicyRequest request = new UploadSubsettingPolicyRequest(); + request.uploadSubsettingPolicyDetails = uploadSubsettingPolicyDetails; + request.subsettingPolicyId = subsettingPolicyId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UploadSubsettingPolicyRequest(uploadSubsettingPolicyDetails, subsettingPolicyId, + // 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() + .uploadSubsettingPolicyDetails(uploadSubsettingPolicyDetails) + .subsettingPolicyId(subsettingPolicyId) + .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(",uploadSubsettingPolicyDetails=") + .append(String.valueOf(this.uploadSubsettingPolicyDetails)); + sb.append(",subsettingPolicyId=").append(String.valueOf(this.subsettingPolicyId)); + 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 UploadSubsettingPolicyRequest)) { + return false; + } + + UploadSubsettingPolicyRequest other = (UploadSubsettingPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.uploadSubsettingPolicyDetails, other.uploadSubsettingPolicyDetails) + && java.util.Objects.equals(this.subsettingPolicyId, other.subsettingPolicyId) + && 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.uploadSubsettingPolicyDetails == null + ? 43 + : this.uploadSubsettingPolicyDetails.hashCode()); + result = + (result * PRIME) + + (this.subsettingPolicyId == null + ? 43 + : this.subsettingPolicyId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeRegistrationPolicyCompartmentResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeRegistrationPolicyCompartmentResponse.java new file mode 100644 index 00000000000..8e32b68c629 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeRegistrationPolicyCompartmentResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeRegistrationPolicyCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** The returned {@code RegistrationPolicy} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy; + + /** + * The returned {@code RegistrationPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.RegistrationPolicy getRegistrationPolicy() { + return registrationPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcWorkRequestId", + "registrationPolicy" + }) + private ChangeRegistrationPolicyCompartmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String opcWorkRequestId, + com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.registrationPolicy = registrationPolicy; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeRegistrationPolicyCompartmentResponse> { + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** The returned {@code RegistrationPolicy} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy; + + /** + * The returned {@code RegistrationPolicy} instance. + * + * @param registrationPolicy the value to set + * @return this builder + */ + public Builder registrationPolicy( + com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy) { + this.registrationPolicy = registrationPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeRegistrationPolicyCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + registrationPolicy(o.getRegistrationPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeRegistrationPolicyCompartmentResponse build() { + return new ChangeRegistrationPolicyCompartmentResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcWorkRequestId, + registrationPolicy); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",registrationPolicy=").append(String.valueOf(registrationPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRegistrationPolicyCompartmentResponse)) { + return false; + } + + ChangeRegistrationPolicyCompartmentResponse other = + (ChangeRegistrationPolicyCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.registrationPolicy, other.registrationPolicy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.registrationPolicy == null + ? 43 + : this.registrationPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeSubsettingPolicyCompartmentResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeSubsettingPolicyCompartmentResponse.java new file mode 100644 index 00000000000..028043f0762 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeSubsettingPolicyCompartmentResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeSubsettingPolicyCompartmentResponse + 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 ChangeSubsettingPolicyCompartmentResponse( + 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< + ChangeSubsettingPolicyCompartmentResponse> { + 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(ChangeSubsettingPolicyCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeSubsettingPolicyCompartmentResponse build() { + return new ChangeSubsettingPolicyCompartmentResponse( + __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 ChangeSubsettingPolicyCompartmentResponse)) { + return false; + } + + ChangeSubsettingPolicyCompartmentResponse other = + (ChangeSubsettingPolicyCompartmentResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeSubsettingPolicyHealthReportCompartmentResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeSubsettingPolicyHealthReportCompartmentResponse.java new file mode 100644 index 00000000000..d4d0857afb6 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeSubsettingPolicyHealthReportCompartmentResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeSubsettingPolicyHealthReportCompartmentResponse + 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 ChangeSubsettingPolicyHealthReportCompartmentResponse( + 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< + ChangeSubsettingPolicyHealthReportCompartmentResponse> { + 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(ChangeSubsettingPolicyHealthReportCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeSubsettingPolicyHealthReportCompartmentResponse build() { + return new ChangeSubsettingPolicyHealthReportCompartmentResponse( + __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 ChangeSubsettingPolicyHealthReportCompartmentResponse)) { + return false; + } + + ChangeSubsettingPolicyHealthReportCompartmentResponse other = + (ChangeSubsettingPolicyHealthReportCompartmentResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateRegistrationPolicyResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateRegistrationPolicyResponse.java new file mode 100644 index 00000000000..15c878a9407 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateRegistrationPolicyResponse.java @@ -0,0 +1,272 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateRegistrationPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code RegistrationPolicy} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy; + + /** + * The returned {@code RegistrationPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.RegistrationPolicy getRegistrationPolicy() { + return registrationPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcWorkRequestId", + "opcRequestId", + "registrationPolicy" + }) + private CreateRegistrationPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.registrationPolicy = registrationPolicy; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateRegistrationPolicyResponse> { + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code RegistrationPolicy} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy; + + /** + * The returned {@code RegistrationPolicy} instance. + * + * @param registrationPolicy the value to set + * @return this builder + */ + public Builder registrationPolicy( + com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy) { + this.registrationPolicy = registrationPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateRegistrationPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + registrationPolicy(o.getRegistrationPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateRegistrationPolicyResponse build() { + return new CreateRegistrationPolicyResponse( + __httpStatusCode__, + headers, + etag, + opcWorkRequestId, + opcRequestId, + registrationPolicy); + } + } + + /** + * 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(",registrationPolicy=").append(String.valueOf(registrationPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateRegistrationPolicyResponse)) { + return false; + } + + CreateRegistrationPolicyResponse other = (CreateRegistrationPolicyResponse) 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.registrationPolicy, other.registrationPolicy); + } + + @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.registrationPolicy == null + ? 43 + : this.registrationPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingPolicyResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingPolicyResponse.java new file mode 100644 index 00000000000..41bf0178ec4 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingPolicyResponse.java @@ -0,0 +1,270 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateSubsettingPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SubsettingPolicy} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicy subsettingPolicy; + + /** + * The returned {@code SubsettingPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingPolicy getSubsettingPolicy() { + return subsettingPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcWorkRequestId", + "opcRequestId", + "subsettingPolicy" + }) + private CreateSubsettingPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.datasafe.model.SubsettingPolicy subsettingPolicy) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.subsettingPolicy = subsettingPolicy; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateSubsettingPolicyResponse> { + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SubsettingPolicy} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicy subsettingPolicy; + + /** + * The returned {@code SubsettingPolicy} instance. + * + * @param subsettingPolicy the value to set + * @return this builder + */ + public Builder subsettingPolicy( + com.oracle.bmc.datasafe.model.SubsettingPolicy subsettingPolicy) { + this.subsettingPolicy = subsettingPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateSubsettingPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + subsettingPolicy(o.getSubsettingPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateSubsettingPolicyResponse build() { + return new CreateSubsettingPolicyResponse( + __httpStatusCode__, + headers, + etag, + opcWorkRequestId, + opcRequestId, + subsettingPolicy); + } + } + + /** + * 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(",subsettingPolicy=").append(String.valueOf(subsettingPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSubsettingPolicyResponse)) { + return false; + } + + CreateSubsettingPolicyResponse other = (CreateSubsettingPolicyResponse) 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.subsettingPolicy, other.subsettingPolicy); + } + + @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.subsettingPolicy == null ? 43 : this.subsettingPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingRuleResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingRuleResponse.java new file mode 100644 index 00000000000..1646ba9802d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingRuleResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class CreateSubsettingRuleResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private CreateSubsettingRuleResponse( + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateSubsettingRuleResponse 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 CreateSubsettingRuleResponse build() { + return new CreateSubsettingRuleResponse( + __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 CreateSubsettingRuleResponse)) { + return false; + } + + CreateSubsettingRuleResponse other = (CreateSubsettingRuleResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingSchemaRelationResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingSchemaRelationResponse.java new file mode 100644 index 00000000000..0bd28a97041 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/CreateSubsettingSchemaRelationResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class CreateSubsettingSchemaRelationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private CreateSubsettingSchemaRelationResponse( + 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< + CreateSubsettingSchemaRelationResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateSubsettingSchemaRelationResponse 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 CreateSubsettingSchemaRelationResponse build() { + return new CreateSubsettingSchemaRelationResponse( + __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 CreateSubsettingSchemaRelationResponse)) { + return false; + } + + CreateSubsettingSchemaRelationResponse other = (CreateSubsettingSchemaRelationResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteRegistrationPolicyResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteRegistrationPolicyResponse.java new file mode 100644 index 00000000000..986ced598ee --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteRegistrationPolicyResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteRegistrationPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteRegistrationPolicyResponse( + 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< + DeleteRegistrationPolicyResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteRegistrationPolicyResponse 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 DeleteRegistrationPolicyResponse build() { + return new DeleteRegistrationPolicyResponse( + __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 DeleteRegistrationPolicyResponse)) { + return false; + } + + DeleteRegistrationPolicyResponse other = (DeleteRegistrationPolicyResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingPolicyHealthReportResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingPolicyHealthReportResponse.java new file mode 100644 index 00000000000..7d6f632bab8 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingPolicyHealthReportResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteSubsettingPolicyHealthReportResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteSubsettingPolicyHealthReportResponse( + 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< + DeleteSubsettingPolicyHealthReportResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteSubsettingPolicyHealthReportResponse 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 DeleteSubsettingPolicyHealthReportResponse build() { + return new DeleteSubsettingPolicyHealthReportResponse( + __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 DeleteSubsettingPolicyHealthReportResponse)) { + return false; + } + + DeleteSubsettingPolicyHealthReportResponse other = + (DeleteSubsettingPolicyHealthReportResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingPolicyResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingPolicyResponse.java new file mode 100644 index 00000000000..6cd33044f7e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingPolicyResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteSubsettingPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteSubsettingPolicyResponse( + 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< + DeleteSubsettingPolicyResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteSubsettingPolicyResponse 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 DeleteSubsettingPolicyResponse build() { + return new DeleteSubsettingPolicyResponse( + __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 DeleteSubsettingPolicyResponse)) { + return false; + } + + DeleteSubsettingPolicyResponse other = (DeleteSubsettingPolicyResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingReportResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingReportResponse.java new file mode 100644 index 00000000000..87a160cb984 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingReportResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteSubsettingReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteSubsettingReportResponse( + 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< + DeleteSubsettingReportResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteSubsettingReportResponse 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 DeleteSubsettingReportResponse build() { + return new DeleteSubsettingReportResponse( + __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 DeleteSubsettingReportResponse)) { + return false; + } + + DeleteSubsettingReportResponse other = (DeleteSubsettingReportResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingRuleResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingRuleResponse.java new file mode 100644 index 00000000000..0c9b6f075cf --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingRuleResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteSubsettingRuleResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteSubsettingRuleResponse( + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteSubsettingRuleResponse 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 DeleteSubsettingRuleResponse build() { + return new DeleteSubsettingRuleResponse( + __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 DeleteSubsettingRuleResponse)) { + return false; + } + + DeleteSubsettingRuleResponse other = (DeleteSubsettingRuleResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingSchemaRelationResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingSchemaRelationResponse.java new file mode 100644 index 00000000000..16c0b9bf6f6 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteSubsettingSchemaRelationResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteSubsettingSchemaRelationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteSubsettingSchemaRelationResponse( + 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< + DeleteSubsettingSchemaRelationResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteSubsettingSchemaRelationResponse 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 DeleteSubsettingSchemaRelationResponse build() { + return new DeleteSubsettingSchemaRelationResponse( + __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 DeleteSubsettingSchemaRelationResponse)) { + return false; + } + + DeleteSubsettingSchemaRelationResponse other = (DeleteSubsettingSchemaRelationResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingLogResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingLogResponse.java new file mode 100644 index 00000000000..0fc71285bcc --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingLogResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DownloadSubsettingLogResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 size of the subsetting log. */ + private Long contentLength; + + /** + * The size of the subsetting log. + * + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** 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", + "inputStream" + }) + private DownloadSubsettingLogResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Long contentLength, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.contentLength = contentLength; + this.inputStream = inputStream; + } + + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 size of the subsetting log. */ + private Long contentLength; + + /** + * The size of the subsetting log. + * + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + 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(DownloadSubsettingLogResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + contentLength(o.getContentLength()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DownloadSubsettingLogResponse build() { + return new DownloadSubsettingLogResponse( + __httpStatusCode__, headers, etag, opcRequestId, contentLength, 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(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadSubsettingLogResponse)) { + return false; + } + + DownloadSubsettingLogResponse other = (DownloadSubsettingLogResponse) 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.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.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingPolicyResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingPolicyResponse.java new file mode 100644 index 00000000000..d8576d28c81 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingPolicyResponse.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 DownloadSubsettingPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 size of the subsetting policy file. */ + private Long contentLength; + + /** + * The size of the subsetting policy file. + * + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** 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", + "inputStream" + }) + private DownloadSubsettingPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Long contentLength, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.contentLength = contentLength; + this.inputStream = inputStream; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DownloadSubsettingPolicyResponse> { + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 size of the subsetting policy file. */ + private Long contentLength; + + /** + * The size of the subsetting policy file. + * + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + 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(DownloadSubsettingPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + contentLength(o.getContentLength()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DownloadSubsettingPolicyResponse build() { + return new DownloadSubsettingPolicyResponse( + __httpStatusCode__, headers, etag, opcRequestId, contentLength, 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(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadSubsettingPolicyResponse)) { + return false; + } + + DownloadSubsettingPolicyResponse other = (DownloadSubsettingPolicyResponse) 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.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.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingReportResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingReportResponse.java new file mode 100644 index 00000000000..82483d50e56 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadSubsettingReportResponse.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 DownloadSubsettingReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 size of the subsetting report file. */ + private Long contentLength; + + /** + * The size of the subsetting report file. + * + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** 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", + "inputStream" + }) + private DownloadSubsettingReportResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Long contentLength, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.contentLength = contentLength; + this.inputStream = inputStream; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DownloadSubsettingReportResponse> { + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 size of the subsetting report file. */ + private Long contentLength; + + /** + * The size of the subsetting report file. + * + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + 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(DownloadSubsettingReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + contentLength(o.getContentLength()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DownloadSubsettingReportResponse build() { + return new DownloadSubsettingReportResponse( + __httpStatusCode__, headers, etag, opcRequestId, contentLength, 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(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadSubsettingReportResponse)) { + return false; + } + + DownloadSubsettingReportResponse other = (DownloadSubsettingReportResponse) 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.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.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/EstimateTableSizesResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/EstimateTableSizesResponse.java new file mode 100644 index 00000000000..5f6fc612f09 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/EstimateTableSizesResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class EstimateTableSizesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private EstimateTableSizesResponse( + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(EstimateTableSizesResponse 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 EstimateTableSizesResponse build() { + return new EstimateTableSizesResponse( + __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 EstimateTableSizesResponse)) { + return false; + } + + EstimateTableSizesResponse other = (EstimateTableSizesResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingHealthReportResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingHealthReportResponse.java new file mode 100644 index 00000000000..9e03badd0cb --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingHealthReportResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateSubsettingHealthReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private GenerateSubsettingHealthReportResponse( + 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< + GenerateSubsettingHealthReportResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GenerateSubsettingHealthReportResponse 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 GenerateSubsettingHealthReportResponse build() { + return new GenerateSubsettingHealthReportResponse( + __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 GenerateSubsettingHealthReportResponse)) { + return false; + } + + GenerateSubsettingHealthReportResponse other = (GenerateSubsettingHealthReportResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingPolicyForDownloadResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingPolicyForDownloadResponse.java new file mode 100644 index 00000000000..aaa2febb054 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingPolicyForDownloadResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateSubsettingPolicyForDownloadResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private GenerateSubsettingPolicyForDownloadResponse( + 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< + GenerateSubsettingPolicyForDownloadResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GenerateSubsettingPolicyForDownloadResponse 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 GenerateSubsettingPolicyForDownloadResponse build() { + return new GenerateSubsettingPolicyForDownloadResponse( + __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 GenerateSubsettingPolicyForDownloadResponse)) { + return false; + } + + GenerateSubsettingPolicyForDownloadResponse other = + (GenerateSubsettingPolicyForDownloadResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingReportForDownloadResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingReportForDownloadResponse.java new file mode 100644 index 00000000000..00a030d1209 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateSubsettingReportForDownloadResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateSubsettingReportForDownloadResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private GenerateSubsettingReportForDownloadResponse( + 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< + GenerateSubsettingReportForDownloadResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GenerateSubsettingReportForDownloadResponse 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 GenerateSubsettingReportForDownloadResponse build() { + return new GenerateSubsettingReportForDownloadResponse( + __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 GenerateSubsettingReportForDownloadResponse)) { + return false; + } + + GenerateSubsettingReportForDownloadResponse other = + (GenerateSubsettingReportForDownloadResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetRegistrationPolicyResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetRegistrationPolicyResponse.java new file mode 100644 index 00000000000..faa387c0346 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetRegistrationPolicyResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetRegistrationPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 RegistrationPolicy} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy; + + /** + * The returned {@code RegistrationPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.RegistrationPolicy getRegistrationPolicy() { + return registrationPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "registrationPolicy" + }) + private GetRegistrationPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.registrationPolicy = registrationPolicy; + } + + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 RegistrationPolicy} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy; + + /** + * The returned {@code RegistrationPolicy} instance. + * + * @param registrationPolicy the value to set + * @return this builder + */ + public Builder registrationPolicy( + com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy) { + this.registrationPolicy = registrationPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetRegistrationPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + registrationPolicy(o.getRegistrationPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetRegistrationPolicyResponse build() { + return new GetRegistrationPolicyResponse( + __httpStatusCode__, headers, etag, opcRequestId, registrationPolicy); + } + } + + /** + * 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(",registrationPolicy=").append(String.valueOf(registrationPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetRegistrationPolicyResponse)) { + return false; + } + + GetRegistrationPolicyResponse other = (GetRegistrationPolicyResponse) 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.registrationPolicy, other.registrationPolicy); + } + + @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.registrationPolicy == null + ? 43 + : this.registrationPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingPolicyHealthReportResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingPolicyHealthReportResponse.java new file mode 100644 index 00000000000..150f8cb1729 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingPolicyHealthReportResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetSubsettingPolicyHealthReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 SubsettingPolicyHealthReport} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport subsettingPolicyHealthReport; + + /** + * The returned {@code SubsettingPolicyHealthReport} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport + getSubsettingPolicyHealthReport() { + return subsettingPolicyHealthReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "subsettingPolicyHealthReport" + }) + private GetSubsettingPolicyHealthReportResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport + subsettingPolicyHealthReport) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.subsettingPolicyHealthReport = subsettingPolicyHealthReport; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetSubsettingPolicyHealthReportResponse> { + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 SubsettingPolicyHealthReport} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport + subsettingPolicyHealthReport; + + /** + * The returned {@code SubsettingPolicyHealthReport} instance. + * + * @param subsettingPolicyHealthReport the value to set + * @return this builder + */ + public Builder subsettingPolicyHealthReport( + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport + subsettingPolicyHealthReport) { + this.subsettingPolicyHealthReport = subsettingPolicyHealthReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetSubsettingPolicyHealthReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + subsettingPolicyHealthReport(o.getSubsettingPolicyHealthReport()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSubsettingPolicyHealthReportResponse build() { + return new GetSubsettingPolicyHealthReportResponse( + __httpStatusCode__, headers, etag, opcRequestId, subsettingPolicyHealthReport); + } + } + + /** + * 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(",subsettingPolicyHealthReport=") + .append(String.valueOf(subsettingPolicyHealthReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSubsettingPolicyHealthReportResponse)) { + return false; + } + + GetSubsettingPolicyHealthReportResponse other = (GetSubsettingPolicyHealthReportResponse) 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.subsettingPolicyHealthReport, other.subsettingPolicyHealthReport); + } + + @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.subsettingPolicyHealthReport == null + ? 43 + : this.subsettingPolicyHealthReport.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingPolicyResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingPolicyResponse.java new file mode 100644 index 00000000000..40f2690c223 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingPolicyResponse.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetSubsettingPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 SubsettingPolicy} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicy subsettingPolicy; + + /** + * The returned {@code SubsettingPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingPolicy getSubsettingPolicy() { + return subsettingPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "subsettingPolicy" + }) + private GetSubsettingPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.datasafe.model.SubsettingPolicy subsettingPolicy) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.subsettingPolicy = subsettingPolicy; + } + + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 SubsettingPolicy} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicy subsettingPolicy; + + /** + * The returned {@code SubsettingPolicy} instance. + * + * @param subsettingPolicy the value to set + * @return this builder + */ + public Builder subsettingPolicy( + com.oracle.bmc.datasafe.model.SubsettingPolicy subsettingPolicy) { + this.subsettingPolicy = subsettingPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetSubsettingPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + subsettingPolicy(o.getSubsettingPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSubsettingPolicyResponse build() { + return new GetSubsettingPolicyResponse( + __httpStatusCode__, headers, etag, opcRequestId, subsettingPolicy); + } + } + + /** + * 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(",subsettingPolicy=").append(String.valueOf(subsettingPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSubsettingPolicyResponse)) { + return false; + } + + GetSubsettingPolicyResponse other = (GetSubsettingPolicyResponse) 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.subsettingPolicy, other.subsettingPolicy); + } + + @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.subsettingPolicy == null ? 43 : this.subsettingPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingReportResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingReportResponse.java new file mode 100644 index 00000000000..cbd54195f75 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingReportResponse.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetSubsettingReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 SubsettingReport} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingReport subsettingReport; + + /** + * The returned {@code SubsettingReport} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingReport getSubsettingReport() { + return subsettingReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "subsettingReport" + }) + private GetSubsettingReportResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.datasafe.model.SubsettingReport subsettingReport) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.subsettingReport = subsettingReport; + } + + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 SubsettingReport} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingReport subsettingReport; + + /** + * The returned {@code SubsettingReport} instance. + * + * @param subsettingReport the value to set + * @return this builder + */ + public Builder subsettingReport( + com.oracle.bmc.datasafe.model.SubsettingReport subsettingReport) { + this.subsettingReport = subsettingReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetSubsettingReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + subsettingReport(o.getSubsettingReport()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSubsettingReportResponse build() { + return new GetSubsettingReportResponse( + __httpStatusCode__, headers, etag, opcRequestId, subsettingReport); + } + } + + /** + * 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(",subsettingReport=").append(String.valueOf(subsettingReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSubsettingReportResponse)) { + return false; + } + + GetSubsettingReportResponse other = (GetSubsettingReportResponse) 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.subsettingReport, other.subsettingReport); + } + + @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.subsettingReport == null ? 43 : this.subsettingReport.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingRuleResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingRuleResponse.java new file mode 100644 index 00000000000..d7e40282923 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingRuleResponse.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetSubsettingRuleResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 SubsettingRule} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingRule subsettingRule; + + /** + * The returned {@code SubsettingRule} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingRule getSubsettingRule() { + return subsettingRule; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "subsettingRule" + }) + private GetSubsettingRuleResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.datasafe.model.SubsettingRule subsettingRule) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.subsettingRule = subsettingRule; + } + + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 SubsettingRule} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingRule subsettingRule; + + /** + * The returned {@code SubsettingRule} instance. + * + * @param subsettingRule the value to set + * @return this builder + */ + public Builder subsettingRule(com.oracle.bmc.datasafe.model.SubsettingRule subsettingRule) { + this.subsettingRule = subsettingRule; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetSubsettingRuleResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + subsettingRule(o.getSubsettingRule()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSubsettingRuleResponse build() { + return new GetSubsettingRuleResponse( + __httpStatusCode__, headers, etag, opcRequestId, subsettingRule); + } + } + + /** + * 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(",subsettingRule=").append(String.valueOf(subsettingRule)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSubsettingRuleResponse)) { + return false; + } + + GetSubsettingRuleResponse other = (GetSubsettingRuleResponse) 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.subsettingRule, other.subsettingRule); + } + + @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.subsettingRule == null ? 43 : this.subsettingRule.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingSchemaRelationResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingSchemaRelationResponse.java new file mode 100644 index 00000000000..0c4307ba5cf --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetSubsettingSchemaRelationResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetSubsettingSchemaRelationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 SubsettingSchemaRelation} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingSchemaRelation subsettingSchemaRelation; + + /** + * The returned {@code SubsettingSchemaRelation} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingSchemaRelation getSubsettingSchemaRelation() { + return subsettingSchemaRelation; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "subsettingSchemaRelation" + }) + private GetSubsettingSchemaRelationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.datasafe.model.SubsettingSchemaRelation subsettingSchemaRelation) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.subsettingSchemaRelation = subsettingSchemaRelation; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetSubsettingSchemaRelationResponse> { + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @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 SubsettingSchemaRelation} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingSchemaRelation subsettingSchemaRelation; + + /** + * The returned {@code SubsettingSchemaRelation} instance. + * + * @param subsettingSchemaRelation the value to set + * @return this builder + */ + public Builder subsettingSchemaRelation( + com.oracle.bmc.datasafe.model.SubsettingSchemaRelation subsettingSchemaRelation) { + this.subsettingSchemaRelation = subsettingSchemaRelation; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetSubsettingSchemaRelationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + subsettingSchemaRelation(o.getSubsettingSchemaRelation()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSubsettingSchemaRelationResponse build() { + return new GetSubsettingSchemaRelationResponse( + __httpStatusCode__, headers, etag, opcRequestId, subsettingSchemaRelation); + } + } + + /** + * 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(",subsettingSchemaRelation=").append(String.valueOf(subsettingSchemaRelation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSubsettingSchemaRelationResponse)) { + return false; + } + + GetSubsettingSchemaRelationResponse other = (GetSubsettingSchemaRelationResponse) 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.subsettingSchemaRelation, other.subsettingSchemaRelation); + } + + @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.subsettingSchemaRelation == null + ? 43 + : this.subsettingSchemaRelation.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListRegistrationPoliciesResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListRegistrationPoliciesResponse.java new file mode 100644 index 00000000000..5b487f47dcf --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListRegistrationPoliciesResponse.java @@ -0,0 +1,286 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListRegistrationPoliciesResponse 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 RegistrationPolicyCollection} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicyCollection registrationPolicyCollection; + + /** + * The returned {@code RegistrationPolicyCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.RegistrationPolicyCollection + getRegistrationPolicyCollection() { + return registrationPolicyCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "registrationPolicyCollection" + }) + private ListRegistrationPoliciesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.RegistrationPolicyCollection + registrationPolicyCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.registrationPolicyCollection = registrationPolicyCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListRegistrationPoliciesResponse> { + 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 RegistrationPolicyCollection} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicyCollection + registrationPolicyCollection; + + /** + * The returned {@code RegistrationPolicyCollection} instance. + * + * @param registrationPolicyCollection the value to set + * @return this builder + */ + public Builder registrationPolicyCollection( + com.oracle.bmc.datasafe.model.RegistrationPolicyCollection + registrationPolicyCollection) { + this.registrationPolicyCollection = registrationPolicyCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListRegistrationPoliciesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + registrationPolicyCollection(o.getRegistrationPolicyCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListRegistrationPoliciesResponse build() { + return new ListRegistrationPoliciesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + registrationPolicyCollection); + } + } + + /** + * 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(",registrationPolicyCollection=") + .append(String.valueOf(registrationPolicyCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRegistrationPoliciesResponse)) { + return false; + } + + ListRegistrationPoliciesResponse other = (ListRegistrationPoliciesResponse) 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.registrationPolicyCollection, other.registrationPolicyCollection); + } + + @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.registrationPolicyCollection == null + ? 43 + : this.registrationPolicyCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListRegistrationPolicyTargetDatabasesResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListRegistrationPolicyTargetDatabasesResponse.java new file mode 100644 index 00000000000..8b1d3dcf65d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListRegistrationPolicyTargetDatabasesResponse.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListRegistrationPolicyTargetDatabasesResponse + 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; + } + + /** The returned {@code RegistrationPolicyTargetDatabaseSummaryCollection} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummaryCollection + registrationPolicyTargetDatabaseSummaryCollection; + + /** + * The returned {@code RegistrationPolicyTargetDatabaseSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummaryCollection + getRegistrationPolicyTargetDatabaseSummaryCollection() { + return registrationPolicyTargetDatabaseSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "registrationPolicyTargetDatabaseSummaryCollection" + }) + private ListRegistrationPolicyTargetDatabasesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummaryCollection + registrationPolicyTargetDatabaseSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.registrationPolicyTargetDatabaseSummaryCollection = + registrationPolicyTargetDatabaseSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListRegistrationPolicyTargetDatabasesResponse> { + 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; + } + + /** The returned {@code RegistrationPolicyTargetDatabaseSummaryCollection} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummaryCollection + registrationPolicyTargetDatabaseSummaryCollection; + + /** + * The returned {@code RegistrationPolicyTargetDatabaseSummaryCollection} instance. + * + * @param registrationPolicyTargetDatabaseSummaryCollection the value to set + * @return this builder + */ + public Builder registrationPolicyTargetDatabaseSummaryCollection( + com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummaryCollection + registrationPolicyTargetDatabaseSummaryCollection) { + this.registrationPolicyTargetDatabaseSummaryCollection = + registrationPolicyTargetDatabaseSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListRegistrationPolicyTargetDatabasesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + registrationPolicyTargetDatabaseSummaryCollection( + o.getRegistrationPolicyTargetDatabaseSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListRegistrationPolicyTargetDatabasesResponse build() { + return new ListRegistrationPolicyTargetDatabasesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + registrationPolicyTargetDatabaseSummaryCollection); + } + } + + /** + * 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(",registrationPolicyTargetDatabaseSummaryCollection=") + .append(String.valueOf(registrationPolicyTargetDatabaseSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRegistrationPolicyTargetDatabasesResponse)) { + return false; + } + + ListRegistrationPolicyTargetDatabasesResponse other = + (ListRegistrationPolicyTargetDatabasesResponse) 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.registrationPolicyTargetDatabaseSummaryCollection, + other.registrationPolicyTargetDatabaseSummaryCollection); + } + + @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.registrationPolicyTargetDatabaseSummaryCollection == null + ? 43 + : this.registrationPolicyTargetDatabaseSummaryCollection + .hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettedObjectsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettedObjectsResponse.java new file mode 100644 index 00000000000..da6f4090907 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettedObjectsResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettedObjectsResponse 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 SubsettedObjectCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettedObjectCollection subsettedObjectCollection; + + /** + * The returned {@code SubsettedObjectCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettedObjectCollection getSubsettedObjectCollection() { + return subsettedObjectCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettedObjectCollection" + }) + private ListSubsettedObjectsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettedObjectCollection subsettedObjectCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettedObjectCollection = subsettedObjectCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. 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 SubsettedObjectCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettedObjectCollection subsettedObjectCollection; + + /** + * The returned {@code SubsettedObjectCollection} instance. + * + * @param subsettedObjectCollection the value to set + * @return this builder + */ + public Builder subsettedObjectCollection( + com.oracle.bmc.datasafe.model.SubsettedObjectCollection subsettedObjectCollection) { + this.subsettedObjectCollection = subsettedObjectCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettedObjectsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettedObjectCollection(o.getSubsettedObjectCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettedObjectsResponse build() { + return new ListSubsettedObjectsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettedObjectCollection); + } + } + + /** + * 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(",subsettedObjectCollection=").append(String.valueOf(subsettedObjectCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettedObjectsResponse)) { + return false; + } + + ListSubsettedObjectsResponse other = (ListSubsettedObjectsResponse) 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.subsettedObjectCollection, other.subsettedObjectCollection); + } + + @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.subsettedObjectCollection == null + ? 43 + : this.subsettedObjectCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingAnalyticsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingAnalyticsResponse.java new file mode 100644 index 00000000000..40b09cfdc58 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingAnalyticsResponse.java @@ -0,0 +1,287 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListSubsettingAnalyticsResponse 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 SubsettingAnalyticsCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingAnalyticsCollection + subsettingAnalyticsCollection; + + /** + * The returned {@code SubsettingAnalyticsCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingAnalyticsCollection + getSubsettingAnalyticsCollection() { + return subsettingAnalyticsCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingAnalyticsCollection" + }) + private ListSubsettingAnalyticsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingAnalyticsCollection + subsettingAnalyticsCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingAnalyticsCollection = subsettingAnalyticsCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListSubsettingAnalyticsResponse> { + 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 SubsettingAnalyticsCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingAnalyticsCollection + subsettingAnalyticsCollection; + + /** + * The returned {@code SubsettingAnalyticsCollection} instance. + * + * @param subsettingAnalyticsCollection the value to set + * @return this builder + */ + public Builder subsettingAnalyticsCollection( + com.oracle.bmc.datasafe.model.SubsettingAnalyticsCollection + subsettingAnalyticsCollection) { + this.subsettingAnalyticsCollection = subsettingAnalyticsCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingAnalyticsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingAnalyticsCollection(o.getSubsettingAnalyticsCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingAnalyticsResponse build() { + return new ListSubsettingAnalyticsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingAnalyticsCollection); + } + } + + /** + * 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(",subsettingAnalyticsCollection=") + .append(String.valueOf(subsettingAnalyticsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingAnalyticsResponse)) { + return false; + } + + ListSubsettingAnalyticsResponse other = (ListSubsettingAnalyticsResponse) 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.subsettingAnalyticsCollection, other.subsettingAnalyticsCollection); + } + + @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.subsettingAnalyticsCollection == null + ? 43 + : this.subsettingAnalyticsCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingErrorsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingErrorsResponse.java new file mode 100644 index 00000000000..a6eb07f6b35 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingErrorsResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingErrorsResponse 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 SubsettingErrorCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingErrorCollection subsettingErrorCollection; + + /** + * The returned {@code SubsettingErrorCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingErrorCollection getSubsettingErrorCollection() { + return subsettingErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingErrorCollection" + }) + private ListSubsettingErrorsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingErrorCollection subsettingErrorCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingErrorCollection = subsettingErrorCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. 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 SubsettingErrorCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingErrorCollection subsettingErrorCollection; + + /** + * The returned {@code SubsettingErrorCollection} instance. + * + * @param subsettingErrorCollection the value to set + * @return this builder + */ + public Builder subsettingErrorCollection( + com.oracle.bmc.datasafe.model.SubsettingErrorCollection subsettingErrorCollection) { + this.subsettingErrorCollection = subsettingErrorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingErrorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingErrorCollection(o.getSubsettingErrorCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingErrorsResponse build() { + return new ListSubsettingErrorsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingErrorCollection); + } + } + + /** + * 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(",subsettingErrorCollection=").append(String.valueOf(subsettingErrorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingErrorsResponse)) { + return false; + } + + ListSubsettingErrorsResponse other = (ListSubsettingErrorsResponse) 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.subsettingErrorCollection, other.subsettingErrorCollection); + } + + @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.subsettingErrorCollection == null + ? 43 + : this.subsettingErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPoliciesResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPoliciesResponse.java new file mode 100644 index 00000000000..f8ff194bead --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPoliciesResponse.java @@ -0,0 +1,284 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListSubsettingPoliciesResponse 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 SubsettingPolicyCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicyCollection subsettingPolicyCollection; + + /** + * The returned {@code SubsettingPolicyCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingPolicyCollection + getSubsettingPolicyCollection() { + return subsettingPolicyCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingPolicyCollection" + }) + private ListSubsettingPoliciesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingPolicyCollection subsettingPolicyCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingPolicyCollection = subsettingPolicyCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListSubsettingPoliciesResponse> { + 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 SubsettingPolicyCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicyCollection subsettingPolicyCollection; + + /** + * The returned {@code SubsettingPolicyCollection} instance. + * + * @param subsettingPolicyCollection the value to set + * @return this builder + */ + public Builder subsettingPolicyCollection( + com.oracle.bmc.datasafe.model.SubsettingPolicyCollection + subsettingPolicyCollection) { + this.subsettingPolicyCollection = subsettingPolicyCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingPoliciesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingPolicyCollection(o.getSubsettingPolicyCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingPoliciesResponse build() { + return new ListSubsettingPoliciesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingPolicyCollection); + } + } + + /** + * 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(",subsettingPolicyCollection=") + .append(String.valueOf(subsettingPolicyCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingPoliciesResponse)) { + return false; + } + + ListSubsettingPoliciesResponse other = (ListSubsettingPoliciesResponse) 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.subsettingPolicyCollection, other.subsettingPolicyCollection); + } + + @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.subsettingPolicyCollection == null + ? 43 + : this.subsettingPolicyCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPolicyHealthReportLogsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPolicyHealthReportLogsResponse.java new file mode 100644 index 00000000000..7adfd5a530d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPolicyHealthReportLogsResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingPolicyHealthReportLogsResponse + 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 SubsettingPolicyHealthReportLogCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogCollection + subsettingPolicyHealthReportLogCollection; + + /** + * The returned {@code SubsettingPolicyHealthReportLogCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogCollection + getSubsettingPolicyHealthReportLogCollection() { + return subsettingPolicyHealthReportLogCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingPolicyHealthReportLogCollection" + }) + private ListSubsettingPolicyHealthReportLogsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogCollection + subsettingPolicyHealthReportLogCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingPolicyHealthReportLogCollection = subsettingPolicyHealthReportLogCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListSubsettingPolicyHealthReportLogsResponse> { + 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 SubsettingPolicyHealthReportLogCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogCollection + subsettingPolicyHealthReportLogCollection; + + /** + * The returned {@code SubsettingPolicyHealthReportLogCollection} instance. + * + * @param subsettingPolicyHealthReportLogCollection the value to set + * @return this builder + */ + public Builder subsettingPolicyHealthReportLogCollection( + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogCollection + subsettingPolicyHealthReportLogCollection) { + this.subsettingPolicyHealthReportLogCollection = + subsettingPolicyHealthReportLogCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingPolicyHealthReportLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingPolicyHealthReportLogCollection( + o.getSubsettingPolicyHealthReportLogCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingPolicyHealthReportLogsResponse build() { + return new ListSubsettingPolicyHealthReportLogsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingPolicyHealthReportLogCollection); + } + } + + /** + * 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(",subsettingPolicyHealthReportLogCollection=") + .append(String.valueOf(subsettingPolicyHealthReportLogCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingPolicyHealthReportLogsResponse)) { + return false; + } + + ListSubsettingPolicyHealthReportLogsResponse other = + (ListSubsettingPolicyHealthReportLogsResponse) 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.subsettingPolicyHealthReportLogCollection, + other.subsettingPolicyHealthReportLogCollection); + } + + @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.subsettingPolicyHealthReportLogCollection == null + ? 43 + : this.subsettingPolicyHealthReportLogCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPolicyHealthReportsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPolicyHealthReportsResponse.java new file mode 100644 index 00000000000..f811b3a2976 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingPolicyHealthReportsResponse.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 ListSubsettingPolicyHealthReportsResponse + 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 SubsettingPolicyHealthReportCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportCollection + subsettingPolicyHealthReportCollection; + + /** + * The returned {@code SubsettingPolicyHealthReportCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportCollection + getSubsettingPolicyHealthReportCollection() { + return subsettingPolicyHealthReportCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingPolicyHealthReportCollection" + }) + private ListSubsettingPolicyHealthReportsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportCollection + subsettingPolicyHealthReportCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingPolicyHealthReportCollection = subsettingPolicyHealthReportCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListSubsettingPolicyHealthReportsResponse> { + 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 SubsettingPolicyHealthReportCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportCollection + subsettingPolicyHealthReportCollection; + + /** + * The returned {@code SubsettingPolicyHealthReportCollection} instance. + * + * @param subsettingPolicyHealthReportCollection the value to set + * @return this builder + */ + public Builder subsettingPolicyHealthReportCollection( + com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportCollection + subsettingPolicyHealthReportCollection) { + this.subsettingPolicyHealthReportCollection = subsettingPolicyHealthReportCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingPolicyHealthReportsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingPolicyHealthReportCollection(o.getSubsettingPolicyHealthReportCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingPolicyHealthReportsResponse build() { + return new ListSubsettingPolicyHealthReportsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingPolicyHealthReportCollection); + } + } + + /** + * 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(",subsettingPolicyHealthReportCollection=") + .append(String.valueOf(subsettingPolicyHealthReportCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingPolicyHealthReportsResponse)) { + return false; + } + + ListSubsettingPolicyHealthReportsResponse other = + (ListSubsettingPolicyHealthReportsResponse) 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.subsettingPolicyHealthReportCollection, + other.subsettingPolicyHealthReportCollection); + } + + @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.subsettingPolicyHealthReportCollection == null + ? 43 + : this.subsettingPolicyHealthReportCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingReportsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingReportsResponse.java new file mode 100644 index 00000000000..a4556d1cdac --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingReportsResponse.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListSubsettingReportsResponse 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 SubsettingReportCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingReportCollection subsettingReportCollection; + + /** + * The returned {@code SubsettingReportCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingReportCollection + getSubsettingReportCollection() { + return subsettingReportCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingReportCollection" + }) + private ListSubsettingReportsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingReportCollection subsettingReportCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingReportCollection = subsettingReportCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. 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 SubsettingReportCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingReportCollection subsettingReportCollection; + + /** + * The returned {@code SubsettingReportCollection} instance. + * + * @param subsettingReportCollection the value to set + * @return this builder + */ + public Builder subsettingReportCollection( + com.oracle.bmc.datasafe.model.SubsettingReportCollection + subsettingReportCollection) { + this.subsettingReportCollection = subsettingReportCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingReportsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingReportCollection(o.getSubsettingReportCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingReportsResponse build() { + return new ListSubsettingReportsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingReportCollection); + } + } + + /** + * 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(",subsettingReportCollection=") + .append(String.valueOf(subsettingReportCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingReportsResponse)) { + return false; + } + + ListSubsettingReportsResponse other = (ListSubsettingReportsResponse) 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.subsettingReportCollection, other.subsettingReportCollection); + } + + @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.subsettingReportCollection == null + ? 43 + : this.subsettingReportCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingRuleProcessingChainObjectsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingRuleProcessingChainObjectsResponse.java new file mode 100644 index 00000000000..cf89eda8f5b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingRuleProcessingChainObjectsResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingRuleProcessingChainObjectsResponse + 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 SubsettingRuleProcessingChainObjectsCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectsCollection + subsettingRuleProcessingChainObjectsCollection; + + /** + * The returned {@code SubsettingRuleProcessingChainObjectsCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectsCollection + getSubsettingRuleProcessingChainObjectsCollection() { + return subsettingRuleProcessingChainObjectsCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingRuleProcessingChainObjectsCollection" + }) + private ListSubsettingRuleProcessingChainObjectsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectsCollection + subsettingRuleProcessingChainObjectsCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingRuleProcessingChainObjectsCollection = + subsettingRuleProcessingChainObjectsCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListSubsettingRuleProcessingChainObjectsResponse> { + 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 SubsettingRuleProcessingChainObjectsCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectsCollection + subsettingRuleProcessingChainObjectsCollection; + + /** + * The returned {@code SubsettingRuleProcessingChainObjectsCollection} instance. + * + * @param subsettingRuleProcessingChainObjectsCollection the value to set + * @return this builder + */ + public Builder subsettingRuleProcessingChainObjectsCollection( + com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectsCollection + subsettingRuleProcessingChainObjectsCollection) { + this.subsettingRuleProcessingChainObjectsCollection = + subsettingRuleProcessingChainObjectsCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingRuleProcessingChainObjectsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingRuleProcessingChainObjectsCollection( + o.getSubsettingRuleProcessingChainObjectsCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingRuleProcessingChainObjectsResponse build() { + return new ListSubsettingRuleProcessingChainObjectsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingRuleProcessingChainObjectsCollection); + } + } + + /** + * 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(",subsettingRuleProcessingChainObjectsCollection=") + .append(String.valueOf(subsettingRuleProcessingChainObjectsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingRuleProcessingChainObjectsResponse)) { + return false; + } + + ListSubsettingRuleProcessingChainObjectsResponse other = + (ListSubsettingRuleProcessingChainObjectsResponse) 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.subsettingRuleProcessingChainObjectsCollection, + other.subsettingRuleProcessingChainObjectsCollection); + } + + @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.subsettingRuleProcessingChainObjectsCollection == null + ? 43 + : this.subsettingRuleProcessingChainObjectsCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingRulesResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingRulesResponse.java new file mode 100644 index 00000000000..a49b64b2ad4 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingRulesResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingRulesResponse 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 SubsettingRuleCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingRuleCollection subsettingRuleCollection; + + /** + * The returned {@code SubsettingRuleCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingRuleCollection getSubsettingRuleCollection() { + return subsettingRuleCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingRuleCollection" + }) + private ListSubsettingRulesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingRuleCollection subsettingRuleCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingRuleCollection = subsettingRuleCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. 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 SubsettingRuleCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingRuleCollection subsettingRuleCollection; + + /** + * The returned {@code SubsettingRuleCollection} instance. + * + * @param subsettingRuleCollection the value to set + * @return this builder + */ + public Builder subsettingRuleCollection( + com.oracle.bmc.datasafe.model.SubsettingRuleCollection subsettingRuleCollection) { + this.subsettingRuleCollection = subsettingRuleCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingRulesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingRuleCollection(o.getSubsettingRuleCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingRulesResponse build() { + return new ListSubsettingRulesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingRuleCollection); + } + } + + /** + * 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(",subsettingRuleCollection=").append(String.valueOf(subsettingRuleCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingRulesResponse)) { + return false; + } + + ListSubsettingRulesResponse other = (ListSubsettingRulesResponse) 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.subsettingRuleCollection, other.subsettingRuleCollection); + } + + @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.subsettingRuleCollection == null + ? 43 + : this.subsettingRuleCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemaObjectsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemaObjectsResponse.java new file mode 100644 index 00000000000..8c06d701050 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemaObjectsResponse.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingSchemaObjectsResponse 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 SubsettingSchemaObjectCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingSchemaObjectCollection + subsettingSchemaObjectCollection; + + /** + * The returned {@code SubsettingSchemaObjectCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingSchemaObjectCollection + getSubsettingSchemaObjectCollection() { + return subsettingSchemaObjectCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingSchemaObjectCollection" + }) + private ListSubsettingSchemaObjectsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingSchemaObjectCollection + subsettingSchemaObjectCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingSchemaObjectCollection = subsettingSchemaObjectCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListSubsettingSchemaObjectsResponse> { + 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 SubsettingSchemaObjectCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingSchemaObjectCollection + subsettingSchemaObjectCollection; + + /** + * The returned {@code SubsettingSchemaObjectCollection} instance. + * + * @param subsettingSchemaObjectCollection the value to set + * @return this builder + */ + public Builder subsettingSchemaObjectCollection( + com.oracle.bmc.datasafe.model.SubsettingSchemaObjectCollection + subsettingSchemaObjectCollection) { + this.subsettingSchemaObjectCollection = subsettingSchemaObjectCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingSchemaObjectsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingSchemaObjectCollection(o.getSubsettingSchemaObjectCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingSchemaObjectsResponse build() { + return new ListSubsettingSchemaObjectsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingSchemaObjectCollection); + } + } + + /** + * 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(",subsettingSchemaObjectCollection=") + .append(String.valueOf(subsettingSchemaObjectCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingSchemaObjectsResponse)) { + return false; + } + + ListSubsettingSchemaObjectsResponse other = (ListSubsettingSchemaObjectsResponse) 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.subsettingSchemaObjectCollection, + other.subsettingSchemaObjectCollection); + } + + @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.subsettingSchemaObjectCollection == null + ? 43 + : this.subsettingSchemaObjectCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemaRelationsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemaRelationsResponse.java new file mode 100644 index 00000000000..f9ae5d1398d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemaRelationsResponse.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListSubsettingSchemaRelationsResponse 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 SubsettingSchemaRelationCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingSchemaRelationCollection + subsettingSchemaRelationCollection; + + /** + * The returned {@code SubsettingSchemaRelationCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingSchemaRelationCollection + getSubsettingSchemaRelationCollection() { + return subsettingSchemaRelationCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingSchemaRelationCollection" + }) + private ListSubsettingSchemaRelationsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingSchemaRelationCollection + subsettingSchemaRelationCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingSchemaRelationCollection = subsettingSchemaRelationCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListSubsettingSchemaRelationsResponse> { + 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 SubsettingSchemaRelationCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingSchemaRelationCollection + subsettingSchemaRelationCollection; + + /** + * The returned {@code SubsettingSchemaRelationCollection} instance. + * + * @param subsettingSchemaRelationCollection the value to set + * @return this builder + */ + public Builder subsettingSchemaRelationCollection( + com.oracle.bmc.datasafe.model.SubsettingSchemaRelationCollection + subsettingSchemaRelationCollection) { + this.subsettingSchemaRelationCollection = subsettingSchemaRelationCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingSchemaRelationsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingSchemaRelationCollection(o.getSubsettingSchemaRelationCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingSchemaRelationsResponse build() { + return new ListSubsettingSchemaRelationsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingSchemaRelationCollection); + } + } + + /** + * 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(",subsettingSchemaRelationCollection=") + .append(String.valueOf(subsettingSchemaRelationCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingSchemaRelationsResponse)) { + return false; + } + + ListSubsettingSchemaRelationsResponse other = (ListSubsettingSchemaRelationsResponse) 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.subsettingSchemaRelationCollection, + other.subsettingSchemaRelationCollection); + } + + @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.subsettingSchemaRelationCollection == null + ? 43 + : this.subsettingSchemaRelationCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemasResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemasResponse.java new file mode 100644 index 00000000000..cc5a1e4b421 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListSubsettingSchemasResponse.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListSubsettingSchemasResponse 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 SubsettingSchemaCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingSchemaCollection subsettingSchemaCollection; + + /** + * The returned {@code SubsettingSchemaCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.SubsettingSchemaCollection + getSubsettingSchemaCollection() { + return subsettingSchemaCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "subsettingSchemaCollection" + }) + private ListSubsettingSchemasResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.SubsettingSchemaCollection subsettingSchemaCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.subsettingSchemaCollection = subsettingSchemaCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. 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 SubsettingSchemaCollection} instance. */ + private com.oracle.bmc.datasafe.model.SubsettingSchemaCollection subsettingSchemaCollection; + + /** + * The returned {@code SubsettingSchemaCollection} instance. + * + * @param subsettingSchemaCollection the value to set + * @return this builder + */ + public Builder subsettingSchemaCollection( + com.oracle.bmc.datasafe.model.SubsettingSchemaCollection + subsettingSchemaCollection) { + this.subsettingSchemaCollection = subsettingSchemaCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSubsettingSchemasResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + subsettingSchemaCollection(o.getSubsettingSchemaCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSubsettingSchemasResponse build() { + return new ListSubsettingSchemasResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + subsettingSchemaCollection); + } + } + + /** + * 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(",subsettingSchemaCollection=") + .append(String.valueOf(subsettingSchemaCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSubsettingSchemasResponse)) { + return false; + } + + ListSubsettingSchemasResponse other = (ListSubsettingSchemasResponse) 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.subsettingSchemaCollection, other.subsettingSchemaCollection); + } + + @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.subsettingSchemaCollection == null + ? 43 + : this.subsettingSchemaCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTableEstimatesResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTableEstimatesResponse.java new file mode 100644 index 00000000000..af1c544a370 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTableEstimatesResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListTableEstimatesResponse 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 TableEstimateCollection} instance. */ + private com.oracle.bmc.datasafe.model.TableEstimateCollection tableEstimateCollection; + + /** + * The returned {@code TableEstimateCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.TableEstimateCollection getTableEstimateCollection() { + return tableEstimateCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "tableEstimateCollection" + }) + private ListTableEstimatesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.TableEstimateCollection tableEstimateCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.tableEstimateCollection = tableEstimateCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. 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 TableEstimateCollection} instance. */ + private com.oracle.bmc.datasafe.model.TableEstimateCollection tableEstimateCollection; + + /** + * The returned {@code TableEstimateCollection} instance. + * + * @param tableEstimateCollection the value to set + * @return this builder + */ + public Builder tableEstimateCollection( + com.oracle.bmc.datasafe.model.TableEstimateCollection tableEstimateCollection) { + this.tableEstimateCollection = tableEstimateCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListTableEstimatesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + tableEstimateCollection(o.getTableEstimateCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListTableEstimatesResponse build() { + return new ListTableEstimatesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + tableEstimateCollection); + } + } + + /** + * 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(",tableEstimateCollection=").append(String.valueOf(tableEstimateCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListTableEstimatesResponse)) { + return false; + } + + ListTableEstimatesResponse other = (ListTableEstimatesResponse) 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.tableEstimateCollection, other.tableEstimateCollection); + } + + @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.tableEstimateCollection == null + ? 43 + : this.tableEstimateCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ManagePrivilegesResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ManagePrivilegesResponse.java new file mode 100644 index 00000000000..4a23a7d1219 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ManagePrivilegesResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ManagePrivilegesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ManagePrivilegesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ManagePrivilegesResponse 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 ManagePrivilegesResponse build() { + return new ManagePrivilegesResponse( + __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 ManagePrivilegesResponse)) { + return false; + } + + ManagePrivilegesResponse other = (ManagePrivilegesResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/PatchSubsettingRulesResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/PatchSubsettingRulesResponse.java new file mode 100644 index 00000000000..9787cd21e9f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/PatchSubsettingRulesResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class PatchSubsettingRulesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private PatchSubsettingRulesResponse( + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(PatchSubsettingRulesResponse 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 PatchSubsettingRulesResponse build() { + return new PatchSubsettingRulesResponse( + __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 PatchSubsettingRulesResponse)) { + return false; + } + + PatchSubsettingRulesResponse other = (PatchSubsettingRulesResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/SubsetDataResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/SubsetDataResponse.java new file mode 100644 index 00000000000..b2b521b6b66 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/SubsetDataResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class SubsetDataResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private SubsetDataResponse( + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(SubsetDataResponse 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 SubsetDataResponse build() { + return new SubsetDataResponse( + __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 SubsetDataResponse)) { + return false; + } + + SubsetDataResponse other = (SubsetDataResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateProcessingChainObjectResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateProcessingChainObjectResponse.java new file mode 100644 index 00000000000..d5bc99a37a5 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateProcessingChainObjectResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateProcessingChainObjectResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateProcessingChainObjectResponse( + 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< + UpdateProcessingChainObjectResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateProcessingChainObjectResponse 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 UpdateProcessingChainObjectResponse build() { + return new UpdateProcessingChainObjectResponse( + __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 UpdateProcessingChainObjectResponse)) { + return false; + } + + UpdateProcessingChainObjectResponse other = (UpdateProcessingChainObjectResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateRegistrationPolicyResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateRegistrationPolicyResponse.java new file mode 100644 index 00000000000..0758553e10b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateRegistrationPolicyResponse.java @@ -0,0 +1,272 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 UpdateRegistrationPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code RegistrationPolicy} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy; + + /** + * The returned {@code RegistrationPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.RegistrationPolicy getRegistrationPolicy() { + return registrationPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcWorkRequestId", + "opcRequestId", + "registrationPolicy" + }) + private UpdateRegistrationPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.registrationPolicy = registrationPolicy; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateRegistrationPolicyResponse> { + 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. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code RegistrationPolicy} instance. */ + private com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy; + + /** + * The returned {@code RegistrationPolicy} instance. + * + * @param registrationPolicy the value to set + * @return this builder + */ + public Builder registrationPolicy( + com.oracle.bmc.datasafe.model.RegistrationPolicy registrationPolicy) { + this.registrationPolicy = registrationPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateRegistrationPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + registrationPolicy(o.getRegistrationPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateRegistrationPolicyResponse build() { + return new UpdateRegistrationPolicyResponse( + __httpStatusCode__, + headers, + etag, + opcWorkRequestId, + opcRequestId, + registrationPolicy); + } + } + + /** + * 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(",registrationPolicy=").append(String.valueOf(registrationPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateRegistrationPolicyResponse)) { + return false; + } + + UpdateRegistrationPolicyResponse other = (UpdateRegistrationPolicyResponse) 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.registrationPolicy, other.registrationPolicy); + } + + @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.registrationPolicy == null + ? 43 + : this.registrationPolicy.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateSubsettingPolicyResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateSubsettingPolicyResponse.java new file mode 100644 index 00000000000..44f593d5d00 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateSubsettingPolicyResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateSubsettingPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateSubsettingPolicyResponse( + 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< + UpdateSubsettingPolicyResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateSubsettingPolicyResponse 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 UpdateSubsettingPolicyResponse build() { + return new UpdateSubsettingPolicyResponse( + __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 UpdateSubsettingPolicyResponse)) { + return false; + } + + UpdateSubsettingPolicyResponse other = (UpdateSubsettingPolicyResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateSubsettingRuleResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateSubsettingRuleResponse.java new file mode 100644 index 00000000000..ffeed4207cb --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateSubsettingRuleResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateSubsettingRuleResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateSubsettingRuleResponse( + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateSubsettingRuleResponse 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 UpdateSubsettingRuleResponse build() { + return new UpdateSubsettingRuleResponse( + __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 UpdateSubsettingRuleResponse)) { + return false; + } + + UpdateSubsettingRuleResponse other = (UpdateSubsettingRuleResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UploadSubsettingPolicyResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UploadSubsettingPolicyResponse.java new file mode 100644 index 00000000000..268558f671e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UploadSubsettingPolicyResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UploadSubsettingPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UploadSubsettingPolicyResponse( + 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< + UploadSubsettingPolicyResponse> { + 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 of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UploadSubsettingPolicyResponse 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 UploadSubsettingPolicyResponse build() { + return new UploadSubsettingPolicyResponse( + __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 UploadSubsettingPolicyResponse)) { + return false; + } + + UploadSubsettingPolicyResponse other = (UploadSubsettingPolicyResponse) 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-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 502e354094e..2ea7fe6f06a 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 @@ -1239,6 +1239,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ChangeRegistrationPolicyCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ChangeRegistrationPolicyCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.ChangeReportCompartmentDetails", @@ -1435,6 +1449,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyHealthReportCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ChangeSubsettingPolicyHealthReportCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.ChangeTargetAlertPolicyAssociationCompartmentDetails", @@ -1800,6 +1842,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ConditionSubsetRuleEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ConditionSubsetRuleEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.ConfidenceLevelEnum", @@ -2048,6 +2104,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateRegistrationPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateRegistrationPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.CreateReportDefinitionDetails", @@ -2062,6 +2132,47 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSchemaSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSchemaSourceDetails$SchemaSource", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSchemaSourceFromSdmDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSchemaSourceFromSdmDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSchemaSourceFromTargetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSchemaSourceFromTargetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.CreateSdmMaskingPolicyDifferenceDetails", @@ -2273,6 +2384,66 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSubsettingPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSubsettingPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails$RuleCombinationMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails$RelatedTablesPropagation", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSubsettingRuleDetails$PeerTablesAction", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSubsettingSchemaRelationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSubsettingSchemaRelationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.CreateTargetAlertPolicyAssociationDetails", @@ -3604,6 +3775,54 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.DownloadSubsettingLogDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.DownloadSubsettingLogDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.DownloadSubsettingPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.DownloadSubsettingPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.DownloadSubsettingReportDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.DownloadSubsettingReportDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.DownloadSubsettingReportDetails$ReportFormat", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.DownloadUserAssessmentReportDetails", @@ -3683,6 +3902,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.EstimateTableSizesDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.EstimateTableSizesDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.Exclude", @@ -4154,6 +4387,60 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateSubsettingHealthReportDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateSubsettingHealthReportDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateSubsettingHealthReportDetails$CheckType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateSubsettingPolicyForDownloadDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateSubsettingPolicyForDownloadDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateSubsettingReportForDownloadDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateSubsettingReportForDownloadDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateSubsettingReportForDownloadDetails$ReportFormat", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.GenerateUserAssessmentReportDetails", @@ -4394,44 +4681,64 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.MaskDataDetails", + "name": "com.oracle.bmc.datasafe.model.ManagePrivilegesDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.MaskDataDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.ManagePrivilegesDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.MaskDataDetails$ReRunFromStep", + "name": "com.oracle.bmc.datasafe.model.ManagePrivilegesDetails$Features", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.MaskedColumnCollection", + "name": "com.oracle.bmc.datasafe.model.MaskDataDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.MaskedColumnCollection$Builder", + "name": "com.oracle.bmc.datasafe.model.MaskDataDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.MaskedColumnSummary", + "name": "com.oracle.bmc.datasafe.model.MaskDataDetails$ReRunFromStep", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskedColumnCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskedColumnCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskedColumnSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, @@ -5014,6 +5321,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.PartitionSubsetRuleEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.PartitionSubsetRuleEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.PatchAlertPolicyRuleDetails", @@ -5209,6 +5530,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.PatchSubsettingRulesDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.PatchSubsettingRulesDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.PatchTargetAlertPolicyAssociationDetails", @@ -5279,6 +5614,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.PercentSubsetRuleEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.PercentSubsetRuleEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.PolicyCondition", @@ -5304,6 +5653,26 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.PolicyConnectionOption", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.PolicyConnectionOption$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.PolicyConnectionOption$ConnectionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.PolicyFormat", @@ -5606,6 +5975,100 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicy", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicy$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicy$EnablementLevel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicy$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicyCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicyCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicyFeatures", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummary$DiscoveredResourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RegistrationPolicyTargetDatabaseSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.RegularExpressionFormatEntry", @@ -5917,6 +6380,88 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceDetails$SchemaSource", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceForSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceForSummary$SchemaSource", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceFromSdmDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceFromSdmDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceFromSdmForSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceFromSdmForSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceFromTargetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceFromTargetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceFromTargetForSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SchemaSourceFromTargetForSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.SchemaSummary", @@ -7647,97 +8192,751 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.SubstringFormatEntry", + "name": "com.oracle.bmc.datasafe.model.SubsetDataDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.SubstringFormatEntry$Builder", + "name": "com.oracle.bmc.datasafe.model.SubsetDataDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.Summary", + "name": "com.oracle.bmc.datasafe.model.SubsetDataDetails$Masking", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.Summary$Builder", + "name": "com.oracle.bmc.datasafe.model.SubsetDataDetails$ReRunFromStep", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.TableSummary", + "name": "com.oracle.bmc.datasafe.model.SubsetRuleEntry", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.TableSummary$Builder", + "name": "com.oracle.bmc.datasafe.model.SubsetRuleEntry$RuleType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.TablesForDiscovery", + "name": "com.oracle.bmc.datasafe.model.SubsetScope", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.TablesForDiscovery$Builder", + "name": "com.oracle.bmc.datasafe.model.SubsetScope$ScopeType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation", + "name": "com.oracle.bmc.datasafe.model.SubsetScopeForAllObjects", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation$Builder", + "name": "com.oracle.bmc.datasafe.model.SubsetScopeForAllObjects$Builder", "allDeclaredFields": true, "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", + "name": "com.oracle.bmc.datasafe.model.SubsetScopeForSpecificObjects", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociationCollection$Builder", + "name": "com.oracle.bmc.datasafe.model.SubsetScopeForSpecificObjects$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociationSummary", + "name": "com.oracle.bmc.datasafe.model.SubsettedObjectCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettedObjectCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettedObjectSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettedObjectSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingAnalyticsCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingAnalyticsCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingAnalyticsDimensions", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingAnalyticsDimensions$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingAnalyticsSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingAnalyticsSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingAnalyticsSummary$MetricName", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingErrorSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingErrorSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingErrorSummary$StepName", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicy", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicy$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicy$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicy$Recompile", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicy$UnrelatedTablesAction", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyFormat", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReport$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogSummary$MessageType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportLogSummary$HealthCheckType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicyHealthReportSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingPolicySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingReport", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingReport$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingReport$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingReport$SubsettingStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingReportCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingReportCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingReportSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingReportSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingReportSummary$SubsettingStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRule", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRule$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRule$RuleCombinationMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRule$RelatedTablesPropagation", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRule$PeerTablesAction", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectSummary$PropagationImpact", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectsCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleProcessingChainObjectsCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleSummary$RuleCombinationMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleSummary$RelatedTablesPropagation", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingRuleSummary$PeerTablesAction", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaObjectCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaObjectCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaObjectSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaObjectSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaRelation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaRelation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaRelation$RelationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaRelationCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaRelationCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaRelationSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaRelationSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaRelationSummary$RelationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubsettingSchemaSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubstringFormatEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.SubstringFormatEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.Summary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.Summary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TableEstimateCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TableEstimateCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TableEstimateSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TableEstimateSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TableSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TableSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TablesForDiscovery", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TablesForDiscovery$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation$Builder", + "allDeclaredFields": true, + "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", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociationCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociationSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true @@ -8546,6 +9745,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateProcessingChainObjectDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateProcessingChainObjectDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateRegistrationPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateRegistrationPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.UpdateReportDefinitionDetails", @@ -8574,6 +9801,47 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSchemaSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSchemaSourceDetails$SchemaSource", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSchemaSourceFromSdmDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSchemaSourceFromSdmDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSchemaSourceFromTargetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSchemaSourceFromTargetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.UpdateSdmMaskingPolicyDifferenceDetails", @@ -8831,6 +10099,52 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSubsettingPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSubsettingPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails$RuleCombinationMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails$RelatedTablesPropagation", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateSubsettingRuleDetails$PeerTablesAction", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.UpdateTargetAlertPolicyAssociationDetails", diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 93f09154261..137ac4e5079 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index d113cf2fc27..5f75f08d873 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index d960e013107..7232023d718 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-ddfs/pom.xml b/bmc-ddfs/pom.xml index 182dbb9ec9e..f4b05ca8093 100644 --- a/bmc-ddfs/pom.xml +++ b/bmc-ddfs/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-ddfs @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index a691bba36fe..306d669b69f 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 32c0475b272..e0b0fc6487a 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 364eb95ca6f..5431010454a 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 7bdd4d8062e..4d4bdf9a1d4 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index 649f11bb81c..686af713e65 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 673b983f555..797b537def0 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index 351342528b2..7135cb14ba9 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 8c89115289b..e9001be1f62 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.97.0 + 3.97.1 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 784a24b19b6..90a52c47e38 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 0ca35c30032..724b7e5475d 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 99cb1ed4bc7..b286b636395 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index e70c3ef0659..5c37a5afb4a 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.97.0 + 3.97.1 com.fasterxml.jackson.core @@ -48,7 +48,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.97.0 + 3.97.1 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index b623ae1f1ba..57353fff6ff 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.97.0 + 3.97.1 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index b42b2bebaa0..6e729541c91 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index d16f2ca1f78..84d1e13268e 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.97.0 + 3.97.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.97.0 + 3.97.1 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index fba74fd3bf9..1f617ef0116 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 3b6bba9a8ba..44bf2127bb1 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 6086bc385bb..89a8ea172db 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 7736bacb27d..97327724e92 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.97.0 + 3.97.1 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 9aba0a4879e..2dd35a62506 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 54813c5fdeb..510cd707cec 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index d5450206c55..06c3b656120 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 9ad33cf570f..628cb410323 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index 41f1049cbcc..54a794eaa8e 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 568c59cf806..feeefc1d0e8 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index c61a957fff0..90a0a93a878 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index bb5a4cb8a00..197a7992231 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 8dd6acb5c55..70381897995 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 003c76aa170..6fb53e0c7c9 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 997d8bb3612..0e872da9a9f 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index fa6a5081dee..dd9163e6885 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index dc55d5b9789..d9e553bfd78 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 4bb4725849b..51c06f40f2f 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 441b3644cf9..a31f3427a20 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index c4fb1d5d7a0..bf3e5e0dd48 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index 67196740ed9..cb565fbb5c6 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 4742242bd92..f8b0bb8e9a1 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index 930757f9e59..3fc6cadc708 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 2e7d1958270..c8ebfd976b6 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 421176bee8b..7e264f8a358 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index c0777cd10d6..2f98fb6dd6b 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 6f3355fc000..761a8d4aaa0 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index 736846c5ce3..46a18a9b58a 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 53681d30cc0..1d524e78267 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 760c7736638..98dc2889c84 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 43d07c71380..d4c06a4a256 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index eb0f9525f2f..965ca62d88e 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 9d5d9c4a11c..28b434e2c8f 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 06c09fbfbfd..f3e30b20756 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index ff8d8161641..534c068359b 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index 31774d109a6..a9aa65b57b8 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index 64adb2f518e..7544b3542eb 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index fa71323fd93..6bc5f8eb602 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index ef8fc26d599..1fdf3dc350f 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index f522a73359d..e0b27022545 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index db7ef5813c8..f8fda0dc231 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index fe7a9a45135..567ad610200 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index 7fadd7447a0..c60a1be1b7f 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index 2ae16fa2f4b..920626a59be 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index e11c11eb606..0a6a70d1974 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index ccc1924ae53..4a7df2e2b60 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index ddb5e7c58ea..a08a0e9c2cb 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index c6524572786..eec8ed6d843 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index ad1bbffc263..f0458955799 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 82b2697fb31..fbec505b754 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ 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 ec6cd2357c2..c71e012dc72 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.97.0 + 3.97.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.97.0 + 3.97.1 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index a2e8df6d1ce..42cdf59fada 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.97.0 + 3.97.1 ../pom.xml @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.97.0 + 3.97.1 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 217a028a5bd..081cf4e4ec1 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.97.0 + 3.97.1 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 70fd2a64f41..b88c87061ee 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 6da86805598..fbe7ceb6d31 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index f32afc1ca7c..32084e6cf88 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index a65164ab09e..537f48fb0e4 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 1654d30f371..2827b225b4a 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 359dd3fce97..0297464493a 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 1965caa66c5..973c40dd5c4 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 4ee63b1acec..85049ee09eb 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index e5de894e07c..a730cba111d 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 850763e2376..9b336516b00 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 7cb78c65f78..8997c57b818 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 487a8b1cf8d..2ecbc9a3a55 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 686806d7363..3cc27451f53 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 23587635d5f..088de757ef7 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index ca015687b5f..a229b66c5a8 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 63cb15c14a6..c38558c7564 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index c2e74a66eb9..a3b969956a0 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 149d946ac39..6d913be5d50 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ 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 ac5f0ee461c..75115fe9a4c 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.97.0 + 3.97.1 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.97.0 + 3.97.1 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.97.0 + 3.97.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.97.0 + 3.97.1 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index d5ced43a520..ee09a840b2c 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.97.0 + 3.97.1 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.97.0 + 3.97.1 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.97.0 + 3.97.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.97.0 + 3.97.1 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 7760145a8cb..d5d1d8901fe 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.97.0 + 3.97.1 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.97.0 + 3.97.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.97.0 + 3.97.1 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index f2b4465be8c..d15535567e3 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.97.0 + 3.97.1 ../pom.xml diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index e5218333517..49846125144 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 86683e254cf..ae390e57072 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index daf7b363a20..a34c377fc4a 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index b5b9c454254..6b660046277 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index cd6e8c4e965..7e742c240e9 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index c320ee7e7dc..0d0c95b6df7 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index c29865bfd47..1cb5d7dfd37 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 8ed38bd55b8..d8b40754e66 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 75e1d19dd76..3699e6759f6 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index d5b8a3fbba5..ed1ceec289d 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 84dd7d10b33..05141f468ba 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 3c0d5cc984c..d3231b8247c 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index d4bdc4cb6e3..8e8e130f3f0 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index 153d33da19c..e0713a9cdad 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index e4c597eb475..c3d7c7ad5ee 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index af4686c075d..87475856ef2 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ 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 7f13e439b2d..ec0503908e5 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.97.0 + 3.97.1 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 5df6f361a3f..d4a83b961a3 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index e3f42692b96..d397999673d 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index aacf3f42c64..44bbc565219 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 4478adb515e..ab82e3d0a68 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index b5c31c5eab2..b736bbf1c6d 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index caf7b4e9a9b..d82a15a2669 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 996f5b26d72..64b97c658ad 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index eee936638bb..f344603ea1a 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index d06da2a50d7..4208e040548 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index cc28d4b2ebf..fb5cf56ee7a 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 2a01971948b..d043c977141 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 245506e644d..b288638ff37 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 2b83327fa5e..84bb64a74d6 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index ba6a0e97d52..f8a32361def 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 9344ed38457..53733d5e721 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index a6245e2e65b..0b3c5657da0 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 57a16142190..3b7b50ef3bb 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index c6bcb26d21c..d04b560e880 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.97.0 + 3.97.1 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 420f6201b50..c776617e0a4 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.97.0 + 3.97.1 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -38,9 +38,9 @@ 2.21.5 2.21.5 2.47 - 4.5.13 - 4.5.13 - 4.4.13 + 4.5.14 + 4.5.14 + 4.4.16 1.18.0 4.13.2 1.7.33